28.11.2014, 07:44
What is wrong whit this ? , i want to freeze and send a message to players with 5 or - , why is not working ?
forward DamagedPlayer(playerid);
public DamagedPlayer(playerid)
{
new Float:health;
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerHealth(playerid, health);
if(health == 5)
{
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, COLOR_WHITE, "[Medic]: Nu mai ai Viata, Contacteaza un Medic(/call 911).");
}
return 1;
}
forward DamagedPlayer(playerid);
public DamagedPlayer(playerid)
{
new Float:health;
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerHealth(playerid, health);
if(health == 5)
{
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, COLOR_WHITE, "[Medic]: Nu mai ai Viata, Contacteaza un Medic(/call 911).");
}
return 1;
}