[Question] I need help with crasher - 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: [Question] I need help with crasher (
/showthread.php?tid=567323)
[Question] I need help with crasher -
GuyYahood1 - 13.03.2015
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.
Re: [Question] I need help with crasher -
Jefff - 13.03.2015
You need set an array to TRUE +
https://sampwiki.blast.hk/wiki/OnPlayerUpdate and return 0
Re: [Question] I need help with crasher -
GuyYahood1 - 13.03.2015
Quote:
Originally Posted by Jefff
|
Can you show me please?
AW: Re: [Question] I need help with crasher -
Kaliber - 13.03.2015
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
Re: AW: Re: [Question] I need help with crasher -
GuyYahood1 - 14.03.2015
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?
Re: [Question] I need help with crasher -
GuyYahood1 - 14.03.2015
Sorry but this code dosen't block trolls, anyone else?
Re: [Question] I need help with crasher -
GuyYahood1 - 15.03.2015
UP....
Re: [Question] I need help with crasher -
GuyYahood1 - 15.03.2015
Up...
Re: [Question] I need help with crasher -
JaydenJason - 15.03.2015
Stop bumping it
And what did you make with it? show us some code..
Re: [Question] I need help with crasher -
GuyYahood1 - 16.03.2015
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;