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)