health
#1

how can i make from this line

pawn Код:
SetPlayerHealth(playerid, 100);
that it will not give instant 100 hp but 25 hp each time
so if i type /usedrugs it will give me 25 hp
and not instant 100 hp
so i mean my hp is 5 i type /usedrugs so i get 25 hp more so i get 30 hp
en then if i type it my hp will go to 55 en then if i type 80 en then if i type 95
Reply
#2

Код:
new Float:health;
GetPlayerHealth(playerid, health);
SetPlayerHealth(playerid, health+25);
Reply
#3

thanks dude
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)