Raised This Month: $ Target: $400
 0% 

set_cvar_num on plugin hook


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
'-_-'<3zok<3'-_-'
Senior Member
Join Date: Feb 2010
Location: Norway
Old 03-13-2014 , 20:46   Re: set_cvar_num on plugin hook
Reply With Quote #3

Quote:
Originally Posted by wickedd View Post
Thank you so much, already got going with a bunch of new features, is there any way to enforce server settings on start? And would it be a bad idea to place it on a map change event?

Someone help me, I have no clue on how to setup arguments for these events, tried a bunch of different things but I really dont know what it wants from me,
PHP Code:
public plugin_init() {
    
register_plugin(PLUGINVERSION"zok_Halsen")
    
RegisterHam(Ham_Spawn"player""spawn"true//<-- works! Always has, always will.
    
RegisterHam(Ham_Player_Duck"action1"//They both call for the same
    
RegisterHam(Ham_IsSneaking"action1")   //script, these dont work.
    
RegisterHam(Ham_TakeDamage"action2"idinflictoridattackerFloat:damagedamagebits//neither does this, errors when trying to compile, shown below.

Error:
Code:
// C:\hlds\cstrike\addons\amxmodx\scripting\huanmod.sma(19) : error 088: number of arguments does not match definition
// C:\hlds\cstrike\addons\amxmodx\scripting\huanmod.sma(20) : error 088: number of arguments does not match definition
// C:\hlds\cstrike\addons\amxmodx\scripting\huanmod.sma(21) : error 017: undefined symbol "idinflictor"
// C:\hlds\cstrike\addons\amxmodx\scripting\huanmod.sma(21) : error 017: undefined symbol "idattacker"
// C:\hlds\cstrike\addons\amxmodx\scripting\huanmod.sma(21) : warning 221: labelname "Float" shadows tag name
// C:\hlds\cstrike\addons\amxmodx\scripting\huanmod.sma(21) : error 017: undefined symbol "damage"

Last edited by '-_-'<3zok<3'-_-'; 03-13-2014 at 22:08. Reason: gammar, added codesnippet.
'-_-'<3zok<3'-_-' is offline
Send a message via Skype™ to '-_-'<3zok<3'-_-'
 



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 05:54.


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