Raised This Month: $ Target: $400
 0% 

[HELP]starting health with sql


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
dxteam
Senior Member
Join Date: Dec 2005
Old 12-28-2007 , 17:20   [HELP]starting health with sql
Reply With Quote #1

how to set starting health from database?
look for code:
PHP Code:
#include <amxmodx>
#include <fun>

#define PLUGIN "Start Health"
#define VERSION "0.1"
#define AUTHOR "Allenwr"

new health

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("ResetHUD","hud","b")
    
register_clcmd("fullupdate","update",ADMIN_ALL,"")
    
health register_cvar("sv_starthealth","100")
}

public 
update(id) {
    return 
PLUGIN_HANDLED
}

public 
hud(id) {
    
set_user_health(idget_pcvar_num(health))

dxteam is offline
Send a message via ICQ to dxteam
 


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


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