10.03.2011, 21:22
(
Последний раз редактировалось bestr32; 16.03.2011 в 10:45.
)
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:
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:
Also this is a example tutorial..
I am tired now because I am making something, I will make a bigger tomorrow :P Bye.
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;
}
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;
}
I am tired now because I am making something, I will make a bigger tomorrow :P Bye.