14.12.2011, 17:24
How do I remove SetPlayerMarkerForPlayer...? i.e So I can create a /bkcancel.
pawn Код:
CMD:backup(playerid, params[])
{
if(LoggedIn[playerid] == 0) return SendClientMessage(playerid, COLOUR_GREY, "You must be logged in to use this command.");
new string[256];
if(Faction[playerid] != 1) return SendClientMessage(playerid, COLOUR_GREY, "You are not a member of the police.");
foreach(Player, i)
{
if(Faction[playerid] == Faction[i])
{
format(string, sizeof(string), "[Police Message] %s has activated their assistance beacon, please respond immediately.", GetNameEx(playerid));
SendClientMessage(i, COLOUR_GREEN, string);
SetPlayerMarkerForPlayer(playerid, i, COLOUR_BLUE);
Beacon[playerid] = 1;
}
}
return 1;
}