|
Author
|
Message
|
|
Junior Member
|

03-16-2006
, 09:17
Weapon saver for TS
|
#1
|
#include <amxmodx>
#include <amxmisc>
#include <tsx>
new curwp[33]
public plugin_init(){
register_plugin("Weaponsaver","0.1","ChanT")
register_srvcmd("save_wep","client_disconnect ")
}
public client_disconnect(id){
new clip,ammo
curwp[id] = get_user_weapon(id,clip,ammo)
return PLUGIN_HANDLED
}
public client_connect(id){
ts_giveweapon(id,curwp[id],0,0)
return PLUGIN_CONTINUE
}
Hey all trying to make a plugin that saves the actual weapons when u disconnect and then when u get back ingame u will get them back but i dunno really how to do this... can anyone help me out?
ChanT
|
|
|
|