Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sadboy
Member
Join Date: Jun 2009
Old 12-01-2010 , 22:42   Re: would you like to help me: add this function to this plugin
Reply With Quote #1

Thank you very much , this plugin will be this ,right ?
can this plugin be optimized for better performance ?

new const VERSION[] = "1.1"
#include <amxmodx>
#include <fun>
#include <cstrike>
#define DISABLE_CS 0
public plugin_init(){
register_plugin("Respawn Forever", VERSION, "Pimp Daddy (OoTOAoO)")
register_event("DeathMsg","on_Death","a")
register_clcmd("say","on_Chat")
}
public on_Chat(id)
{
new szSaid[32]
read_args(szSaid, 31)
if (equali(szSaid,"^"/respawn^"") || equali(szSaid,"^"respawn^""))
{
spawn_func(id)
}
}
public spawn_func(id)
{
new parm[1]
parm[0]=id
set_task(0.7,"player_spawn",72,parm,1)
set_task(0.9,"player_giveitems",72,parm,1)
cs_set_user_money(id, 10000, 1)
}
public on_Death()
{
new victim_id = read_data(2)
spawn_func( victim_id )
return PLUGIN_CONTINUE
}
public player_giveitems(parm[1])
{
new id = parm[0]
give_item(id, "item_suit")
return PLUGIN_CONTINUE
}
public player_spawn(parm[1])
{
spawn(parm[0])
}

Last edited by sadboy; 12-01-2010 at 23:59.
sadboy is offline
Reply



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:24.


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