SA-MP Forums Archive
[FilterScript] Hospital Healing - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Hospital Healing (/showthread.php?tid=447013)



Hospital Healing - Kittylol - 28.06.2013

Hello!
This is my 2nd filterscipt.This filterscipt is EASY TO INSTALL AND EASY TO EDIT,AND USE.
This is made more for Roleplay servers


pawn Код:
//(V) (;,,;) (V) The Royal SGB
//Hello scripter or admin!This script is made for servers like roleplay.
//This is SIMPLE script .
//When you eneter inside it will take off 100$(You can change value per healing)
//If you want you can remove one healing per living.It works like:You spawn,went heal yourself,and checkpoint disaphears until you spawn again or die,after it will show up back

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Healing System by Kittylol");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" Healing System by Kittylol");
    print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
    Create3DTextLabel("Healing:\nHealing only for 100$", 0x008080FF, 1172.8436, -1323.3690, 15.3999, 40.0, 0, 0);
    return 1;
}
public OnGameModeExit()
{
    return 1;
}

public OnPlayerSpawn(playerid)
{
    SetPlayerCheckpoint(playerid, 1172.8436, -1323.3690, 15.3999, 0.5);
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    SetPlayerHealth(playerid, 100.0);
    GivePlayerMoney(playerid, -100);//You can change the proice
    DisablePlayerCheckpoint(playerid);//Delete this if you don't want to use one time per Spawn(OPTIONAL)
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    SendClientMessage(playerid, 0xAA3333AA, "You can go to LS hospital and heal yourself for 100$!");
    return 1;
}



Re: Hospital Healing - iHaze. - 28.06.2013

Looks simple and nice, Good job.


Re: Hospital Healing - StayAlive - 28.06.2013

Nice, good job.