Raised This Month: $ Target: $400
 0% 

Weapon saver for TS


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ChanT
Junior Member
Join Date: Mar 2006
Old 03-16-2006 , 09:17   Weapon saver for TS
Reply With Quote #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
ChanT is offline
 


Thread Tools
Display Modes

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 16:31.


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