anti fake kill! is this effective/good?? +REP+
#1

hi,

like the title says, this is supposed to be an anti fake kill but im not sure if my example is good.
Would it kick innoncent players? Or would it work?

pawn Код:
new Float:pHealthFake[MAX_PLAYERS];

public OnPlayerDeath(playerid, killerid, reason)
{
     if(killerid != INVALID_PLAYER_ID)
     {
         if(Spieler[killerid][AdminLevel] == 0)
         {
             if(GetPlayerWeapon(killerid)!=reason)
             {
                 GetPlayerHealth(playerid,pHealthFake[playerid]);
                 if(pHealthFake[playerid]>0)
                 {
                    //Kick player due to fake kill!
                 }
             }
         }
     }
     return 1;
}
thx
Reply
#2

Dude, seriously, did you just copy and pasted this out of a script?
Also, this code woudn't work, what if i just weared the gun i fakekilled someone with? i could avoid this script.
Reply
#3

NO I DIDNT!

What a noob answer, wanna get ur post count up, eh?
Please dont post if u have nothing to say!
Reply
#4

as wackox said you are not kicking the play..because you don't even use kick fuction..from where you copied this lol
Reply
#5

Quote:
Originally Posted by PawnoQ
Посмотреть сообщение
NO I DIDNT!

What a noob answer, wanna get ur post count up, eh?
Please dont post if u have nothing to say!
Well them, could you explain me where ''Spieler[killerid][AdminLevel]'' comes in the standard server package?
Also your nonsense is using up forum space, please leave.
Reply
#6


Sorry but i just had to do that in the case of you both...

This is ONLY an example!
I made it up in few secs and wanted to ask if this is the right idea to start with!
But guys please listen to me: Better let's wait for an experienced SCRIPTER to answer...

@WackoX:
The variable you mentioned is self-explanatory...
If the player is an admin the script just will ignore his action.

Please, please, just post if you know what you are talking about!
(dont want to offend someone but thats how it is!)
Reply
#7

The health detection method is super effective (I guess, since fakekilling doesn't actually kill anyone), but the weapon checking part is useless

The only problem is that not always haxors use fake kill on themselves (and then call OMG Y U KILLED ME NOOB ADMIN BAN PLZ), they often pick random players to get them in trouble/banned, and your script would only help them

This could be useful only to ignore fakekills from registering/showing on deathscreen/whatever, if cheater fails to achieve his goal (griefing/getting someone banned), he's VERY likely to start hacking more
Reply
#8

I'm an experienced scripter and I say;

you probably copied this from another script.
Reply
#9

mhh, thx ure right...
But as far as i know fake kill (doesnt kill anyone) but it makes the script think the fake killer really killed someone so it also gives the fake killer score and money.

But the problem is i think the script kicks innoncent players as well, so any ideas how to optimize it?

//edit:

@Schurman:
Another example for an unmature "Scripter"...
Reply
#10

Quote:
Originally Posted by PawnoQ
Посмотреть сообщение
mhh, thx ure right...
But as far as i know fake kill (doesnt kill anyone) but it makes the script think the fake killer really killed someone so it also gives the fake killer score and money.

But the problem is i think the script kicks innoncent players as well, so any ideas how to optimize it?

//edit:

@Schurman:
Another example for an unmature "Scripter"...
so when we say the truth..you call us "unmature scripters"

firstly we all bet that you dont know to make a simple ban command using zcmd and sscanf...2ndly immaturity differs from the ability of being honest.

ON-TOPIC:i dont think it will have results..
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)