Raised This Month: $ Target: $400
 0% 

Re: Fix this plugin...Please <3


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
3xr
Junior Member
Join Date: Mar 2005
Old 05-29-2005 , 18:14   Re: Fix this plugin...Please <3
Reply With Quote #1

Code:
#include <amxmodx> 
#include <amxmisc> 

new infmoney = 1

public plugin_init() { 
   register_plugin("Infinite Money","1.0","") 
   register_event("Money","money","b")
   register_concmd("amx_money","cmdmoney",1,"1 = on 0 = off") 
} 

public cmdmoney(id){ 
   new arg[2] 
   read_argv(1,arg,1)
   set_hudmessage(255, 000, 128, -1.0, 0.25, 0, 1.0, 5.0, 0.1, 0.2, 2) 
   if(equal(arg,"1")){
   infmoney = 1 
   set_user_money(id,16000,1)
   show_hudmessage(0,"Admin has turned on infinite money.") 
   }else if (equal(arg,"0")){ 
   infmoney = 0
   show_hudmessage(0,"Admin has turned off infinite money.") 
   } 

   return PLUGIN_CONTINUE 
} 

public money(id){
if(infmoney==0)
return PLUGIN_HANDLED
set_user_money(id,16000,1)
return PLUGIN_CONTINUE
}
I don't know shit about programing for SMA or anything.
I found this on the forum, but it won't compile, I don't know how amx x works and how it sets money, so the set_user_money is fucked, be nice if someone would fix.
3xr is offline
 


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 16:49.


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