SA-MP Forums Archive
Command Request - 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)
+--- Thread: Command Request (/showthread.php?tid=457572)



Command Request - NekoChan - 12.08.2013

Can anyone make me a command to take player's money but its need a request from the person he/she want to take from.. I'm using ZCMD "/takemoney"


Re: Command Request - dEcooR - 12.08.2013

Код:
CMD:takemoney(playerid,params[])
{ 
      new id,money;
      if(sscanf(params, "dd", id,money)) return SendClientMessage(playerid,-1,"CMD: /takemoney [id] [money]"); 
      else
      {
            GivePlayerMoney(id,-money);
      }
      return 1;
}