Raised This Month: $ Target: $400
 0% 

Respawn


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 12-06-2011 , 11:10   Re: Respawn
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>

#define VERSION "1.0"

new Float:tasktime[33] = 3.0

public plugin_init() {
    
register_plugin("Respawn"VERSION"NapoleoN#")
}

public 
client_putinserver(id) {
    
set_task(tasktime[id], "CheckRespawn"id)
}

public 
CheckRespawn(iPlayer) {
    if(
cs_get_user_team(iPlayer) != CS_TEAM_UNASSIGNED || cs_get_user_team(iPlayer) != CS_TEAM_SPECTATOR) {
        
ExecuteHamB(Ham_CS_RoundRespawniPlayer)
    } else {
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_HANDLED

Untested but it should work.
If any bugs, please tell me.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
 



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 20:58.


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