Raised This Month: $ Target: $400
 0% 

Pluging crashes server


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
burcyril10
Junior Member
Join Date: Feb 2005
Old 03-21-2005 , 02:55   Pluging crashes server
Reply With Quote #1

Code:
#include <amxmodx> //Should only need amxmodx and tsx #include <amxmisc> #include <fun> #include <tsx> public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_cvar("amx_superjump","0")     register_cvar("amx_kungfu","0")     register_event("ResetHUD","cmd_spawn","be") } public cmd_spawn(id) {     if(get_cvar_num("amx_superjump") == 1 && get_cvar_num("amx_kungfu") == 1) {         new ups = ts_createpwup(TSPWUP_SUPERJUMP)         ts_givepwup(id,ups)         ups = ts_createpwup(TSPWUP_KUNGFU)         ts_givepwup(id,ups)         client_print(id,print_chat,"[AMXX]Received free powerups")     } else if(get_cvar_num("amx_superjump") == 1) {         new ups = ts_createpwup(TSPWUP_SUPERJUMP)         ts_givepwup(id,ups)         client_print(id,print_chat,"[AMXX]Received free powerup")     } else {         new ups = ts_createpwup(TSPWUP_KUNGFU)         ts_givepwup(id,ups)         client_print(id,print_chat,"[AMXX]Received free powerup")     } }

please help! I'm probably using the wrong event and if so thats the problem, I need to know when they spawn!

[edit] I should probably add that it crashes WHILE i join, the bar gets about 3/4 of the way and stops, then the ded server crashes. AMXX 1.01, TSX 1.01, TS 2.1, WIN XP HOME DED SERVER [/edit]
burcyril10 is offline
 



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 14:04.


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