Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Hello Everyone. This is my Fourth Filterscript.I haven't found any bugs yet.If anyone finds any, please pm me.
- //Please Do not repost this without my permission or remove the credits
- #include "a_samp"
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Anti-SpawnKill Protection Filterscript by iCool");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid, 0xFFFFF55, "This server uses an Anti-spawnkill protection system by iCool.");
- return 1;
- }
- public OnPlayerSpawn(playerid) //you can change the below sentence to your desire.
- {
- SetPlayerHealth(playerid, 9999);
- SendClientMessage(playerid, 0xFFFFF55, "[Anti-SpawnKill Protection]: You are set invincible for 10 seconds.");
- SetTimer("SKP", 10000, false);
- return 1;
- }
- forward SKP(playerid);
- public SKP(playerid)
- {
- SetPlayerHealth(playerid, 100.0);
- SendClientMessage(playerid, 0xFFFFF55, "[Anti-SpawnKill Protection]: Time Over.");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment