How to make a 8 skins dialog :P More Coming Soon -
bestr32 - 10.03.2011
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.
Re: How to make a 8 skins dialog :P More Coming Soon -
BASITJALIL - 11.03.2011
Its simple but good for Noob scripters
Re: How to make a 8 skins dialog :P More Coming Soon -
Jantjuh - 11.03.2011
Not bad
Re: How to make a 8 skins dialog :P More Coming Soon -
Roomeo - 11.03.2011
Good work
Re: How to make a 8 skins dialog :P More Coming Soon - [03]Garsino - 11.03.2011
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 :/
Re: How to make a 8 skins dialog :P More Coming Soon -
Roomeo - 11.03.2011
Before making a Tut See ****** Topic
Re: How to make a 8 skins dialog :P More Coming Soon -
alpha500delta - 11.03.2011
Quote:
Originally Posted by Roomeo
Before making a Tut See ****** Topic
|
Lol you said "good work" and now it's bad?
Re: How to make a 8 skins dialog :P More Coming Soon -
Ironboy - 11.03.2011
good work
Re: How to make a 8 skins dialog :P More Coming Soon -
bestr32 - 11.03.2011
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
Re: How to make a 8 skins dialog :P More Coming Soon -
Macluawn - 11.03.2011
You are going to make it for all 277 skins? Thats kinda... dumb.