27.05.2009, 16:39
Hello All
...
I once was a victim of a fake kill and a ban ... ;(
...
Since I know many of you guys are victims too of that...
I wanna help myself and y'all out
...
Its Called "Weapon+FakeKill AntCheat"
...
What it does? :
In some servers, a guy pulls out a MINIGUN and gets kicked or banned (DUH!)
But In same server, the reason is "Minigun" ...
... So wait.... How can a guy kill other guy... If the weapon... ehh.... WTF ?!?!? (this is the part where many ppl get confused) xD
...
So here u go
...
That's it I think ... Cya'll
Comments ? :P
Cya :P
...
I once was a victim of a fake kill and a ban ... ;(
...
Since I know many of you guys are victims too of that...
I wanna help myself and y'all out
...
Its Called "Weapon+FakeKill AntCheat"
...
What it does? :
In some servers, a guy pulls out a MINIGUN and gets kicked or banned (DUH!)
But In same server, the reason is "Minigun" ...
... So wait.... How can a guy kill other guy... If the weapon... ehh.... WTF ?!?!? (this is the part where many ppl get confused) xD
...
So here u go
pawn Code:
//goes in top
new NoobWeps[] = {36, 38, 37}; // 1st make ur self a list of weapons that are not allowed (add more/less if you want)
public OnPlayerUpdate(playerid)
{
for(new i=0; i<sizeof(NoobWeps); i++) // dont know how to explain this
if(GetPlayerWeapon(playerid) == NoobWeps[i]) // the "if" part now... (detects the "noob weps")
Kick(playerid); // kicks him ... or change it how u want it
}
public OnPlayerDeath(playerid, killerid, reason) // now here
{
for(new i=0; i<sizeof(NoobWeps); i++) // same thingy again
if(reason == NoobWeps[i]) // since reason is same like weapon id ... so just add it here lol
SendClientMessage(playerid, 0xF97804FF, "Fake-Kill Detected! Fuck you !"); // you should get this part ... do you ? :pp
Kick(playerid); // and the guy gets kicked .. or change how u want
}
Code:
GUYS I NEVER HAD A CHANCE TO TEST IT... cause I got no one to do it with .. and no host to I hope it works ... Please tell me if it works
That's it I think ... Cya'll
Comments ? :P
Code:
Notice!!! Players will be able to do fake-kills with weapons that are not in the "noob weapons" list ... Im not that advanced to make scripts that detect did killer did any real damage or not to a player.. .. So this only a uber-simple-short thingy ... .. When I learn something new ... I will use it