Raised This Month: $ Target: $400
 0% 

Store custom command and value for each client which is callable and changeable


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Silencer123
Veteran Member
Join Date: Jul 2006
Old 07-14-2006 , 16:44   Re: Store custom command and value for each client which is callable and changeable
Reply With Quote #6

ah yes you are right. thanks so far! I still need to know one more thing:
how do i register a command to set money for each player?
I have:
Code:
 
 register_concmd("amx_sc_buyammo_money","set_money",ADMIN_LEVEL_A,"<Playername> <Value bigger than -1> - Set Players Money.")
but now I need to know what to change here, so amxmodx
knows that the command needs a target/name and a value to work properly.
Code:
public set_money(id, value)
{
 return PLUGIN_HANDLED
}
EDIT: how to trigger internal defined function each time a player joins?
I need this to set the money value to 0 for each player connecting
Or can I even save money by steamid in a cfg or so without php and mysql stuff? O_o
Can i write that into plugin_init? Sorry, but I just started ^^"

EDIT2: I used indenter and it did not place Tabstops correctly after some lines.
(I manually corrected - indentation warning finally fixed)

Last edited by Silencer123; 07-14-2006 at 17:10.
Silencer123 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 08:03.


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