17.03.2010, 03:50
Ok...so i made only oneplayer skin spawnable for my RP and its a homeless person. Now how would i make the command to go to any of the clothing stores and change the clothes??(skins)
Originally Posted by _Jay_
You would have to write your own system for that. SA:MP doesn't have binco encoded like the sinlgleplayer version.
|
new minimenu; // at the verytop put this minimenu = CreatePickup(234, 23, -2348.942,261.415,2.65); //put this under ongamemodeinit and change the position to binco public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == minimenu) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Rich", "Not rich", "Select", "Cancel");!"); } return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { new string[128]; if(dialogid == 1 ) { if(!response) { ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "nRich", "nNot Rich", "Select", "Cancel"); TogglePlayerControllable(playerid, 0); } if(response) { if(listitem == 0) { SetPlayerSkin(playerid,23); // choose the skin id by changing the 23 ... } } if(listitem == 1) { SetPlayerSkin(playerid, 25); ///// for this one also } return 1; }
Originally Posted by MrIncredible
Code:
new minimenu; // at the verytop put this minimenu = CreatePickup(234, 23, -2348.942,261.415,2.65); //put this under ongamemodeinit and change the position to binco public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == minimenu) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Rich", "Not rich", "Select", "Cancel");!"); } return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { new string[128]; if(dialogid == 1 ) { if(!response) { ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "nRich", "nNot Rich", "Select", "Cancel"); TogglePlayerControllable(playerid, 0); } if(response) { if(listitem == 0) { SetPlayerSkin(playerid,23); // choose the skin id by changing the 23 ... } } if(listitem == 1) { SetPlayerSkin(playerid, 25); ///// for this one also } return 1; } |