Raised This Month: $ Target: $400
 0% 

Stomach Ache


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 10-03-2007 , 20:51   Re: Stomach Ache
Reply With Quote #7

Take a look at this line:
PHP Code:
register_concmd("amx_stomachache""setStomachAche"ADMIN_SLAY"<target>"
The second parameter: "setStomachAche" is the name of the function that will run when someone does amx_stomachache.

Now look at this:
PHP Code:
public setStomachAche() { 
    
// Check if the user has access 
    // Read in parameters 
    // Set a target based on parameters 
    // Set hitboxes 

This actually creates the fucntion called setStomachAche. The amx_stomachache will run the above procedure. You put whatever necessary code in there.
__________________
M249-M4A1 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 16:14.


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