Vehicle fly hack /speed hack anti cheat help - 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: Vehicle fly hack /speed hack anti cheat help (
/showthread.php?tid=536073)
Vehicle fly hack /speed hack anti cheat help -
MBilal - 07.09.2014
Hello Guyz wtf with it Plz Help me Fix Code thanks
PHP код:
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
// get the vehicle id
new veh1 = GetVehicleModel(GetPlayerVehicleID(playerid));// get the vehicle model
if(veh1 != 460 || veh1 != 520 ||veh1 != 519 ||veh1 != 553 ||veh1 != 577 ||veh1 != 592 ||veh1 != 593 ||veh1 != 513 ||veh1 !=512 ||veh1 !=511 ||veh1 != 476 )
{
if(GetVehicleSpeed(GetPlayerVehicleID(playerid)) > 260){
Player[playerid][pBan]=1;
SendClientMessage(playerid, COLOR_YELLOW, "You have been banned from the server. Reason: Vehicle Speed Hack");
format(pstring, 128, " %s has been banned from the server. Reason:Vehicle Speed Hack", GetName(playerid));
SendClientMessageToAll(COLOR_KRED, pstring);
SaveIn("BanLog.txt",pstring);
SetTimerEx("KickPlayer",1000/2,false,"d", playerid);
return 1;
}}
}
Re: Vehicle fly hack /speed hack anti cheat help -
Eth - 07.09.2014
pawn Код:
new veh1 = GetPlayerVehicleID(playerid),model = GetVehicleModel(vehicleid);
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(model != 460 && model != 520 ||model != 519 ||model != 553 ||model != 577 ||model != 592 ||model != 593 ||model != 513 ||model !=512 ||model !=511 ||model != 476 )
{
if(veh1 != 460 || veh1 != 520 ||veh1 != 519 ||veh1 != 553 ||veh1 != 577 ||veh1 != 592 ||veh1 != 593 ||veh1 != 513 ||veh1 !=512 ||veh1 !=511 ||veh1 != 476 )
{
if(GetVehicleSpeed(GetPlayerVehicleID(playerid)) > 260){
Player[playerid][pBan]=1;
SendClientMessage(playerid, COLOR_YELLOW, "You have been banned from the server. Reason: Vehicle Speed Hack");
format(pstring, 128, " %s has been banned from the server. Reason:Vehicle Speed Hack", GetName(playerid));
SendClientMessageToAll(COLOR_KRED, pstring);
SaveIn("BanLog.txt",pstring);
SetTimerEx("KickPlayer",1000/2,false,"d", playerid);
}
}
}
}
return 1;
}
Re: Vehicle fly hack /speed hack anti cheat help -
MBilal - 07.09.2014
dude i get error undefined vehicleid
Re: Vehicle fly hack /speed hack anti cheat help -
MBilal - 07.09.2014
Sory for Bumping Any budy help plz
Re: Vehicle fly hack /speed hack anti cheat help -
Eth - 08.09.2014
pawn Код:
new veh1 = GetPlayerVehicleID(playerid),model = GetVehicleModel(veh1);
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(model != 460 && model != 520 ||model != 519 ||model != 553 ||model != 577 ||model != 592 ||model != 593 ||model != 513 ||model !=512 ||model !=511 ||model != 476 )
{
if(veh1 != 460 || veh1 != 520 ||veh1 != 519 ||veh1 != 553 ||veh1 != 577 ||veh1 != 592 ||veh1 != 593 ||veh1 != 513 ||veh1 !=512 ||veh1 !=511 ||veh1 != 476 )
{
if(GetVehicleSpeed(GetPlayerVehicleID(playerid)) > 260){
Player[playerid][pBan]=1;
SendClientMessage(playerid, COLOR_YELLOW, "You have been banned from the server. Reason: Vehicle Speed Hack");
format(pstring, 128, " %s has been banned from the server. Reason:Vehicle Speed Hack", GetName(playerid));
SendClientMessageToAll(COLOR_KRED, pstring);
SaveIn("BanLog.txt",pstring);
SetTimerEx("KickPlayer",1000/2,false,"d", playerid);
}
}
}
}
return 1;
}
Re: Vehicle fly hack /speed hack anti cheat help -
MBilal - 08.09.2014
dude i try that but it still fail not detect Vehicle fly hack