Guest User

MEGAFON

a guest
Mar 9th, 2020
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. YCMD:megafon(playerid, params[], help)
  2. {
  3. if(PlayerInfo[playerid][pClan] == 1 || PlayerInfo[playerid][pLider] == 1)
  4. {
  5. if(PolicajacNaDuznosti[playerid] == 0) return SendClientMessage(playerid, -1, ""PLAVA"(LSPD) "SIVA"Niste uzeli znacku(duznost) pa nemozete koristi tu komandu!");
  6. if(PlayerInfo[playerid][pMutiran] != 0) return SendClientMessage(playerid,-1, ""CRVENA"[SA:RP] "SIVA"Mutiran si pa nemozes koristit ovu komandu!");
  7. if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,-1, ""PLAVA"[SA:RP] "BELA"Morate biti u vozilu!");
  8. new text,org[20],result[128];
  9. if(PlayerInfo[playerid][pClan] == 1) { org = "LSPD"; }
  10. else if(PlayerInfo[playerid][pLider] == 1) { org = "LSPD"; }
  11. /*if(PlayerInfo[playerid][pClan] == 7) { org = "MARSHALL"; }
  12. else if(PlayerInfo[playerid][pLider] == 7) { org = "MARSHALL"; }
  13. if(PlayerInfo[playerid][pClan] == 16) { org = "FBI"; }
  14. else if(PlayerInfo[playerid][pLider] == 16) { org = "FBI"; } */
  15. if(sscanf(params,"s[100]",text)) return SendClientMessage(playerid, -1, ""PLAVA"SA:RP Pomoc | "BELA"/megafon [megaphone text]");
  16. new tekst1 = strlen(result);
  17. for(new i = 0; i<tekst1; i++) { if(IsNumeric(result[i])) result[i] = '*' ; }
  18. if(PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pClan] == 1) { format(result, sizeof(result), ""ZUTA"[ MEGAFON ] %s %s: %s",org, GetName(playerid), text); }
  19. //if(PlayerInfo[playerid][pLider] == 7 || PlayerInfo[playerid][pClan] == 7) { format(result, sizeof(result), ""ZUTA"[ SA Marshall %s(megafon): %s ]",GetName(playerid), text); }
  20. //if(PlayerInfo[playerid][pLider] == 16 || PlayerInfo[playerid][pClan] == 16) { format(result, sizeof(result), ""ZUTA"[ FBI %s(megafon): %s ]",GetName(playerid), text); }
  21. ProxDetector(60.0, playerid, result,BELA2,BELA2,BELA2,BELA2,BELA2);
  22. }
  23. else SendClientMessage(playerid,-1,""PLAVA"[GRESKA] "SIVA"Samo clanovi LSPD!");
  24. return 1;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment