SA-MP Forums Archive
Crash players - 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: Crash players (/showthread.php?tid=487295)



Crash players - MahdiGames - 12.01.2014

Hello, if there are player crash players they trying to send vehicles i think bad model then players crash how to make anti crash to prevent him??


Re: Crash players - MahdiGames - 12.01.2014

Help please?


Re: Crash players - MatriXgaMer - 12.01.2014

pawn Код:
CMD:vehicle(playerid, params[])
{
      //bla bla your code
     if(cID > 612)SendClientMessage(playerid, -1, "Invalid Vehicle ID (400-611)"); //-1 is Random Color.
     if(cID < 400)SendClientMessage(playerid, -1, "Invalid Vehicle ID (400-611)"); //-1 is Random Color.
     return 1;
}



Re: Crash players - MahdiGames - 12.01.2014

Quote:
Originally Posted by MatriXgaMer
Посмотреть сообщение
pawn Код:
CMD:vehicle(playerid, params[])
{
      //bla bla your code
     if(cID > 612)SendClientMessage(playerid, -1, "Invalid Vehicle ID (400-611)"); //-1 is Random Color.
     if(cID < 400)SendClientMessage(playerid, -1, "Invalid Vehicle ID (400-611)"); //-1 is Random Color.
     return 1;
}
The Crasher is sending Invalid Vehicle ID not spawning it, so the player will crash if he was on vehicle and the hacker replaced his car by invalid vehicle id


Re: Crash players - MahdiGames - 12.01.2014

http://pastebin.com/6rf01BNS , can anyone tell me what this link is