09.06.2012, 02:47
Quote:
pawn Код:
|
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case DIALOG_REGISTER:
{
if(response)// male response
{
// male code
}
// female code here
return 1;
}
}
return 1;
}
EDIT:
On topic, if you have two arrays. One containing the male skins and vice versa. You would use the random function to select a random skin.
pawn Код:
if(response)// male response
{
PlayerSkin[playerid] = maleArray[random(sizeof(maleArray))];
}