spwan with over 100 hp wont work
#3

Quote:
Originally Posted by Amine_Mejrhirrou
Посмотреть сообщение
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);
but when i spaw tha plyr has only 100 hp
It shows as 100, But really it is 150.

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;
    }
Reply


Messages In This Thread
spwan with over 100 hp wont work - by Amine_Mejrhirrou - 06.05.2011, 20:56
Re: spwan with over 100 hp wont work - by Daddy Yankee - 07.05.2011, 08:30
Re: spwan with over 100 hp wont work - by BizzyD - 07.05.2011, 09:35
Re: spwan with over 100 hp wont work - by Lorenc_ - 07.05.2011, 09:43
Re : Re: spwan with over 100 hp wont work - by Amine_Mejrhirrou - 07.05.2011, 10:23
Re: Re : Re: spwan with over 100 hp wont work - by BizzyD - 07.05.2011, 10:36

Forum Jump:


Users browsing this thread: 2 Guest(s)