health
#1

why does it heal me if i have more than 100 score ?

Код:
     if(pickupid == newbiepickup)
     {
     if(GetPlayerScore(playerid) < 100)
     {
     SetPlayerHealth(playerid,100);
     }else SendClientMessage(playerid,-1,"- ");
     }
Reply
#2

Код:
if(pickupid == newbiepickup)
{
	if(GetPlayerScore(playerid) <= 100)
	{
    	SetPlayerHealth(playerid,100);
	}
	else SendClientMessage(playerid,-1,"- ");
}
So it lets you heal if your score is what value exactly?
Reply
#3

i need that if player has more than 100 score it wouldn't heal him
Reply
#4

Put > instead of <
Reply
#5

Quote:
Originally Posted by Banditul18
Посмотреть сообщение
Put > instead of <
still the same thing
Reply
#6

Double check make sure your score is being set by

SetPlayerScore
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)