26.06.2009, 12:17
Hi, I have try to make antiweapon, but it's does not work can someone gime what to put in my gamemode
with times 1sec auto kick?
Thanks
with times 1sec auto kick?
Thanks
forward CheckWeapon(); // Add this line after #include public CheckWeapon(){ //// And this at the bottom of the page new i; for(i=0;i<=MAX_PLAYERS;i++){ new weaponid; weaponid = GetPlayerWeapon(i); if(weaponid!=0) Kick(i); } return 1; } //And Add this line in OnGameModeInit() SetTimer("CheckWeapon",1,1); Thank You -Abhinav
Originally Posted by RemulisLTU
it's freeroam you must hae weapons
|
if(weaponid!=0) Kick(i);
if(weaponid == GunID){ Kick(i);} // change GunID to the weapon id you wish to kick the player on.