SA-MP Forums Archive
Need an skin system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need an skin system (/showthread.php?tid=615972)



Need an skin system - Stealer - 29.08.2016

hello i need an skin system like this one i have searched everywhere but couldn't find any skin system like this one
if anyone can make one for me or just provide me the link if this skin system exist anywhere cuz i couldn't find any
im a beginner and can't create one like dis one

like when i type a cmd /skin then this skin textdraw will appear

Picture: http://imgur.com/a/8rjdX


Re: Need an skin system - MaazS - 29.08.2016

then...make one?


Re: Need an skin system - Stealer - 29.08.2016

well i already mentioned im an beginner how can i create one? i don't know much about scripting thats why i requested for one if its already exist


Re: Need an skin system - Gasman - 29.08.2016

****** and search 'SAMP mSelection"


Re: Need an skin system - NealPeteros - 29.08.2016

Simple.

1.) Download skins.txt (Stores the skin ID's), and add it to your scriptfiles
2.) Download the mSelection include, and add it to your script.
3.) Put this somewhere above the script with the "new" variables
PHP Code:
new skinlist mS_INVALID_LISTID
4.) Add this to your OnGamemodeInit
PHP Code:
skinlist LoadModelSelectionMenu("skins.txt"); 
5.) Make a command in your OnPlayerCommandText (You can also change it to ZCMD if you want. Pretty simple)
PHP Code:
    if(strcmp(cmdtext"/changeskin"true) == 0)
    {
        
ShowModelSelectionMenu(playeridskinlist"Select Skin");
        return 
1;
    } 
5.) Add this somewhere/below your script
PHP Code:
public OnPlayerModelSelection(playeridresponselistidmodelid)
{
    if(
listid == skinlist)
    {
        if(
response)
        {
            
SendClientMessage(playerid0xFF0000FF"Skin Changed");
            
SetPlayerSkin(playeridmodelid);
        }
        else 
SendClientMessage(playerid0xFF0000FF"Canceled skin selection");
        return 
1;
    }
    return 
1;

Download Links:
mSelection: Download
skins.txt: Download

You really don't need to download skins.txt with the download link given. It's already there in the mSelection rar.


Hope I helped


Re: Need an skin system - Stealer - 30.08.2016

thank you bro it really worked & helped me i appreciated your help i +rep'ed u