This is my 2nd filterscipt.This filterscipt is EASY TO INSTALL AND EASY TO EDIT,AND USE.
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;
}