11.06.2013, 12:49
WHY That problem doesnt work !?
Dialog :
Код:
CMD:boston(playerid, params[]) { if(PlayerInfo[playerid][pFMember] == 1) { if(IsPlayerInRangeOfPoint(playerid, 0, 1025.156494, -315.600585, 73.988876)) { ShowPlayerDialog(playerid, 2815, DIALOG_STYLE_LIST, "El Bostons Lockers", "Duty\nClothes", "Select", "Cancel"); } else { SendClientMessageEx(playerid, COLOR_WHITE, "You aren't in range of your El Bostons lockers."); } } return 1; }
Код:
if(dialogid == DIALOG_BOSTONS) { switch(listitem) { case 0://Duty { GivePlayerValidWeapon(playerid, 24, 60000); GivePlayerValidWeapon(playerid, 29, 60000); GivePlayerValidWeapon(playerid, 31, 60000); GivePlayerValidWeapon(playerid, 30, 60000); GivePlayerValidWeapon(playerid, 25, 60000); GivePlayerValidWeapon(playerid, 33, 60000); SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); } case 1://Clothes { ShowPlayerDialog( playerid, 3495, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Skin Changes cost $2500.", "Buy", "Cancel" ); } } }