View Single Post
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