SA-MP Forums Archive
/givecash command with transfer limit - 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: /givecash command with transfer limit (/showthread.php?tid=416656)



/givecash command with transfer limit - maisto5 - 17.02.2013

Can / givecash command to give money to another player, there is a limit of 999 999 dollars


AW: /givecash command with transfer limit - Blackazur - 17.02.2013

Код:
COMMAND:givecash(playerid,params[])
{
	new id, betrag;
	if(sscanf(params,"dd",id,betrag)) return NoSuccess(playerid,"Usage: /pay <id> <amount>");
        if(betrag < 999999) return NoSuccess(playerid,"Amount cannot be under 999999!");
    
    GivePlayerMoney(playerid,-betrag);
    GivePlayerMoney(id,betrag);
    return 1;
}
Next Time post here: https://sampforum.blast.hk/showthread.php?tid=413556


Re: /givecash command with transfer limit - Stu1 - 17.02.2013

Do you use zcmd and sscanf?


Re: /givecash command with transfer limit - maisto5 - 17.02.2013

.....


Re: /givecash command with transfer limit - LarzI - 17.02.2013

Quote:
Originally Posted by maisto5
Посмотреть сообщение
.....
Stu asked you a question.

What's your code looking like at the moment? Have you even tried?