Need help with Anti-Cheat (car destroy) - 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: Need help with Anti-Cheat (car destroy) (
/showthread.php?tid=381123)
Need help with Anti-Cheat (car destroy) -
SkyWings - 28.09.2012
I need a code, which destroy a RHINO than you take it?
My code didn't working:
Код:
if(GetPlayerVehicleID(playerid) == 432)
{
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
DestroyVehicle(currentveh);
SendClientMessage(playerid, 0x6EF83CFF, "{FFAF00}No cheats, dude!");
return 0;
}
Re: Need help with Anti-Cheat (car destroy) -
C00K13M0N$73R - 28.09.2012
GetVehicleModel
Not GetVehicleId
pawn Код:
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
if(GetVehicleModel(currentveh); == 432)
{
DestroyVehicle(currentveh);
SendClientMessage(playerid, 0x6EF83CFF, "{FFAF00}No cheats, dude!");
return 0;
}
Re: Need help with Anti-Cheat (car destroy) -
SkyWings - 28.09.2012
Thanks!