06.11.2009, 23:04
pawn Код:
if(!strcmp(cmdtext,"/d", true,2)) {
if(!strlen(cmdtext[2])) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /d [text] (lspd chat)");
if(gTeam[playerid] != TEAM_LSPD) return SendClientMessage(playerid, 0xAFAFAFAA, "You must be a cop to use this command!");
new playername[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "* *Officer [%s]: %s, over", playername, cmdtext[2]);
for(new i = 0; i < MAX_PLAYERS; i++) {
// LSPD TEAM CHAT
if(gTeam[i] == TEAM_LSPD) {
SendClientMessage(i, COLOR_GOLD, string);
}
return 1;
}
return 0;
}