Raised This Month: $ Target: $400
 0% 

would you like to help me: add this function to this plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 12-02-2010 , 09:56   Re: would you like to help me: add this function to this plugin
Reply With Quote #4

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

#define VERSION "1.0"

new cvar_respawncvar_money;

public 
plugin_init()
{
    
register_plugin("Respawn Forever"VERSION"Drekes");
    
    
RegisterHam(Ham_Killed"player""FwdHamPlayerKilledPost"1);
    
    
cvar_respawn register_cvar("amx_respawn_delay""1.5");
    
cvar_money register_cvar("amx_respawn_money""10000");
}

public 
FwdHamPlayerKillerPost(victimkiller)
{
    if(
is_user_connected(victim))
        
set_task(get_pcvar_float(cvar_respawn), "TaskRespawn"victim);
}

public 
TaskRespawn(id)
{
    if(
is_user_connected(id))
    {
        
cs_set_user_money(idget_pcvar_num(cvar_money));
        
ExecuteHamB(Ham_CS_RoundRespawnid);
    }

__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
 



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 11:25.


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