Raised This Month: $ Target: $400
 0% 

HAM spawn after death?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 01-18-2013 , 05:02   HAM spawn after death?
Reply With Quote #1

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

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

public plugin_init ()
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    
RegisterHam Ham_Killed"player""fwd_Ham_Killed_post" )
    
//RegisterHam ( Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1 )
}


public 
fwd_Ham_Killed_postid )
{
    
set_task2.0"spawn" );
}

public 
spawn id 
{
    if (!
is_user_alive id ) && ( CS_TEAM_T <= cs_get_user_teamid ) <= CS_TEAM_CT ) )
    {
    
ExecuteHamB Ham_CS_RoundRespawn id )
    }

Hello all
code modified.

L 01/18/2013 - 15:55:49: [CSTRIKE] Player out of range (0)
L 01/18/2013 - 15:55:49: [AMXX] Displaying debug trace (plugin "wmp.amxx")
L 01/18/2013 - 15:55:49: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 01/18/2013 - 15:55:49: [AMXX] [0] wmp.sma::spawn (line 54)


What's wrong ?
__________________
sorry my bad english...

Last edited by alonelive; 01-18-2013 at 07:00.
alonelive 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 13:45.


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