Need help with Anti-Cheat (car destroy)
#1

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;
}
Reply
#2

GetVehicleModel

Not GetVehicleId

pawn Код:
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
if(GetVehicleModel(currentveh); == 432)
{
DestroyVehicle(currentveh);
SendClientMessage(playerid, 0x6EF83CFF, "{FFAF00}No cheats, dude!");
return 0;
}
Reply
#3

Thanks!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)