07.06.2015, 11:07
Why when i press Cancel it still teleports the person , why? and how i fix it?
Ive already tryed to put OnDialogRespone , But mybe i did something wrong?
Ive already tryed to put OnDialogRespone , But mybe i did something wrong?
pawn Код:
//Teles CMD
CMD:teles(playerid, params[])
{
if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, COLOR_RED, "ERROR: you need to be the driver of the vehicle or be onfoot to use this command");
{
ShowPlayerDialog(playerid, DIALOG_DRIFTTELES, DIALOG_STYLE_LIST, "Drift Teleports", "/drift 1\n/drift 2\n/drift 3\n/drift 4\n/drift 5\n/drift 6\n/drift 7\n/drift 8\n/drift 9\n/drift 10\ndrift 11\n/arch\n/loco\n/lstune\n/sftune\n/lvtune\n/lounge\n/grove", "Ok", "Cancel");
}
else if(PlayerInfo[playerid][World] == StuntWorldID)
{
ShowPlayerDialog(playerid, DIALOG_STUNTTELES, DIALOG_STYLE_LIST, "Stunt Teleports", "/bp\n/boatpark\n/bs\n/bayside\n/xmas(only during xmas)\n/woods\n/superrace\n/loop\n/mc\n/derby\n/sfa\n/lsa\n/lva\n/aa\n/lounge\n/grove\n/skyfall\n/halfpipe", "Ok", "Cancel");
}
else if(PlayerInfo[playerid][World] == SkillWorldID)
else if(PlayerInfo[playerid][World] == DMWorldID)
{
ShowPlayerDialog(playerid, DIALOG_DMTELES, DIALOG_STYLE_LIST, "Death Match Teleports", "/dm\n/dms\n/nrgdm\n/boxing2\n/dildodm\n/mgdm\n/warehousedm\n/boxing\n/hilldm\n/roofdm\n/glass\n/desertdm\n/islanddm", "Ok", "Cancel");
}
return 1;
}