Guest User

Untitled

a guest
Jan 17th, 2013
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.04 KB | None | 0 0
  1. if(dialogid == DIALOG_DEPOSIT)
  2.     {
  3.         if(!response) return 1;
  4.         if(response)
  5.         {
  6.             if(!strval(inputtext))
  7.             {
  8.                 SendClientMessage(playerid, GREY, "You have entered an Invalid amount of money.");
  9.             }
  10.             else
  11.             {
  12.                 if(PlayerStat[playerid][Money] <= strval(inputtext))
  13.                 {
  14.                        new str[128];
  15.                        format(str, sizeof(str), "You have successfully deposit %d in your locker.", strval(inputtext));
  16.                        SendClientMessage(playerid, GREY, str);
  17.                        PlayerStat[playerid][LockerMoney] += strval(inputtext);
  18.                        GiveMoney(playerid, -strval(inputtext));
  19.                        format(str, sizeof(str), "* %s opens their locker and puts %d in it.", GetICName(playerid), strval(inputtext));
  20.                        SendNearByMessage(playerid, ACTION_COLOR, str, 5);
  21.                 }
  22.                 else
  23.                 {
  24.                     SendClientMessage(playerid, GREY, "You don't have that much.");
  25.                 }
  26.             }
  27.         }
  28.     }
Advertisement
Add Comment
Please, Sign In to add comment