01.07.2013, 15:54
(
Последний раз редактировалось Nathan_Taylor; 01.07.2013 в 15:58.
Причина: Fixed Code
)
As far as the sending message to only cops goes... (using Z-CMD)
haven't gotten a chance to try it yet. And I haven't been on here in a while so it might be a little rusty. Just respond with any errors you get.
EDIT: Already found a few errors, fixed. Re-copy/paste
pawn Код:
CMD:999(playerid, params[])
{
new skin;
new call[256];
new sname[MAX_PLAYER_NAME];
GetPlayerName(playerid, sname, sizeof(sname));
format(call, sizeof(call), "{FF0000}999 CALL{FFFFFF}: {FF0000}%s{FFFFFF}: {FF0000}%s", sname, params);
for(new i = 0; i < MAX_PLAYERS; i++)
{
skin = GetPlayerSkin(i);
if(skin == 265 || skin == 266 || skin == 267){
SendClientMessage(i, COLOR_WHITE, call);
}
}
}
EDIT: Already found a few errors, fixed. Re-copy/paste