spwan with over 100 hp wont work
#1

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
Reply
#2

Maybe you have some anticheat which blocks this ?
Reply
#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
#4

I here am experiencing this with Zombie Chasing NPC'S as well.
Reply
#5

Quote:
Originally Posted by AlexzzPro
Посмотреть сообщение
It shows as 100, But really it is 150.
it's showing 100 caus it's 100 hp (i hav a txt rawn for hp & armor)
tha problem whas junkbuster ... it spawn the player with 100 hp
Reply
#6

Quote:
Originally Posted by Amine_Mejrhirrou
Посмотреть сообщение
it's showing 100 caus it's 100 hp (i hav a txt rawn for hp & armor)
tha problem whas junkbuster ... it spawn the player with 100 hp
Oh :P But did you figure out how to solve it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)