08.02.2011, 18:36
If you 'need' it, there's the script request thread (And not scripting discussion). Anyways, assuming you're using sscanf with zcmd:
Should work. I think. But everytime I post code, it usually doesn't work.
pawn Код:
COMMAND:resetmoney(playerid, params[])
{
//Change the IsPlayerAdmin to w/e your admin system uses
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0x0f0f0f0f, "Thou are no admin, therefore I shall direct thy the door. GTFO.");
new target;
if(sscanf(params, "u", target)) return SendClientMessage(playerid, 0x0f0f0f0f, "Enter a target, damnit.");
else if(!IsPlayerConnected(target)) return SendClientMessage(playerid, 0x0f0f0f0f, "Dat dude is not connected, you're doing it wrong.");
ResetPlayerMoney(target);
SendClientMessage(playerid, 0x0f0f0f0f, "Ya rly is r work good job Sir!");
return 1;
}