03.02.2013, 12:51
Basically what happens is when i type my command IG /htflocker the dio wont show up, help you be appriciated 
Command:
Dialog:
Dio of Job selections:

Command:
Код:
CMD:htflocker(playerid, params[]) { if(!IsPlayerInRangeOfPoint(playerid, 7.0, 1089.7205, -317.7738, 73.9922, 0)) { SendClientMessageEx(playerid, COLOR_GRAD2, " You are not at the Hilltop Gang Armory Room!"); return 1; } if(PlayerInfo[playerid][pLevel] >= 1) { ShowPlayerDialog(playerid, 841999, DIALOG_STYLE_LIST, "Hilltop Farmers Armory", "First Aid Kit\nKevlar Vest\nClothes Corner\nMech Job", "Select", "Cancel"); } return 1; }
Код:
if(dialogid == 841999) // Hilltop Locker { if(response) ShowPlayerDialog(playerid, 841999, DIALOG_STYLE_LIST, "Hilltop Farmers Armory", "First Aid Kit\nKevlar Vest\nClothes Corner\nMech Job", "Select", "Cancel"); { if(listitem == 0) { new Float:health; GetPlayerHealth(playerid, health); new hpint = floatround( health, floatround_round ); if( hpint >= 100 ) { SendClientMessageEx(playerid, COLOR_GREY, "You already have full health."); return 1; } SetPlayerHealth(playerid, 100); SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You have used a first aid kit, you now have 100.0 HP."); } if(listitem == 1) { new Float:armour; GetPlayerArmour(playerid, armour); if(armour >= 100) { SendClientMessageEx(playerid, COLOR_GREY, "You already have full armor."); return 1; } if(PlayerInfo[playerid][pLevel] >= 1) { if(GetPlayerCash(playerid) < 0) { SendClientMessageEx(playerid, COLOR_GREY,"You can't afford the $15000!"); return 1; } GivePlayerCash(playerid, -0); SetPlayerArmour(playerid, 100); SendClientMessageEx(playerid, COLOR_YELLOW, "Enjoy The Vest"); } } if(listitem == 2) { if(PlayerInfo[playerid][pLevel] >= 1) { ShowPlayerDialog( playerid, 3496, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Skin changes are free here.", "Wear", "Cancel" ); } else { SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You must be at least Silver VIP to access the clothes corner. In the clothes corner you can get ANY skin."); } } if(listitem == 3) { if(PlayerInfo[playerid][pLevel] >= 1) { ShowPlayerDialog(playerid, 841990, DIALOG_STYLE_LIST, "VIP: Job Center", "Mechanic", "Proceed", "Cancel"); } else { SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You must be at least Silver VIP to access the job center."); } } } }
Код:
if(dialogid == 841990) { if(!response) return 1; switch(listitem) { case 0: // Mechanic { SetPVarInt(playerid, "jobSelection", 1); ShowPlayerDialog(playerid, 7485, DIALOG_STYLE_LIST, "VIP: Job Center", "Yes", "Proceed", "Cancel"); } } } if(dialogid == 7485) { if(!response) return 1; switch(listitem) { case 0: { PlayerInfo[playerid][pJob] = GetPVarInt(playerid, "jobSelection"); SendClientMessageEx(playerid, COLOR_YELLOW, "You have changed your first job!"); } case 1: { PlayerInfo[playerid][pJob2] = GetPVarInt(playerid, "jobSelection"); SendClientMessageEx(playerid, COLOR_YELLOW, "You have changed your second job!"); } } }