Raised This Month: $ Target: $400
 0% 

respawn player before next round?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MadMaurice
Junior Member
Join Date: Apr 2007
Old 04-27-2007 , 08:35   respawn player before next round?
Reply With Quote #1

I'm working on my first Plugin for AMX.

Because my friends die too early in CS (newbies)
I thought of a plugin that let players respawn without much wait.

I tried the following Tutorial: http://forums.alliedmods.net/showthread.php?p=466787

but it didn't work because the compiler doesn't find "cs_user_respawn"

Here my code:

Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init() {
    register_plugin("Auto_Respawn", "0.2", "MadMaurice")
    register_event("DeathMsg","Death","a");
    register_cvar("respawn_power","0");
}

public Death() {
    if(get_cvar_num("respawn_power") == 1) {
        new victim = read_data(2);
        cs_user_respawn(victim);
    }
}
is there any other function or what do i need for this?
MadMaurice 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 06:43.


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