Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == kazino[0])ShowPlayerDialog(playerid, 666, DIALOG_STYLE_MSGBOX, "Вход в казино.", "Вход в казино будет Вам стоить 1 биткоин.\nВы действительно хотите войти?", "Да", "Нет");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- switch(dialogid)
- {
- case 666:
- {
- if(!response) return 1;
- if(pInfo[playerid][pCash] < 999) return 1;
- pInfo[playerid][pCash] -= 999;
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pInfo[playerid][pCash]);
- SetPlayerPos(playerid, 1821.4178,2095.3235,16.1631, 1);
- SetPlayerFacingAngle(playerid, 268.5165);
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerInterior(playerid, 0);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement