01.04.2009, 14:49
I creating my first gamemode .. it has 1200 lines of code now,easy to make.
I now creating AntiCheat in my gamemode.
I created weapon anticheat with..
define BanPlayer(playerid); like
SendClientMessage(playerid,0xblabla,"You banned from this server!");
Ban(playerid);
and it works....
but now i wanna create vehicle anticheat (hydra,hunter and rhino).. i try
( i put that in onplayerupdate) but it not works... how to fix that?
I now creating AntiCheat in my gamemode.
I created weapon anticheat with..
define BanPlayer(playerid); like
SendClientMessage(playerid,0xblabla,"You banned from this server!");
Ban(playerid);
Код:
new weapon=GetPlayerWeapon(playerid); if(weapon == weaponid){BanPlayer(playerid);}
but now i wanna create vehicle anticheat (hydra,hunter and rhino).. i try
Код:
new vehicle=GetPlayerVehicleID(playerid); if(vehicle==vehicleid){BanPlayer(playerid);}