18.01.2011, 04:44
does anyone no how to make a script for auto parachute (always have parachute on)
public OnPlayerUpdate(playerid)
{
GivePlayerWeapon(playerid, 46, 1); //Parachute
return 1;
}
SetTimerEx("PCheck", 3000, 1, "i", playerid);
forward PCheck(playerid);
public PCheck(playerid)
{
if(GetPlayerWeapon(playerid) >= 46)
{
return 0;
}
else
{
GivePlayerWeapon(playerid, 46, 1);
}
return 1;
}
if(GetPlayerWeapon(playerid) != 46)
new tmpanim[10];
public OnPlayerUpdate(playerid)
{
GetAnimationName(GetPlayerAnimationIndex(playerid),tmpanim,10,tmpanim,10);
if(!strcmp(tmpanim,"FALL",true,4))
{
if(GetPlayerWeapon(playerid)!=46)GivePlayerWeapon(playerid,46,1);
}
return 1;
}