Advertisement
Guest User

Untitled

a guest
Jan 24th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.89 KB | None | 0 0
  1. public OnPlayerPickUpPickup(playerid, pickupid)
  2. {
  3.     if(pickupid == kazino[0])ShowPlayerDialog(playerid, 666, DIALOG_STYLE_MSGBOX, "Вход в казино.", "Вход в казино будет Вам стоить 1 биткоин.\nВы действительно хотите войти?", "Да", "Нет");
  4.     return 1;
  5. }
  6.  
  7. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  8. {
  9.     switch(dialogid)
  10.     {
  11.         case 666:
  12.         {
  13.             if(!response) return 1;
  14.             if(pInfo[playerid][pCash] < 999) return 1;
  15.             pInfo[playerid][pCash] -= 999;
  16.             ResetPlayerMoney(playerid);
  17.             GivePlayerMoney(playerid, pInfo[playerid][pCash]);
  18.             SetPlayerPos(playerid, 1821.4178,2095.3235,16.1631, 1);
  19.             SetPlayerFacingAngle(playerid, 268.5165);
  20.             SetPlayerVirtualWorld(playerid, 0);
  21.             SetPlayerInterior(playerid, 0);
  22.             SetCameraBehindPlayer(playerid);
  23.             return 1;
  24.         }
  25.     }
  26.     return 1;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement