SA-MP Forums Archive
anti fake kill! is this effective/good?? +REP+ - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: anti fake kill! is this effective/good?? +REP+ (/showthread.php?tid=311289)



anti fake kill! is this effective/good?? +REP+ - PawnoQ - 15.01.2012

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


Re: anti fake kill! is this effective/good?? +REP+ - WackoX - 15.01.2012

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.


Re: anti fake kill! is this effective/good?? +REP+ - PawnoQ - 15.01.2012

NO I DIDNT!

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


Re: anti fake kill! is this effective/good?? +REP+ - vassilis - 15.01.2012

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


Re: anti fake kill! is this effective/good?? +REP+ - WackoX - 15.01.2012

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.


Re: anti fake kill! is this effective/good?? +REP+ - PawnoQ - 15.01.2012


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!)


Re: anti fake kill! is this effective/good?? +REP+ - DiDok - 15.01.2012

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


Re: anti fake kill! is this effective/good?? +REP+ - SchurmanCQC - 15.01.2012

I'm an experienced scripter and I say;

you probably copied this from another script.


Re: anti fake kill! is this effective/good?? +REP+ - PawnoQ - 15.01.2012

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"...


Re: anti fake kill! is this effective/good?? +REP+ - vassilis - 15.01.2012

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..