Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*==============================================================================
- ______ __
- / ____/___ ____/ /___ _________ _____
- / __/ / __ \/ __ / __ \/ ___/ __ \/ ___/
- / /___/ / / / /_/ / /_/ / / / /_/ (__ )
- /_____/_/ /_/\__,_/\____/_/ / .___/____/
- /_/
- ================================================================================
- - Anti Spawn-Kill -
- - by Endorps -
- ==============================================================================*/
- //------------------------------------------------------------------------------
- #include <a_samp>
- //------------------------------------------------------------------------------
- #define FILTERSCRIPT
- //------------------------------------------------------------------------------
- #if defined FILTERSCRIPT
- //------------------------------------------------------------------------------
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Blank Filterscript by your name here");
- print("--------------------------------------\n");
- return 1;
- }
- //------------------------------------------------------------------------------
- public OnFilterScriptExit()
- {
- return 1;
- }
- //------------------------------------------------------------------------------
- #else
- //------------------------------------------------------------------------------
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- //------------------------------------------------------------------------------
- public OnPlayerSpawn(playerid) // kada se igrac stvori pokrece sve ispod
- {
- SetPlayerHealth(playerid, 10000.0); // stavlja igracu 10000 helta tako da ga niko nemoze ubiti
- SendClientMessage(playerid, 0x33CCFFAA, "Imate 5 sekundi anti spawn-kill protekcije."); // salje igracu poruku da imaju anti spawn-kill protekciju
- SetTimerEx("antisk",5000,0,"i",playerid); // broj 5000 (5 sekundi) mozete promijeniti sa svojim (npr. ako promijenite 5000 sa 10000 anti spawn-kill ce trajati 10 sekundi).
- return 1;
- }
- //------------------------------------------------------------------------------
- forward antisk(playerid); // forwarduje public antisk
- public antisk(playerid) // kada timer zavrsi odbrojavanje pokrece sve ispod
- {
- SetPlayerHealth(playerid, 100.0); // stavlja igracu helte na 100
- SendClientMessage(playerid, 0xAAAA33AA, "Vise nemate anti spawn-kill protekciju!"); // salje igracu poruku da vise nemaju anti spawn-kill protekciju
- return 1;
- }
- //------------------------------------------------------------------------------
- #endif
- /*==============================================================================
- - Kraj skripte -
- - Uzivajte -
- ==============================================================================*/
Advertisement
Add Comment
Please, Sign In to add comment