Return guns [+Rep]
#1

Hi Guys I got the holster system so when i switch Gun ID 0 its return fast to the killer guns
like knife or anything so guys i need to set it to return the gun after 3 seconds not faster

Sorry for my bad english!
This is the code!

pawn Код:
public OnPlayerUpdate(playerid)
{
    new w = GetPlayerWeapon(playerid);

    if(w != lastWeapon[playerid])
    {
        if(lastWeapon[playerid] == 0) return lastWeapon[playerid] = GetPlayerWeapon(playerid);

        SetPlayerArmedWeapon(playerid, lastWeapon[playerid]);
    }

    lastWeapon[playerid] = w;

    return 1;
}
Reply


Messages In This Thread
Return guns [+Rep] - by DavidGravelli - 10.07.2016, 13:40
Re: Return guns [+Rep] - by Sjn - 10.07.2016, 13:46
Re: Return guns [+Rep] - by DavidGravelli - 10.07.2016, 13:47

Forum Jump:


Users browsing this thread: 1 Guest(s)