Raised This Month: $ Target: $400
 0% 

Compile Errors - Code Cleanup


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Drak
Veteran Member
Join Date: Jul 2005
Old 03-08-2007 , 20:44   Re: Compile Errors - Code Cleanup
Reply With Quote #2

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <svencoop> #define PLUGIN "SvenCoop - Minigun Powers" #define VERSION "1.0" #define AUTHOR "FormulaZero" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_event("CurWeapon", "weaponminigun", "be") } public weaponminigun(id) {     new clip,ammo     new weapon = get_user_weapon(id,clip,ammo)     if(weapon == 21) {         set_user_maxspeed(id, 300.1)         set_user_gravity(id, 1.5)         client_print(id, print_center, "You can now jump while using the minigun.")     }         return PLUGIN_HANDLED } public client_putinserver(id) {     set_task(3.0, "welcome", id) } public welcome(id) {     new name[32]     get_user_name(id, name, 31)     client_print(id, print_chat, "[INFORMATION] You can jump when you have a minigun in this server")     return PLUGIN_HANDLED     }
"SCW_MINIGUN" is defined in the svencoop module, so obviously the include needs to be there. But i think it's weaponid is 21, so I changed it.
Drak is offline
Send a message via MSN to Drak
 


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 08:36.


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