27.07.2009, 03:34
Just use a Variable, eg.
Something like that? You can make special things for only Police by checking with
pawn Код:
new JobPolice[MAX_PLAYERS];
if (strcmp("/announce", cmdtext, true, 9) == 0)
{
if (JobPolice[playerid] == 1)
{
if(cmdtext[9] == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /announce [message]");
return 1;
}
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "San Andreas Police Announcement: %s [%s]", cmdtext[10], str);
SendClientMessageToAll(COLOR_ANNOUNCE, str);
}
return 1;
}
pawn Код:
if (JobPolice[playerid] == 1)