17.02.2009, 18:05
Quote:
Originally Posted by SilentHuntR
Yeah but without a toggle variable it will spam that. I suggest using a looping animation like Sweet's injury, that way the player doesn't become invincible. Also make sure to kick the player out of any vehicle he/she may be in.
|
pawn Код:
public OnPlayerUpdate(playerid)
{
if(IsPlayerConnected(playerid))
{
new Float:health;
if(GetPlayerHealth(playerid, health) < 5)
{
// PlayerInfo[playerid][pLocal] = 255;
SendClientMessage(playerid, COLOR_YELLOW, "Please Wait for an Ambulance");
TogglePlayerControllable(playerid, 0);
return 1;
}
return 1;
}
return 1;
}