/givecash command with transfer limit
#1

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

Код:
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
Reply
#3

Do you use zcmd and sscanf?
Reply
#4

.....
Reply
#5

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)