Posts: 265
Threads: 59
Joined: Sep 2013
Quote:
Originally Posted by EiresJason
Does this work?
pawn Код:
{ CMD:weaponshop(playerid, params[]) { //Use this one. ShowPlayerDialog(playerid, DIALOG_WEAPONSHOP , DIALOG_STYLE_MSGBOX, "{FF5C5C}Weapon shop", "{FFFFFF}Are you sure that you wish to leave your current position and visit the weapon shop?\n{FF0000}[NOTE]{FFFFFF} - You will return to your past position when you'll exit", "Leave", "Close"); return 1; }
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_WEAPONSHOP ) { if(!response) return SendClientMessage(playerid, COLOR_WHITE, "You've decided not to leave to the weapon shop! Have fun."); if(response) { SetPlayerPos(playerid, 2390.3250,1158.0721,744.2016); } }
return 0; }
|
That did work! Thanks.