Mersi,nu nui pe GF,,ma poti ajuta in urmatoarele comanzi? if(strcmp(cmd,"/startteszt", true) == 0)
{
new playa;
new jatekos;
GetPlayerName(playa, sendername, sizeof(sendername));
playa = ReturnUser(tmp);
jatekos = ReturnUser(tmp);
if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
new jogsi[128];
jogsi = strtok(cmdtext, idx);
if(!strlen(jogsi))
{
SendClientMessage(playerid,szurke,"HASZNÃLAT - /startteszt [A,B,C,hajó,repül?][playerid]");
return 1;
}
if(GetDistanceBetweenPlayers(playerid,jatekos) > 1)
{
SendClientMessage(playerid, szurke, " Nincs a közeledbe ez a játékos!");
return 1;
}
if(strcmp(jogsi,"A",true) == 0)
{
format(string, sizeof(string), "ElindÃtottad %s A kategória tesztjét",giveplayerid);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "%s elindÃtotta az A kategória tesztedet",GetPlayerNameEx(playerid));
SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
motorlic[playerid] = 1;
return 1;
}
if(strcmp(jogsi,"B",true) == 0)
{
format(string, sizeof(string), "ElindÃtottad %s B kategória tesztjét",giveplayerid);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "%s elindÃtotta a B kategória tesztedet",GetPlayerNameEx(playerid));
SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
PlayerInfo[playerid][pCarlic] = 1;
return 1;
}
if(strcmp(jogsi,"C",true) == 0)
{
format(string, sizeof(string), "ElindÃtottad %s C kategória tesztjét",giveplayerid);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "%s elindÃtotta a C kategória tesztedet",GetPlayerNameEx(playerid));
SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
kamionlic[playerid] = 1;
return 1;
}
if(strcmp(jogsi,"hajó",true) == 0)
{
format(string, sizeof(string), "ElindÃtottad %s hajó tesztjét tesztjét",giveplayerid);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "%s elindÃtotta a hajó tesztedet",GetPlayerNameEx(playerid));
SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
hajolic[playerid] = 1;
return 1;
}
if(strcmp(jogsi,"repül?",true) == 0)
{
format(string, sizeof(string), "ElindÃtottad %s repül? tesztjét",giveplayerid);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "%s elindÃtotta a repül? tesztedet",GetPlayerNameEx(playerid));
SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
repulolic[playerid] = 1;
return 1;
}
}
}
if(strcmp(cmd,"/stopteszt", true) == 0)
{
new playa;
new jatekos;
GetPlayerName(playa, sendername, sizeof(sendername));
playa = ReturnUser(tmp);
jatekos = ReturnUser(tmp);
if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
new jogsi[128];
jogsi = strtok(cmdtext, idx);
if(!strlen(jogsi))
{
SendClientMessage(playerid,szurke,"HASZNÃLAT - /stopteszt [A,B,C,hajó,repül?][playerid]");
return 1;
}
if(GetDistanceBetweenPlayers(playerid,jatekos) > 1)
{
SendClientMessage(playerid, szurke, " Nincs a közeledbe ez a játékos!");
return 1;
}
if(strcmp(jogsi,"A",true) == 0)
{
format(string, sizeof(string), "LeállÃtottad %s A kategória tesztjét",giveplayerid);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "%s leállÃtotta az A kategória tesztedet",GetPlayerNameEx(playerid));
SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
motorlic[playerid] = 0;
return 1;
}
if(strcmp(jogsi,"B",true) == 0)
{
format(string, sizeof(string), "LeállÃtottad %s B kategória tesztjét",giveplayerid);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "%s leállÃtotta az B kategória tesztedet",GetPlayerNameEx(playerid));
SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
PlayerInfo[playerid][pCarlic] = 0;
return 1;
}
if(strcmp(jogsi,"C",true) == 0)
{
format(string, sizeof(string), "LeállÃtottad %s C kategória tesztjét",giveplayerid);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "%s leállÃtotta az C kategória tesztedet",GetPlayerNameEx(playerid));
SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
kamionlic[playerid] = 0;
return 1;
}
if(strcmp(jogsi,"hajó",true) == 0)
{
format(string, sizeof(string), "LeállÃtottad %s hajó tesztjét",giveplayerid);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "%s leállÃtotta a hajó tesztedet",GetPlayerNameEx(playerid));
SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
hajolic[playerid] = 0;
return 1;
}
if(strcmp(jogsi,"repül?",true) == 0)
{
format(string, sizeof(string), "LeállÃtottad %s repül? tesztjét",giveplayerid);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "%s leállÃtotta a repül? tesztedet",GetPlayerNameEx(playerid));
SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
repulolic[playerid] = 0;
return 1;
}
}
}
if(strcmp(cmd,"/jogsi",true) == 0)
{
new playa;
new jatekos;
GetPlayerName(playa, sendername, sizeof(sendername));
playa = ReturnUser(tmp);
jatekos = ReturnUser(tmp);
if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
new jogsi[128];
jogsi = strtok(cmdtext, idx);
if(!strlen(jogsi))
{
SendClientMessage(playerid,szurke,"HASZNÃLAT - /jogsi [A,B,C,hajó,repül?][playerid]");
return 1;
}
if(GetDistanceBetweenPlayers(playerid,jatekos) > 1)
{
SendClientMessage(playerid, szurke, " Nincs a közeledbe ez a játékos!");
return 1;
}
if(stopteszt[playerid] == 1)
{
SendClientMessage(playerid,szurke,"El?bb állÃtsd le a tesztjét");
return 1;
}
if(strcmp(jogsi,"A",true) == 0)
{
format(string, sizeof(string), "Adtál %s -nek egy A kategóriájú jogsit",giveplayerid);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "%s oda adta neked a A kategóriájú jogsid",GetPlayerNameEx(playerid));
SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
format(string, sizeof(string),"* %s átad egy iratot %s -nek ",GetPlayerNameEx(playerid),giveplayerid);
ProxDetector(20.0,playerid,string,me,me,me,me,me);
motorlic[playerid] = 1;
return 1;
}
if(strcmp(jogsi,"B",true) == 0)
{
format(string, sizeof(string), "Adtál %s -nek egy B kategóriájú jogsit",giveplayerid);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "%s oda adta neked a B kategóriájú jogsid",GetPlayerNameEx(playerid));
SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
format(string, sizeof(string),"* %s átad egy iratot %s -nek ",GetPlayerNameEx(playerid),giveplayerid);
ProxDetector(20.0,playerid,string,me,me,me,me,me);
PlayerInfo[playerid][pCarlic] = 1;
return 1;
}
if(strcmp(jogsi,"C",true) == 0)
{
format(string, sizeof(string), "Adtál %s -nek egy C kategóriájú jogsit",giveplayerid);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "%s oda adta neked a C kategóriájú jogsid",GetPlayerNameEx(playerid));
SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
format(string, sizeof(string),"* %s átad egy iratot %s -nek ",GetPlayerNameEx(playerid),giveplayerid);
ProxDetector(20.0,playerid,string,me,me,me,me,me);
kamionlic[playerid] = 1;
return 1;
}
if(strcmp(jogsi,"hajó",true) == 0)
{
format(string, sizeof(string), "Adtál %s -nek egy hajó jogsit",giveplayerid);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "%s oda adta neked a hajó jogsit ",GetPlayerNameEx(playerid));
SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
format(string, sizeof(string),"* %s átad egy iratot %s -nek ",GetPlayerNameEx(playerid),giveplayerid);
ProxDetector(20.0,playerid,string,me,me,me,me,me);
hajolic[playerid] = 1;
return 1;
}
if(strcmp(jogsi,"repül?",true) == 0)
{
format(string, sizeof(string), "Adtál %s -nek egy repül? jogsit",giveplayerid);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "%s oda adta neked a repül? jogsid",GetPlayerNameEx(playerid));
SendClientMessage(jatekos,COLOR_LIGHTBLUE,string);
format(string, sizeof(string),"* %s átad egy iratot %s -nek ",GetPlayerNameEx(playerid),giveplayerid);
ProxDetector(20.0,playerid,string,me,me,me,me,me);
repulolic[playerid] = 1;
return 1;
}
}
} Nu stiu de ce nu imi functioneaza "jatekos"-ul (jatekos = giveplayerid)