11.07.2016, 09:08
When I'm in game, and go to Bincos and do /skin a menu pops up and it gives you all the skins so I select one at random. and it puts the skin I selected on but if I /q or /switchchar it disappears. Can anyone help.
Код:
YCMD:skin(playerid, params[], help) { if(help) { SendClientMessage(playerid, X11_WHITE, "Used for changing a players skin"); return 1; } //new skinid; if(!IsPlayerInRangeOfPoint(playerid, 15.0, 210.047988, -102.005409, 1005.257812)) { SendClientMessage(playerid, X11_TOMATO_2, "You aren't at Bincos!"); return 1; } ShowModelSelectionMenu(playerid, skinlist, "Select Skin"); return 1; /* if(!sscanf(params, "d", skinid)) { if(IsValidSkin(skinid) && IsSkinAllowed(playerid, skinid)) { setCharacterSkin(playerid, skinid); } } else { SendClientMessage(playerid, X11_WHITE, "USAGE: /skin [skinid]"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "Hint: {FFFFFF}A list of skin IDs can be found here: https://sampwiki.blast.hk/wiki/Category:Skins"); } return 1;*/ } public OnPlayerModelSelection(playerid, response, listid, modelid) { if(listid == skinlist) { if(response) { SendClientMessage(playerid, 0xFF0000FF, "Skin Changed"); SetPlayerSkin(playerid, modelid); } else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection"); return 1; } return 1; } /*IsValidSkin(skin) { if(skin < 0 || skin >= 300) return 0; return 1; }*/ /*IsSkinAllowed(playerid, skinid) { #pragma unused playerid if(!IsValidSkin(skinid)) { return 0; } for(new i=0;i<sizeof(BadSkins);i++) { if(BadSkins[i] == skinid) { return 0; } } return 1; }*/