Raised This Month: $ Target: $400
 0% 

Simple Respawn


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
m0skVi4a
Senior Member
Join Date: May 2011
Location: Rousse, Bulgaria
Old 11-07-2011 , 14:03   Re: Simple Respawn
Reply With Quote #2

Your code will work when player is not alive..
cstrike is not necessary..
PHP Code:
#include <amxmodx>
#include <hamsandwich>

#define PLUGIN "Respawn"
#define VERSION "1.0"
#define AUTHOR "joshknifer"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say/respawn","CmdRespawn")
}

public 
CmdRespawn(id)
{
        if (
is_user_connected(id) && !is_user_alive(id))
        {
            
ExecuteHamB(Ham_CS_RoundRespawn,id)
        }  

here is it without when user is alive
PHP Code:
#include <amxmodx>
#include <hamsandwich>

#define PLUGIN "Respawn"
#define VERSION "1.0"
#define AUTHOR "joshknifer"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say/respawn","CmdRespawn")
}

public 
CmdRespawn(id)
{
        if (
is_user_connected(id))
        {
            
ExecuteHamB(Ham_CS_RoundRespawn,id)
        }


Last edited by m0skVi4a; 11-07-2011 at 14:05.
m0skVi4a is offline
Send a message via Skype™ to m0skVi4a
 



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 14:17.


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