Advertisement
Guest User

Untitled

a guest
Mar 29th, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. CMD:cac(playerid, params[])
  2. {
  3. if(GetPlayerTeam(playerid) != AltoComando)
  4. {
  5. SendClientMessage(playerid, 0xE74C3CFF, "ERRORE: {FFFFFF}Solo l'alto comando della polizia può utilizzare questo comando.");
  6. return 1;
  7. }
  8. else
  9. {
  10. new string[128];
  11. if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, -1, " USA: /cac [testo]");
  12. format(string, sizeof(string), "[CAC] %s: %s %s", GetName(playerid), params);
  13. for(new i=0; i<MAX_PLAYERS; i++)
  14. if(GetPlayerTeam(playerid) != AltoComando)
  15. {
  16. return 1;
  17. }
  18. else
  19. {
  20. SendClientMessage(i, BLU1, string);
  21. }
  22. }
  23. return 1;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement