Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(dialogid == DIALOG_DEPOSIT)
- {
- if(!response) return 1;
- if(response)
- {
- if(!strval(inputtext))
- {
- SendClientMessage(playerid, GREY, "You have entered an Invalid amount of money.");
- }
- else
- {
- if(PlayerStat[playerid][Money] <= strval(inputtext))
- {
- new str[128];
- format(str, sizeof(str), "You have successfully deposit %d in your locker.", strval(inputtext));
- SendClientMessage(playerid, GREY, str);
- PlayerStat[playerid][LockerMoney] += strval(inputtext);
- GiveMoney(playerid, -strval(inputtext));
- format(str, sizeof(str), "* %s opens their locker and puts %d in it.", GetICName(playerid), strval(inputtext));
- SendNearByMessage(playerid, ACTION_COLOR, str, 5);
- }
- else
- {
- SendClientMessage(playerid, GREY, "You don't have that much.");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment