help for money command
#4

If you 'need' it, there's the script request thread (And not scripting discussion). Anyways, assuming you're using sscanf with zcmd:
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;
}
Should work. I think. But everytime I post code, it usually doesn't work.
Reply


Messages In This Thread
help for money command - by Elviss - 08.02.2011, 17:27
Re: help for money command - by Elviss - 08.02.2011, 17:56
Re: help for money command - by Fj0rtizFredde - 08.02.2011, 17:58
Re: help for money command - by Hiddos - 08.02.2011, 18:36
Re: help for money command - by showarn - 08.02.2011, 19:44

Forum Jump:


Users browsing this thread: 1 Guest(s)