18.10.2012, 16:45
(
Последний раз редактировалось RenSoprano; 18.10.2012 в 16:57.
Причина: Made it
)
I think to add a system where when you under 25HP to change your walking style to Old Man but I need somebody who can show me an example with SetPVarInt
Do you think this will work well?
Do you think this will work well?
PHP код:
if(GetPlayerHealth(playerid) < 25.0 && GetPVarInt(playerid, "Under25HP") == 0)
{
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1,1);
SetPVarInt(playerid, "Under25HP", 1);
}
else if(GetPVarInt(playerid, "Under25HP") == 1 && GetPlayerHealth(playerid) > 25.0)
{
ClearAnimations(playerid);
SetPVarInt(playerid, "Under25HP", 0);
}



need to work with onplayerstatechange