07.05.2011, 09:35
Quote:
yo all
the problem is simple : this is my script Код:
public OnPlayerSpawn(playerid) { if(team[playerid] == 2) { SetPlayerRandomSpawn(playerid); SetPlayerTeam(playerid, 2); team[playerid] = 2; SetPlayerColor(playerid,ZRED); GameTextForPlayer(playerid,"~r~Zombie ~b~ KEY_FIRE to bit human",10000,3); SetPlayerHealth(playerid, 150); GivePlayerMoney(playerid,30); |
Add this code to your script and do /myhealth ingame and you will see your health.
pawn Код:
if (strcmp("/myhealth", cmdtext, true, 10) == 0)
{
new string[128];
new Float:health;
GetPlayerHealth(playerid,health);
format(string,128,"Your health is: %.1f ");
SendClientMessage(playerid,0xAAAAAAAA,string);
return 1;
}