View Single Post
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 01-31-2020 , 22:11   Re: Bad Camper 1.4.239
Reply With Quote #5

Quote:
Originally Posted by MrGarfield View Post
I use this plugin https://forums.alliedmods.net/showthread.php?p=156560, it works well, but I would like bots not to be taken into account.
while searching on the net I found

to put on line 734 but if I compile I have errors

thank you
Code:
/* punish_slap(id, Float:punishPercentage) {     for (new slapCnt = 1; slapCnt <= floatround(3.0 * punishPercentage, floatround_ceil); slapCnt++)         user_slap(id, 0); } */ punish_slap(id, Float:punishPercentage){ for (new slapCnt = 1; slapCnt <= floatround(3.0 * punishPercentage, floatround_ceil); slapCnt++)         if(!is_user_bot(id) && is_user_alive(id) && is_user_connected(id))         {         user_slap(id, 0);         } }
__________________

Last edited by DJEarthQuake; 01-31-2020 at 22:19.
DJEarthQuake is offline