[FilterScript] [FS] Simple Script for Stuntserver by Schock
#1

Simple Stuntfuctions V 1.3

Hey guys i created my first very easy script for scripting beginners.
The script has no mega multi commands ^^
You can enter some more commands if you want
the only think you have to do is enter Coords and commandnames
for the teleports.

/tele ... // Teleport the player to an other position (you can add more like this)
/tele // This will show you all /tele ... commands (if you write your commands into /tele)
/fix // This will repair your car
/baguvix // This will give you every second 10000000 life and armour (if you are admin)
/help // You can enter your commands and they will displayed

The script has a anti minigun detection that means if a player was killed by a minigun the attacker will banned. If you press the left mousebutton your car get nitro.


And a special thanks to Seif_ i addet his Announcement-system cause it is the easyest and best i ever seen

At the end: Look into the script and change some things (i marked this things)
Now have fun with my first script and feel free to use it!


DOWNLOADLINK:
Version 1.3a


Version 1.3


Version 1.2


Version 1.1


Version 1.03


--------------------------------------------------------------

Changelog:
V 1.1
The Minigun protection is bugy its into script but not active

V 1.2
Minigun bug is fixed

V 1.3
HS,Rockedlauncher and Flamethrower protection addet
---------------------------------------------------------------

Please reply for bugs or some things i can do better ^^
sorry for my bad english
Reply
#2

Simply but nice.
Reply
#3

Quote:
Originally Posted by Schock
Super simple StuntFS
The script has a anti minigun detection that means if a player was killed by a minigun the attacker will banned.
If i were you, i would remove this, because of fake kill hack.
Reply
#4

yea if you go in a server and anybody use hacks to a admin (it happens me) it ban the admin
Reply
#5

no it only ban the cheating player i tested it
have a look at this :
Code:
Ban(killerid);
it say bann the id of the killer
Reply
#6

okay i will change it
Reply
#7

Its fixed :
Code:
public OnPlayerDeath(playerid, killerid, reason)
{
	if(GetPlayerWeapon(killerid) == 38)
	{
		new string[128], player[MAX_PLAYER_NAME];
		GetPlayerName(playerid, player, sizeof(player));

		format(string, sizeof(string), "%s died! Server Banned his attacker (reason: Minigun)", player);
		SendClientMessageToAll(YELLOW, string);
		Ban(killerid);
	}
	return 1;
}
this should work fine
Reply
#8

Quote:
Originally Posted by Tornado
If i were you, i would remove this, because of fake kill hack.
He has a point, certain hack programs allow the user to create a death message saying they killed someone with something. If I was to go on your server, and say you killed me with a minigun, your script would ban you. I think this is what they\'re getting at anyway.
Reply
#9

Alright, very nice filterscript, here is a improvement:

On OnPlayerDeath you are creating the string each time, you could save a few more bytes by easily creating it once, so it would look like:

pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
    new string[128], player[MAX_PLAYER_NAME];
    if(GetPlayerWeapon(killerid) == 38)
    {
        GetPlayerName(playerid, player, sizeof(player));

        format(string, sizeof(string), "%s died! Server Banned his attacker (reason: Minigun)", player);
        SendClientMessageToAll(YELLOW, string);
        Ban(killerid);
    }
    // ...
instead of:
pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(GetPlayerWeapon(killerid) == 38)
    {
        new string[128], player[MAX_PLAYER_NAME];
        GetPlayerName(playerid, player, sizeof(player));

        format(string, sizeof(string), "%s died! Server Banned his attacker (reason: Minigun)", player);
        SendClientMessageToAll(YELLOW, string);
        Ban(killerid);
    }
    //....
Anyways, great filterscript

EDIT: This is no big deal though, its just that it saves bytes, thanks to Y_Less ;p
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)