[FilterScript] Simple DeathMatch Filterscript
#1

Features of this script:
-5 second respawn shield (you are immortal for 5 seconds when you spawn)
-BuyWeapon dialog (just type /buygun)
-Anti-Jetpack (if a people spawn Jetpack with ****** or another cheats this get banned)

So, yeah, is a simple script but that's was my first FS, hope you like it.

PASTEBIN

http://pastebin.com/7TMWfKh8
Reply
#2

Where is exactly the DeathMatch. I can see only a Anti-Cheat(Jetpack), dialogs to buy weaps and Anti-Spawnkill.
Reply
#3

So, You have the whole nerve to post a 5 lines GameMode in Filterscript Section. As your first post, You made a bad First impression...
Reply
#4

Is just a simple FS, how I say in topic.
Reply
#5

Looks like you don't have a clue about if and switch functions.

Example:
pawn Код:
if(dialogid == 1)
{
    switch(dialogid)
    {
        case 1:
        {
            //...
        }
    }
}
Why do you do this?
It's quite useless if you check the variable dialogid with if then using afterwards switch which calls case 1..

Simple do
pawn Код:
if(dialogid == 1)
{
    //...
}
or
pawn Код:
switch(dialogid)
{
    case 1:
    {
        //...
    }
}
Second thing:
pawn Код:
public OnPlayerUpdate(playerid)
{
    if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)
    {
        Ban(playerid);
        SendClientMessage(playerid, 0xFF0000FF, "Sorry, you can't use Jetpack here. [BANNED]");
    }
    return 1;
}
This has nothing to do with a DM FS.
If you want to script an anticheat, so use timers instead of scripting in OnPlayerUpdate (But if you don't want to use timers so you can check my ncbs include how I've done calling changes in OPU)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)