29.09.2010, 19:03
(
Последний раз редактировалось The_Moddler; 29.09.2010 в 21:16.
)
I made this to detonate a C4
It should work... but it doesn't, it just does nothing, even if the player has the detonator (weapon id 40)
Thanks
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;
}
Thanks