29.05.2009, 15:40
something as simple as this?
That will just send all the players in your server a message saying "Officer [Your name] says Pull Over Now!".
You can make it more advance such as /pullover [id/part of name] or pullover players next to you.
pawn Код:
if(!strcmp(cmdtext, "/pullover", true, 9))
{
if(GetPlayerTeam(playerid) != 9) return SendClientMessage(playerid, 0x00E100FF, "You need to be a cop to do that!");
new string[128];
new adminname[MAX_PLAYER_NAME];
GetPlayerName(playerid,adminname,sizeof(adminname));
format(string, sizeof(string),"**Officer %s says Pull Over Now!",adminname);
SendClientMessageToAll(0x00E100FF, string);
return 1;
}
You can make it more advance such as /pullover [id/part of name] or pullover players next to you.