[FilterScript] Simple Anti-Spawnkill for 10 seconds
#1

This is just a simple filterscript since I saw many people don't know how to make Anti-Spawnkill



DOWNLOAD: http://www.zshare.net/download/8214801937408666/


Use it wisely
Reply
#2

Nice filterscript altho i think viruzzzz_chill made something like this (forgot howto spell his name xD)
Reply
#3

Didn't see
Anyways thanks
It has 27 lines xD
Reply
#4

pawn Код:
#include <a_samp>
forward AntiSpawnkill(playerid);
public OnFilterScriptInit() { print("\n--------------------------------------"), print("* Anti-Spawnkill by Mean loaded"), print("--------------------------------------\n"); return 1;}
public OnPlayerSpawn(playerid) { SetPlayerHealth(playerid, 10000.0), SendClientMessage(playerid, 0xFF0000AA, "You have 10 seconds of Anti-Spawnkill protection"), SetPlayerChatBubble(playerid, "Anti-Spawnkill protected player", 0xFF0000AA, 100.0, 10000),SetTimerEx("AntiSpawnkill",10000,0,"d",playerid);}
public AntiSpawnkill(playerid) { SetPlayerHealth(playerid, 100.0), SendClientMessage(playerid, 0xFF0000AA, "Anti-Spawnkill protection over, you are on your own now");}
5 lines now :P

(was bored)

maybe an suggestion:

pawn Код:
#include <a_samp>

#define PROTECTIONTIME 10 //Inseconds

forward AntiSpawnkill(playerid);
public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print("* Anti-Spawnkill by Mean loaded");
    print("--------------------------------------\n");
    return 1;
}

public OnPlayerSpawn(playerid)
{
    SetPlayerHealth(playerid, 10000.0);
    new str[128];
    format(str, sizeof(str), "You can't be killed for %d second(s) (spawn protection)", PROTECTIONTIME);
    SendClientMessage(playerid, 0xFF0000AA, str);
    SetPlayerChatBubble(playerid, "Anti-Spawnkill protected player", 0xFF0000AA, 100.0, 10000);
    SetTimerEx("AntiSpawnkill",PROTECTIONTIME*1000,0,"d",playerid);
    return 1;
}

public AntiSpawnkill(playerid)
{
    SetPlayerHealth(playerid, 100.0);
    SendClientMessage(playerid, 0xFF0000AA, "Anti-Spawnkill protection over, you are on your own now");
    return 1;
}
Just that you can change the anti spawn kill time
Reply
#5

great fs,i will use it
Reply
#6

Nice a friend needs this.
Reply
#7

Quote:
Originally Posted by edijs21
Посмотреть сообщение
great fs,i will use it
Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
Nice a friend needs this.
Thanks
Reply
#8

Quote:
Originally Posted by RobinOwnz
Посмотреть сообщение
pawn Код:
#include <a_samp>
forward AntiSpawnkill(playerid);
public OnFilterScriptInit() { print("\n--------------------------------------"), print("* Anti-Spawnkill by Mean loaded"), print("--------------------------------------\n"); return 1;}
public OnPlayerSpawn(playerid) { SetPlayerHealth(playerid, 10000.0), SendClientMessage(playerid, 0xFF0000AA, "You have 10 seconds of Anti-Spawnkill protection"), SetPlayerChatBubble(playerid, "Anti-Spawnkill protected player", 0xFF0000AA, 100.0, 10000),SetTimerEx("AntiSpawnkill",10000,0,"d",playerid);}
public AntiSpawnkill(playerid) { SetPlayerHealth(playerid, 100.0), SendClientMessage(playerid, 0xFF0000AA, "Anti-Spawnkill protection over, you are on your own now");}
5 lines now :P

(was bored)

maybe an suggestion:

pawn Код:
#include <a_samp>

#define PROTECTIONTIME 10 //Inseconds

forward AntiSpawnkill(playerid);
public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print("* Anti-Spawnkill by Mean loaded");
    print("--------------------------------------\n");
    return 1;
}

public OnPlayerSpawn(playerid)
{
    SetPlayerHealth(playerid, 10000.0);
    new str[128];
    format(str, sizeof(str), "You can't be killed for %d second(s) (spawn protection)", PROTECTIONTIME);
    SendClientMessage(playerid, 0xFF0000AA, str);
    SetPlayerChatBubble(playerid, "Anti-Spawnkill protected player", 0xFF0000AA, 100.0, 10000);
    SetTimerEx("AntiSpawnkill",PROTECTIONTIME*1000,0,"d",playerid);
    return 1;
}

public AntiSpawnkill(playerid)
{
    SetPlayerHealth(playerid, 100.0);
    SendClientMessage(playerid, 0xFF0000AA, "Anti-Spawnkill protection over, you are on your own now");
    return 1;
}
Just that you can change the anti spawn kill time
Will the protected player be able to shoot the other players around?
Reply
#9

No nobody can cuz all players will have unlimited health for 10 secs ! ! !
Reply
#10

thanks gonna use for my server
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)