/take drugs cmd
#10

pawn Код:
public UseDrugs(playerid)
{
new Float:health;
GetPlayerHealth(playerid,health);
if (health < 10.0)
{
SetPlayerHealth(playerid, 20.0);
}
else if (health > 20.0)
{
SetPlayerHealth(playerid, 25.0);
}
else if (health > 25.0)
{
SetPlayerHealth(playerid, 30.0);
}
else if (health > 30.0)
{
SetPlayerHealth(playerid, 35.0);
}
else if (health > 35.0)
{
SetPlayerHealth(playerid, 40.0);
}
else if (health > 40.0)
{
SetPlayerHealth(playerid, 45.0);
}
else if (health > 45.0)
{
SetPlayerHealth(playerid, 50.0);
}
else if (health > 50.0)
{
SetPlayerHealth(playerid, 55.0);
}
else if (health > 55.0)
{
SetPlayerHealth(playerid, 60.0);
}
else if (health > 60.0)
{
SetPlayerHealth(playerid, 65.0);
}
else if (health > 65.0)
{
SetPlayerHealth(playerid, 70.0);
}
else if (health > 70.0)
{
SetPlayerHealth(playerid, 75.0);
}
else if (health > 75.0)
{
SetPlayerHealth(playerid, 80.0);
}
else if (health > 80.0)
{
SetPlayerHealth(playerid, 85.0);
}
else if (health > 85.0)
{
SetPlayerHealth(playerid, 90.0);
}
else if (health > 90.0)
{
SetPlayerHealth(playerid, 95.0);
}
else if (health > 95.0)
{
SetPlayerHealth(playerid, 100.0);
}
return 1;
}

pawn Код:
new Float:health;
GetPlayerHealth(playerid,health);
if (health > 0)
{
SetPlayerHealth(playerid, health + 5);
}
Reply


Messages In This Thread
/take drugs cmd - by AIMigboboy - 27.07.2013, 02:56
Re: /take drugs cmd - by kartik - 27.07.2013, 02:59
Re: /take drugs cmd - by PrinceKumar - 27.07.2013, 03:43
Re: /take drugs cmd - by Vanter - 27.07.2013, 04:19
Re: /take drugs cmd - by AIMigboboy - 27.07.2013, 22:12
Re: /take drugs cmd - by Ceez - 27.07.2013, 22:19
Re: /take drugs cmd - by AIMigboboy - 28.07.2013, 00:55
Re: /take drugs cmd - by AIMigboboy - 28.07.2013, 03:32
Re: /take drugs cmd - by Vanter - 28.07.2013, 07:16
Re: /take drugs cmd - by Anak - 28.07.2013, 07:25

Forum Jump:


Users browsing this thread: 3 Guest(s)