Uhh need some help with spawning player under Dialog
#3

I think you want this ?
pawn Код:
case DIALOG_CITIZEN:
{
    if (!response) return  ShowPlayerDialog(playerid,DIALOG_CITIZEN, DIALOG_STYLE_LIST,"Which countrys Citizen you are?", "USA \nCanada \nRussia \nChina \nEurope", "Select", "Close");
    if(response) PlayerInfo[playerid][pCitizen] = listitem;
    return 1;
}
If not then can you explain more.. Do you want to put the first code in a switch ?
like dat ?
pawn Код:
switch(PlayerInfo[playerid][pArrived])
{
    case 0: SetPlayerPos(playerid, 1773.8523, -1905.5093, 13.5501);
    case 1: SetPlayerPos(playerid, 1772.1746, -1962.3596, 14.1172);
    case 2: SetPlayerPos(playerid, 1685.6259, -2238.5376, 13.5469);
}
switch(PlayerInfo[playerid][pMale])
{
    case 0:
    {
        maleskins = random(sizeof(MALESKIN));
        SetPlayerSkin(playerid, maleskins);
        PlayerInfo[playerid][pChar] = maleskins;
    }
    case 1:
    {
        femaleskins = random(sizeof(FEMALESKIN));
        SetPlayerSkin(playerid, femaleskins);
        PlayerInfo[playerid][pChar] = femaleskins;
    }
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)