[Question] I need help with crasher
#1

Quote:
Originally Posted by Matite
Посмотреть сообщение
Update 2:
"Bike crasher v2" = Use OnPlayerStateChange to detect rapid changes from on foot to driver and driver to on foot. Credit to Tamer.


As Kalcor mentioned in his announcement thread these exploits are all patched in SA-MP 0.3.7.
I try anyway but I can't understand how can I do it return 0 instead of kick.
Reply
#2

You need set an array to TRUE + https://sampwiki.blast.hk/wiki/OnPlayerUpdate and return 0
Reply
#3

Quote:
Originally Posted by Jefff
Посмотреть сообщение
You need set an array to TRUE + https://sampwiki.blast.hk/wiki/OnPlayerUpdate and return 0
Can you show me please?
Reply
#4

Quote:
Originally Posted by GuyYahood1
Посмотреть сообщение
Can you show me please?
You make this:

PHP код:
new bool:cheater[MAX_PLAYERS char]; //@the top
//Then when you detect the cheat
cheater{playerid} = true;
//and then under OnPlayerUpdate (first line)
if(cheater{playerid}) return 0;
//Make under OnPlayerConnect (that nobody new is a cheater xD)
cheater{playerid} = false
Greekz
Reply
#5

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
You make this:

PHP код:
new bool:cheater[MAX_PLAYERS char]; //@the top
//Then when you detect the cheat
cheater{playerid} = true;
//and then under OnPlayerUpdate (first line)
if(cheater{playerid}) return 0;
//Make under OnPlayerConnect (that nobody new is a cheater xD)
cheater{playerid} = false
Greekz
Thanks, are you sure that will block the Trolls?
Reply
#6

Sorry but this code dosen't block trolls, anyone else?
Reply
#7

UP....
Reply
#8

Up...
Reply
#9

Stop bumping it

And what did you make with it? show us some code..
Reply
#10

Quote:
Originally Posted by JaydenJason
Посмотреть сообщение
Stop bumping it

And what did you make with it? show us some code..
Sorry..

OnPlayerStateChange:

PHP код:
    if(newstate == PLAYER_STATE_DRIVER)
    {
        
PTick[playerid] = GetTickCount();
        if(
oldstate == PLAYER_STATE_DRIVER)if((GetTickCount()-PTick[playerid]) < 150)return 0;
    }
    if(
oldstate == PLAYER_STATE_DRIVER)if((GetTickCount()-PTick[playerid]) < 150)return 0
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)