[Tutorial] How to make a 8 skins dialog :P More Coming Soon
#1

1) Find the callback OnPlayerCommandText (for /skins, if u wan't change the 10 to 1000 or 1271 how much u want)
2) Type In:
pawn Код:
if (strcmp("/skins", cmdtext, true) == 0)
    {
        ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "Skin List", "CJ\nTruth\nMaccer\nTaxi Driver1\nBfori\nBFost\nLas Venturas Casino 1\nWhite Drug Dealer", "OK", "Exit");
        return 1;
    }
Note: If u are on the last know add return 0;


3)Till made that scroll down at the callback OnDialogResponse
4)Type in the example down:
pawn Код:
if(dialogid == 10 && response)
{
    switch(listitem)
    {
        case 0: SetPlayerSkin(playerid, 0);
        case 1: SetPlayerSkin(playerid, 1);
        case 2: SetPlayerSkin(playerid, 2);
        case 3: SetPlayerSkin(playerid, 7);
        case 4: SetPlayerSkin(playerid, 9);
        case 5: SetPlayerSkin(playerid, 10);
        case 6: SetPlayerSkin(playerid, 11);
        case 7: SetPlayerSkin(playerid, 29);
    }
    return 1;
}
Also this is a example tutorial..
I am tired now because I am making something, I will make a bigger tomorrow :P Bye.
Reply
#2

Its simple but good for Noob scripters
Reply
#3

Not bad
Reply
#4

Good work
Reply
#5

pawn Код:
if(dialogid == 10 && response)
{
    switch(listitem)
    {
        case 0: SetPlayerSkin(playerid, 0);
        case 1: SetPlayerSkin(playerid, 1);
        case 2: SetPlayerSkin(playerid, 2);
        case 3: SetPlayerSkin(playerid, 7);
        case 4: SetPlayerSkin(playerid, 9);
        case 5: SetPlayerSkin(playerid, 10);
        case 6: SetPlayerSkin(playerid, 11);
        case 7: SetPlayerSkin(playerid, 29);
    }
    return 1;
}
Also, it's not a tutorial at all. It's more like a copy-paste script :/
Reply
#6

Before making a Tut See ****** Topic
Reply
#7

Quote:
Originally Posted by Roomeo
Посмотреть сообщение
Before making a Tut See ****** Topic
Lol you said "good work" and now it's bad?
Reply
#8

good work
Reply
#9

Quote:
Originally Posted by [03
Garsino]if(dialogid == 10 && response)
{
switch(listitem)
{
case 0: SetPlayerSkin(playerid, 0);
case 1: SetPlayerSkin(playerid, 1);
case 2: SetPlayerSkin(playerid, 2);
case 3: SetPlayerSkin(playerid, 7);
case 4: SetPlayerSkin(playerid, 9);
case 5: SetPlayerSkin(playerid, 10);
case 6: SetPlayerSkin(playerid, 11);
case 7: SetPlayerSkin(playerid, 29);
}
return 1;
}
OK. Garsino tnx that is better, I will fix it later I don't have time :P
Reply
#10

You are going to make it for all 277 skins? Thats kinda... dumb.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)