Why this isn't working?
#1

I made this to detonate a C4
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(PRESSED(KEY_FIRE))
    {
        if(GetPlayerWeapon(playerid) == 40)
        {
            ClearAnimations(playerid);
            ApplyAnimation(playerid,"PED","bomber",4.0,0,0,0,0,1000,1);
            SetTimerEx("Explode", 1200, 0, "i", playerid);
            SetPlayerArmedWeapon(playerid, 0);
            Planted[playerid] = 0;
        }
    }
    return 1;
}
It should work... but it doesn't, it just does nothing, even if the player has the detonator (weapon id 40)
Thanks
Reply


Messages In This Thread
Why this isn't working? - by The_Moddler - 29.09.2010, 19:03
Re: Why this isn't working? - by The_Moddler - 29.09.2010, 21:15
Re: Why this isn't working? - by Mauzen - 29.09.2010, 21:27
Re: Why this isn't working? - by The_Moddler - 29.09.2010, 22:09

Forum Jump:


Users browsing this thread: 1 Guest(s)