13.02.2010, 16:11
I don't know what commands are you using but I'll give you an example with dcmd:
pawn Код:
dcmd_cr(playerid, params[])
{
if(strlen(params) < 1) return SendClientMessage(playerid, COLOR, "Syntax: /cr <text>");
else
{
new
pName[24],
string[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "Officer %s: %s", pName, params);
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(Level[i] == COPS_LEVEL) SendClientMessage(i, 0x2641FEAA, string);
}
}
return 1;
}