Detaljan opis problema:Ovako kad kucam /megafon i PD sam pise mi uzmi duznost i budi u vozilo i radi, a kad kucam za /megafonfbi pise samo clanovi fbi , nece da mi ocita ... ne kontam zasto O.o
Dio skripte:
YCMD:megafonfbi(playerid, params[], help)
{
#pragma unused help
if(UlogovanProvera == 0) return SCM(playerid,-1,"BE:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo == 1 || PlayerInfo == 1)
{
if(PolicajacNaDuznosti == 0) return SendClientMessage(playerid, -1, ""PLAVA"(LSPD) "SIVA"Niste uzeli znacku(duznost) pa nemozete koristi tu komandu!");
if(PlayerInfo != 0) return SCM(playerid,-1, ""PLAVA"(BE:RP) "SIVA"Mutiran si pa nemozes koristit ovu komandu!");
if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid,-1, ""PLAVA"(BE:RP) "BELA"Morate biti u vozilu!");
new result,text;
if(sscanf(params, "s",text )) return SendClientMessage(playerid, -1, ""PLAVA"BE:RP Pomoc | "BELA"/megafon [megaphone text]");
new tekst1 = strlen(result);
for(new i = 0; i format(result, sizeof(result), ""ZUTA"[ Agent %s(megafon): %s ]",GetName(playerid), text);
ProxDetector(60.0, playerid, result,BELA2,BELA2,BELA2,BELA2,BELA2);
} else SendClientMessage(playerid,-1,""PLAVA" "SIVA"Samo clanovi FBI-a!");
return 1;
}
//////////////////////////////////////////////////////////////////////// Neke slike/video za lakse dobivanje pomoci(neobavezno):
