12.03.2015, 17:33
How I can make cmd /userimkit like that? http://prntscr.com/6fw9jb ShowModelSelectionMenu Wheels
CMD CODES:
CMD CODES:
Code:
CMD:userimkit(playerid, params[]) { if(PlayerInfo[playerid][pRimMod] == 0) return SendClientMessageEx(playerid, COLOR_GREY, "You don't have any rim modification kits."); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessageEx(playerid, COLOR_GREY, "You aren't in a vehicle."); if(InvalidModCheck(GetVehicleModel(GetPlayerVehicleID(playerid)), 1025)) { for(new d = 0 ; d < MAX_PLAYERVEHICLES; d++) { if(IsPlayerInVehicle(playerid, PlayerVehicleInfo[playerid][d][pvId])) { ShowPlayerDialog(playerid, DIALOG_RIMMOD, DIALOG_STYLE_LIST, "Rim Modification Kit", "Offroad\nShadow\nMega\nRimshine\nWires\nClassic\nTwist\nCutter\nSwitch\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess", "Select", "Exit"); return 1; } } SendClientMessageEx(playerid, COLOR_GREY, "You need to be inside a vehicle that you own."); return 1; } else { SendClientMessageEx(playerid, COLOR_GREY, "This vehicle can't be modded."); } return 1; }