Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new ACTimer;
- new Float:MaxVehSpeed[213] =
- {
- //MAX SPEED //ACCELERATION
- 160.0, //25.0
- 160.0, //15.0
- 200.0, //28.0
- 120.0, //25.0
- 150.0, //18.0
- 165.0, //24.0
- 110.0, //25.0
- 170.0, //27.0
- 110.0, //20.0
- 180.0, //18.0
- 160.0, //19.0
- 240.0, //30.0
- 160.0, //23.0
- 160.0, //15.0
- 140.0, //18.0
- 230.0, //30.0
- 155.0, //24.0
- 200.0, //16.0
- 150.0, //15.0
- 160.0, //18.0
- 180.0, //19.0
- 180.0, //21.0
- 165.0, //20.0
- 145.0, //14.0
- 170.0, //30.0
- 200.0, //16.0
- 200.0, //22.0
- 170.0, //20.0
- 170.0, //15.0
- 200.0, //33.0
- 190.0, //1.7
- 130.0, //14.0
- 80.0, //40.0
- 180.0, //20.0
- 200.0, //28.0
- 120.0, //18.0
- 160.0, //18.0
- 160.0, //18.0
- 160.0, //24.0
- 160.0, //23.0
- 160.0, //18.0
- 75.0, //35.0
- 150.0, //16.0
- 150.0, //13.0
- 110.0, //45.0
- 165.0, //22.0
- 190.0, //3.0
- 200.0, //16.0
- 190.0, //30.0
- 150.0, //25.0
- 120.0, //18.0
- 240.0, //30.0
- 190.0, //2.5
- 190.0, //0.7
- 190.0, //1.4
- 140.0, //25.0
- 160.0, //14.0
- 160.0, //15.0
- 165.0, //20.0
- 160.0, //15.0
- 200.0, //1.7
- 190.0, //50.0
- 190.0, //30.0
- 190.0, //40.0
- 75.0, //1.0
- 75.0, //35.0
- 160.0, //22.0
- 160.0, //16.0
- 190.0, //50.0
- 200.0, //16.0
- 170.0, //25.0
- 160.0, //25.0
- 190.0, //1.6
- 190.0, //1.2
- 160.0, //18.0
- 160.0, //24.0
- 200.0, //16.0
- 200.0, //28.0
- 150.0, //14.0
- 165.0, //16.0
- 200.0, //30.0
- 120.0, //18.0
- 150.0, //25.0
- 120.0, //16.0
- 190.0, //0.5
- 160.0, //20.0
- 100.0, //35.0
- 200.0, //16.0
- 200.0, //16.0
- 170.0, //20.0
- 170.0, //22.0
- 160.0, //18.0
- 160.0, //20.0
- 190.0, //3.0
- 220.0, //26.0
- 170.0, //28.0
- 200.0, //26.0
- 200.0, //16.0
- 140.0, //14.0
- 140.0, //14.0
- 160.0, //24.0
- 75.0, //35.0
- 220.0, //26.0
- 220.0, //26.0
- 160.0, //24.0
- 170.0, //20.0
- 230.0, //26.0
- 165.0, //20.0
- 140.0, //14.0
- 190.0, //50.0
- 190.0, //50.0
- 200.0, //16.0
- 200.0, //16.0
- 200.0, //16.0
- 120.0, //25.0
- 120.0, //25.0
- 165.0, //20.0
- 165.0, //22.0
- 160.0, //24.0
- 200.0, //16.0
- 200.0, //16.0
- 190.0, //50.0
- 190.0, //60.0
- 190.0, //50.0
- 110.0, //20.0
- 160.0, //25.0
- 160.0, //20.0
- 160.0, //20.0
- 170.0, //25.0
- 160.0, //18.0
- 60.0, //20.0
- 70.0, //20.0
- 140.0, //25.0
- 200.0, //28.0
- 160.0, //23.0
- 160.0, //40.0
- 160.0, //24.0
- 110.0, //20.0
- 110.0, //20.0
- 150.0, //2.0
- 160.0, //18.0
- 230.0, //30.0
- 160.0, //24.0
- 165.0, //25.0
- 170.0, //27.0
- 160.0, //22.0
- 160.0, //18.0
- 160.0, //18.0
- 200.0, //16.0
- 160.0, //24.0
- 160.0, //17.0
- 165.0, //22.0
- 160.0, //18.0
- 200.0, //16.0
- 170.0, //25.0
- 180.0, //30.0
- 110.0, //45.0
- 110.0, //45.0
- 200.0, //20.0
- 200.0, //28.0
- 200.0, //28.0
- 200.0, //20.0
- 200.0, //28.0
- 200.0, //16.0
- 75.0, //35.0
- 200.0, //24.0
- 160.0, //24.0
- 160.0, //24.0
- 170.0, //35.0
- 110.0, //20.0
- 110.0, //20.0
- 90.0, //18.0
- 60.0, //12.0
- 110.0, //35.0
- 60.0, //12.0
- 160.0, //20.0
- 160.0, //20.0
- 200.0, //16.0
- 110.0, //20.0
- 160.0, //25.0
- 165.0, //24.0
- 190.0, //50.0
- 160.0, //15.0
- 170.0, //15.0
- 120.0, //18.0
- 165.0, //21.0
- 190.0, //40.0
- 200.0, //24.0
- 140.0, //14.0
- 200.0, //30.0
- 110.0, //20.0
- 120.0, //18.0
- 200.0, //16.0
- 200.0, //16.0
- 60.0, //50.0
- 190.0, //1.5
- 200.0, //25.0
- 200.0, //25.0
- 200.0, //25.0
- 160.0, //30.0
- 165.0, //25.0
- 110.0, //24.0
- 200.0, //23.0
- 200.0, //26.0
- 0.0, //0.0
- 0.0, //0.0
- 160.0, //20.0
- 160.0, //20.0
- 160.0, //20.0
- 140.0, //14.0
- 160.0, //20.0
- 60.0, //20.0
- };
- public OnPlayerConnect(playerid)
- {
- ACTimer = SetTimer("AntiCheat", 1000, true);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- KillTimer(ACTimer);
- return 1;
- }
- forward AntiCheat();
- public AntiCheat()
- {
- if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
- {
- new vid = GetPlayerVehicleID(i), mid = GetVehicleModel(vid), Float:speed = GetSpeed(i);
- if(speed > MaxVehSpeed[mid - 400] && MaxVehSpeed[mid - 400] > 30)
- {
- SCM(i, -1, ""RED"CHEAT | "WHITE"You have been kicked for using speed hack (IN-VEHICLE)");
- new string[128];
- format(string, sizeof(string), ""SERVERBLUE"SERVER | "WHITE"Player %s has been kicked for using speed hack (IN-VEHICLE)!", GetName(i));
- SCMTA(-1, string);
- DelayedKick(i);
- return 1;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement