19.04.2011, 00:28
Hi al. I am trying to make a /pay command... with dcmd.. but i cant figure out how to make it with 2 params... the player id (int) and the case (int). Can someone please give me an example of this? THANKZ!
params[0] // Parameters 0 (playerid)
params[1] // Parameters 1 (ammount)
new destination, ammount;
if (sscanf(params, "ui", destination, ammount)) return SendClientMessage(playerid, -1, "Usage: /sendmoney <destination> <ammount>");
GivePlayerMoney(destination, ammount);
GivePlayerMoney(playerid, -ammount);