How would i do this?
#1

Im looking for kind of the GetPlayerHealth

Код:
	new Float:HP;
		GetPlayerHealth(playerid, HP);
		SetPlayerHealth(playerid, HP+75);
But i need it for like bring drunk how would i do that?
Reply
#2

Make clear what you wanna do. I cant understand you..
Reply
#3

Код:
if (strcmp("/heal", cmdtext, true, 10) == 0)
	{
        new HP;
        HP = GetPlayerHealth(playerid);
        SetPlayerHealth(playerid, (HP)+30);
	return 1;
    }
i guess like this
Reply
#4

Код:
if(strcmp(cmdtext, "/doctor", true) == 0)
    {
    new Float:health;
    GetPlayerHealth(playerid,health);
    SetPlayerHealth(playerid, (health)+10.0);
    ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
    return 1;
    }
!?!?!?
Reply
#5

Quote:
Originally Posted by tour15
Посмотреть сообщение
Make clear what you wanna do. I cant understand you..
It seems pretty clear if you understood what

Код:
	new Float:HP;
		GetPlayerHealth(playerid, HP);
		SetPlayerHealth(playerid, HP+75);
Does lol
Reply
#6

Quote:
Originally Posted by RowdyrideR
Посмотреть сообщение
Код:
if(strcmp(cmdtext, "/doctor", true) == 0)
    {
    new Float:health;
    GetPlayerHealth(playerid,health);
    SetPlayerHealth(playerid, (health)+10.0);
    ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
    return 1;
    }
!?!?!?
No, thats not what i wanted, nevermind
Reply
#7

You haven't been realy clear. I think your looking for this.
https://sampwiki.blast.hk/wiki/SetPlayerDrunkLevel

Might be wrong though because your not being clear enough.
Reply
#8

Quote:
Originally Posted by iggy1
Посмотреть сообщение
You haven't been realy clear. I think your looking for this.
https://sampwiki.blast.hk/wiki/SetPlayerDrunkLevel

Might be wrong though because your not being clear enough.
No i got it, if you knew what the code does (it checks if you have less HP) then it will add more, i dont know if DrunkLevel does that by itself
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)