 |
|
AMX Mod X Moderator
|

03-26-2006
, 16:19
|
#6
|
Quote:
|
Originally Posted by NewUser
Not to be a pest. But would this code function properly?
Code:
public gaben(id) {
new arg1[33], arg2[33];
read_argv(1, arg1, 32);
read_argv(2, arg2, 32);
new player = cmd_target(id, arg1, 0);
if(!player) return PLUGIN_HANDLED;
new cash2 = str_to_num(arg2);
if(cash2) {
cash2 = clamp(cash2,0,Cash[id]);
Cash[player] += cash2;
Cash[id] -= cash2;
}
return PLUGIN_HANDLED;
}
I just want to make sure. Since it's not specifically for CS.
|
__________________
|
|
|
|