Raised This Month: $ Target: $400
 0% 

Simple Respawn


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 11-07-2011 , 13:49   Simple Respawn
Reply With Quote #1

Hello all! I tried to make a simple respawn plugin with a say command using the Ham respawn method, and was told my code wasn't working. Will you all look at it?

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

#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_RoundRespawnid)
    
     }    

__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
 


Thread Tools
Display Modes

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