All pastes #926024 Raw Edit

Something

public text v1 · immutable
·published 2008-03-03 14:31 UTC
rendered paste body
/*
================================================================================
SHI [INC]
By: Splitx
(c)
Copyright: Splitx
================================================================================
TIP:
1. If You Read EVERY Thing You Dont Need To Post:
"I Dont Under Stand How To Use "Kill(playerid);" Every Thing Is Vritten In The Text "I Think" :)
================================================================================
Credits TO:
Splitx For Make This Possible! xD
================================================================================
I Made This Include So It Wuld Be Mutch!! Eazyer And Faster To:

1. Set The Health To What You Want!

2. Kill (A Player Or Your Self)

3. Heal (A Player Or Your Self)

4. Toggle So The Player Dont Lose Health

****************************[Explanation]***************************************

Kill(playerid); This Will Put The Player Health To 0%

Heal(playerid); This Will Put The Player Health To 100.00%

SetHp(playerid,Float:HP); This Will Put The Player Healt To What You Set It To
Ex: SetHp(playerid,50.00); Will Set The Player Health To 50.00%

NotLoseHp(toggle); This Will Do So You Cant Die (IF! U Dont Jump From A Big House(Some Thing Tall) Or Use /kill :P)

                                [Eazy?]

****************************[How To Install]************************************

1. Put SHI.inc In Include Folder In Pawno

2. Go To Your Gamemode And Put #include <SHI> At The Top

******************************[How To Use]**************************************

If You Want To Use: Kill(playerid); Here Is An Ex:

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/kill", true) == 0)
{
    Kill(playerid);
    return 1;
}
return 1;
}

If You Want To Use: Heal(playerid); Here Is An Ex:

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/Heal", true) == 0)
{
    Heal(playerid);
    return 1;
}
return 1;
}

If You Want To Use: SetHp(playerid,Float:HP); Here Is An Ex:

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/Heal50", true) == 0)
{
    SetHp(playerid,50.00);
    return 1;
}
return 1;
}

If You Want To Use: NotLoseHp(toggle); Here Is An Ex:

Public OnGameModeInIt()
{
NotLoseHp(1);
return1
}

(Only Put It SOME WHERE IN! OnGameModeInIt)
*******************************[Next Version]***********************************

On V.0.2 I Think I Will Have Like

KillPlayerInArea(playerid,X,Y,Z);

HealPlayerInArea(playerid,X,Y,Z);

SetPlayerHpInArea(playerid,X,Y,Z,Float:HP);

HealInAmbulance(playerid);

If You Have Any Ideas For The Next Version Contact Me On: splitex@gmail.com

Or PM!

Or Post In Forum Topic

*******************************[Want To Help]***********************************

If You Want To Help Contact Me: splitexs@gmail.com

***********************************[Help]***************************************

U Need Help?

Dont ASK To ASK Just ASK!

*********************************[Contact]**************************************

Want To Contact Me?

Just Pm Or Mail Me

E-Mail: splitex@gmail.com

Pm: U Know How To XD

================================================================================
|******************************************************************************|
|******************************************************************************|
|************************************[Info]************************************|
|******************************[Made by: Splitx]*******************************|
|***********************************[V.0.1]************************************|
|***********************[Name: Splitx´s Health Include(SHI)]*******************|
|*************************[Relese Date: 3 March 2008]**************************|
|****************************[(C)CopyRight: Splitx]****************************|
|*********************************[Functions:]*********************************|
|******************************["Kill(playerid);"]*****************************|
|*****************************["Heal(playerid);"]******************************|
|*************************["SetHp(playerid,Float:HP);"]************************|
|****************************["NotLoseHp(toggle);"]****************************|
|*****************************[07:25 2008-03-03]*******************************|
|******************************************************************************|
|******************************************************************************|
================================================================================