Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:cac(playerid, params[])
- {
- if(GetPlayerTeam(playerid) != AltoComando)
- {
- SendClientMessage(playerid, 0xE74C3CFF, "ERRORE: {FFFFFF}Solo l'alto comando della polizia può utilizzare questo comando.");
- return 1;
- }
- else
- {
- new string[128];
- if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, -1, " USA: /cac [testo]");
- format(string, sizeof(string), "[CAC] %s: %s %s", GetName(playerid), params);
- for(new i=0; i<MAX_PLAYERS; i++)
- if(GetPlayerTeam(playerid) != AltoComando)
- {
- return 1;
- }
- else
- {
- SendClientMessage(i, BLU1, string);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement