public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInVehicle(Target,vehicleid))
{
TogglePlayerControllable(Shooter,0);
SetTimerEx("UnFreeze",5000,false,"i",playerid);
return 1;
}
return 1;
}
forward UnFreeze(playerid);
public UnFreeze(playerid)
{
TogglePlayerControllable(playerid,1);
return 1;
}
EDIT 2013: THIS INCLUDE IS OLD AND OUTDATED! SA-MP HAS DEVELOPED NATIVE FUNCTIONS FOR THIS. |