Raised This Month: $ Target: $400
 0% 

Re: Fix this plugin...Please <3


Post New Thread Reply   
 
Thread Tools Display Modes
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
f1del1ty.oXi
Veteran Member
Join Date: Nov 2004
Old 05-29-2005 , 20:03  
Reply With Quote #2

Why didn't you just post this in the plugin topic and ask for help there? Your just wasting space and time. =\
__________________
f1del1ty.oXi is offline
3xr
Junior Member
Join Date: Mar 2005
Old 05-30-2005 , 01:35  
Reply With Quote #3

And your doing the same, by posting, and not helping.
3xr is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-30-2005 , 01:46  
Reply With Quote #4

What's not working?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
3xr
Junior Member
Join Date: Mar 2005
Old 05-30-2005 , 07:39  
Reply With Quote #5

I get an error...when I compile set_user_money.
3xr is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-30-2005 , 12:43  
Reply With Quote #6

First of all, you need the Cstrike module.. Then try this:
Code:
#include <amxmodx> #include <cstrike> 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         cs_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     cs_set_user_money(id,16000,1)     return PLUGIN_CONTINUE }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Reply



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