08.04.2015, 11:19
Okay, so I decided when my player has been refunded through the dialog, he would be able to select a skin.
in the dialog I have
"ShowModelSelectionMenu(playerid, skinlist, "Skin Selection");"
when I have selected the package, it spawns me.
then the mSelection shows, but none of the textdraw responds in anyway at all.
Here is the public function for mSelection.
Here is the dialogs that use the mSelection.
in the dialog I have
"ShowModelSelectionMenu(playerid, skinlist, "Skin Selection");"
when I have selected the package, it spawns me.
then the mSelection shows, but none of the textdraw responds in anyway at all.
Here is the public function for mSelection.
Код:
public OnPlayerModelSelection(playerid, response, listid, modelid) { if(listid == skinlist) { if(response) { new string[129]; format(string, sizeof(string), "{3685BA}SERVER: {FFFFFF}You have set your skin to ID %d!", modelid); SendClientMessage(playerid, -1, string); SetPlayerSkin(playerid, modelid); } else { SendClientMessage(playerid, -1, "{3685BA}SERVER: {FFFFFF}You must select a skin."); ShowModelSelectionMenu(playerid, skinlist, "Skin Selection"); return 1; } } return 1; }
Код:
if(dialogid == 159) { if(response) { new playerexp = PlayerInfo[playerid][pExp]; PlayerInfo[playerid][pExp] = playerexp + 4; new playerlvl = PlayerInfo[playerid][pLevel]; PlayerInfo[playerid][pLevel] = playerlvl + 1; PlayerInfo[playerid][pDriveLic] = 1; SetPlayerPos(playerid, 1715.1201,-1903.1711,13.5665); GivePlayerCash(playerid, 1000); SendClientMessage(playerid, COLOR_YELLOW2,"That's all, if you need help you can /helpme, have fun!"); SendClientMessage(playerid, COLOR_LIGHTBLUE,"As you have selected a Refund package with a Driver's License, you will now be spawning in Los Santos instaid of at the DMV."); ShowModelSelectionMenu(playerid, skinlist, "Skin Selection"); } else { new packthings[] = "Level Package\nItem Package"; ShowPlayerDialog(playerid,158,DIALOG_STYLE_LIST,"Please select a package that you want to start with",packthings,"Select","Leave Game"); } } if(dialogid == 160) { if(response) { PlayerInfo[playerid][pMarijuana] = 100; PlayerInfo[playerid][pCocaine] = 100; PlayerInfo[playerid][pMaterials] = 5000; SetPlayerPos(playerid, 1424.1869,-1696.1482,13.5469); SendClientMessage(playerid, COLOR_LIGHTBLUE,"A taxi has taken you to the DMV so you can get yourself a Drivers License"); GivePlayerCash(playerid, 4000); SendClientMessage(playerid, COLOR_YELLOW2,"That's all, if you need help you can /helpme, have fun!"); ShowModelSelectionMenu(playerid, skinlist, "Skin Selection"); } else { new packthings[] = "Level Package \n Item Package"; ShowPlayerDialog(playerid,158,DIALOG_STYLE_LIST,"Please select a package that you want to start with",packthings,"Select","Leave Game"); } }