Raised This Month: $ Target: $400
 0% 

Bots - Anti block (for bots glitched in walls)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 09-09-2012 , 09:01   Bots - Anti block (for bots glitched in walls)
Reply With Quote #1

I have the problem that my podbots glitch inside a wall when the bot is beeing hit many times,
since nobody seems to know what it might cause i descided to write this fix but it's not working:

PHP Code:
//plugin init
 
set_task(2.0"Check_BotStuck",_,_,_,"b");
 
 
public 
Check_BotStuck()
{
 static 
iNumiPlayers[32], iPlayeri;
 
get_players(iPlayersiNum"ade""TERRORIST");  
 for( 
0iNumi++ )
 {
  new 
g_TempOrigin[3];
  
get_user_origin(iPlayerg_TempOrigin );
 
  if( 
g_TempOrigin[iPlayer] == g_AlienOrigin[iPlayer] )
  {
   
g_iSameOriginCount[iPlayer]++;
   if( 
g_iSameOriginCount[iPlayer] == )
   {
    
ExecuteHamB(Ham_CS_RoundRespawniPlayer);
    
g_iSameOriginCount[iPlayer] = 0;
   }
  }
  else {
   
g_AlienOrigin[iPlayer] = g_TempOrigin[iPlayer];
   
g_iSameOriginCount[iPlayer] = 0;
  }
 }

ingame nothing happens they just stay stuck inside the wall till next round begins
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]

Last edited by striker07; 09-09-2012 at 09:03.
striker07 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode