anti weapon
#2

Quote:
Originally Posted by Schock
how to make this fakekill proof:
pawn Код:
new pname[24];
            new kname[24];
            new string[128];
            GetPlayerWeapon(killerid);
            if(GetPlayerWeapon(killerid) == 38 || == 37 || reason == 36 || reason == 35 || reason == 34 || reason == 33 || reason == 32 || reason == 31 || reason == 30 || reason == 29 || reason == 28 || reason == 27 || reason == 26 || reason == 25 || reason == 24 || reason == 23 || reason == 22 || reason == 9)
            {
                GetPlayerName(playerid, pname, sizeof(pname));
                     GetPlayerName(killerid, kname, sizeof(kname));
                format(string, sizeof(string), "%s get kicked cause he killed %s with a cheating weapon. BYE BYE!!!", kname, pname);
                SendClientMessageToAll(RED, string);
                Kick(killerid);
            }


// its under public OnPlayerDeath(playerid, killerid, reason)
just add this to your script:

[pawn]new selfkill[MAX_PLAYERS];

@ /kill > selfkill[playerid] = 1;

@ your anti kill, || reason == 9 && selfkill[playerid] == 0)

under the anti kill selfkill[playerid] = 0;
Reply


Messages In This Thread
anti weapon - by Schock - 10.02.2009, 13:54
Re: anti weapon - by Think - 10.02.2009, 14:34
Re: anti weapon - by Schock - 10.02.2009, 18:24
Re: anti weapon - by Think - 10.02.2009, 19:37
Re: anti weapon - by Nimphious - 10.02.2009, 20:52
Re: anti weapon - by 1337pr0 - 11.02.2009, 04:08
Re: anti weapon - by Schock - 14.02.2009, 15:32
Re: anti weapon - by Schock - 14.02.2009, 22:07
Re: anti weapon - by c-middia - 14.02.2009, 22:47
Re: anti weapon - by 1337pr0 - 16.02.2009, 06:53
Re: anti weapon - by Schock - 16.02.2009, 17:00
Re: anti weapon - by 1337pr0 - 16.02.2009, 18:37
Re: anti weapon - by whooper - 16.02.2009, 19:10

Forum Jump:


Users browsing this thread: 3 Guest(s)