Pickup abuse..
#1

I have this code
pawn Code:
if(pickupid == copdutypoint)
{
    if(GetPlayerTeam(playerid) == 100)
    {
        GivePlayerWeapon(playerid, 3, 1);
        GivePlayerWeapon(playerid, 22, 99);
        GivePlayerWeapon(playerid, 27, 50);
        new string[250];
        new Name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, Name, sizeof(Name));

        format(string,sizeof(string),"%s has gone on duty and collected their guns",Name);
        SendClientMessageToAll(0x33AA33AA, string);
    }
    else
    SendClientMessage(playerid, 0xAA3333AA, "You can't go on duty! You're not a cop");
}
It gives them guns with some ammo, but if you stay there after collecting your first set of guns.. then stay in the checkpoint for another few secs you get more. then wait again.. more how can I set it to wait 2 minutes before collecting more?
Reply


Messages In This Thread
Pickup abuse.. - by ThePhill97 - 23.11.2012, 18:08
Re: Pickup abuse.. - by Babul - 23.11.2012, 18:14

Forum Jump:


Users browsing this thread: 1 Guest(s)