Are you talking about this?
Code:
register_clcmd("!money", "clcmd_money")
public clcmd_money(id){
new szTarget[32], pid // argument 1 storage
read_argv(1, szTarget, charsmax(szTarget)) // retrieving argument 1
pid = cmd_target(id, szTarget, 2) // searching for user containing argument 1 text
if (!pid) return 1; // no search result, cancel
new szAmount[6], amount // argument 2 storage
read_argv(2, szAmount, charsmax(szAmount)) // retrieving argument 2
if (!szAmount[0]) return 1; // no money argument, cancel
amount = str_to_num(szAmount) // converting the 2nd argument to a integer
new szName[32] // targeteds' user storage
get_user_name(pid, szName, charsmax(szName)) // retrieving user name
if (amount < 1) return 1; // money amount is lower than 1, cancel
cs_set_user_money(pid, cs_get_user_money(pid) + amount) // setting user money
if (cs_get_user_money(pid) < 0) cs_set_user_money(pid, 0) // user money is lower than 0, setting it to 0
}
__________________