CMD:bk spamming.
#5

pawn Code:
CMD:bk(playerid, i, params[])
{
    new fX, fY, fZ;
    if (GetFactionType(playerid) != FACTION_POLICE)
    return SendErrorMessage(playerid, "You are not a police officer.");
    if(ICBK[playerid] == 1) return SendClientMessage(playerid, 0xFF0000AA,"You need to wait 1 minute before calling backup again!");
    SendFactionMessage(PlayerData[playerid][pFaction], COLOR_RADIO, "RADIO: ALL UNITS! %s is requesting immediate assistance, his location has been located on radar! at %s.", ReturnName(playerid, 0), GetLocation(fX, fY, fZ));
    SetPlayerMarkerForPlayer(i, playerid, 0xC2A2DAAA);
    ICBK[playerid] = 1;
    return 1;
}

Not sure why you were running a loop through all players though honestly.
Reply


Messages In This Thread
CMD:bk spamming. - by fonia5 - 16.02.2015, 20:20
Re: CMD:bk spamming. - by Vince - 16.02.2015, 20:22
Re: CMD:bk spamming. - by Jimmy0wns - 16.02.2015, 20:42
Re: CMD:bk spamming. - by xVIP3Rx - 16.02.2015, 20:52
Re: CMD:bk spamming. - by The__ - 17.02.2015, 06:44

Forum Jump:


Users browsing this thread: 1 Guest(s)