Raised This Month: $ Target: $400
 0% 

respawn for bots


  
 
 
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 07-13-2012 , 14:04   respawn for bots
Reply With Quote #1

I made this, it works perfect on real players but bots don't respawn,
why? how can i add bots to respawn to?

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#define PLUGIN "T-AutoSpawn"
#define VERSION "1.0"
#define AUTHOR "Sky-High"
new Pcvar_RespawnTime;
public 
plugin_init() {
 
register_plugin(PLUGINVERSIONAUTHOR)
 
 
RegisterHam(Ham_Killed"player""Fwd_PlayerKilled");
 
 
Pcvar_RespawnTime register_cvar"osg_respawn_time""5.0" );
}
 
public 
Fwd_PlayerKilled(victimattackershouldgib)
{
 new 
FloatTime;
 static 
CsTeams:team;
 
team cs_get_user_team(victim);
 
Time get_pcvar_floatPcvar_RespawnTime );
 
 if (
team == CS_TEAM_T)
 {
  
set_taskTime"Task_Respawn"victim);
 }
}
 
public 
Task_Respawn(id)
{
 
ExecuteHamB(Ham_CS_RoundRespawnid);

__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]
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 15:19.


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