SA-MP Forums Archive
help for money command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help for money command (/showthread.php?tid=223014)



help for money command - Elviss - 08.02.2011

Hallo!
Give me zcmd money command
What give all money to 0
help please :P


Re: help for money command - Elviss - 08.02.2011

omg no help?


Re: help for money command - Fj0rtizFredde - 08.02.2011

Dont bump your topic after just 30mins.. There is a rule that says that you are only allowed to bump every 12 hours!

Anyways.. You need a command that set's the players money to 0?


Re: help for money command - Hiddos - 08.02.2011

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.


Re: help for money command - showarn - 08.02.2011

srsly why do you even help him look he's style to write?


Quote:

Hallo!
Give me zcmd money command
What give all money to 0
help please :P

when a guy says like this i would never even think about helping him
GIVE ME ZCMD MONEY COMMAND