Help dialog
#6

Help me please,

pawn Код:
COMMAND:ircasa(playerid, params[]) //OK
{
    new HouseList[1000];
    SendAdminText(playerid, "/ircasa", params);
    if (APlayerData[playerid][LoggedIn] == true)
    {
        if (GetPlayerWantedLevel(playerid) < 3)
        {
            if (APlayerData[playerid][PlayerJailed] == 0)
            {
                if (GetPlayerVehicleID(playerid) == 0)
                {
                    for (new i; i < MAX_HOUSESPERPLAYER; i++)
                    {
                        if (APlayerData[playerid][Houses][i] != 0)
                            format(HouseList, sizeof(HouseList), "Nome\tLevel/Max\n%s\n%s\t%i/%i\n", HouseList, AHouseData[APlayerData[playerid][Houses][i]][HouseName], AHouseData[APlayerData[playerid][Houses][i]][HouseLevel], AHouseData[APlayerData[playerid][Houses][i]][HouseMaxLevel]);
                        else
                            format(HouseList, 1000, "%s{FFFFFF}%s{FFFFFF}\n", HouseList, "Slot vazio");
                    }
                    ShowPlayerDialog(playerid, DialogGoHome, DIALOG_STYLE_TABLIST_HEADERS, "Selecione a casa que vocк quer ir:", HouseList, "Selecionar", "Cancelar");
                }
                else
                    SendClientMessage(playerid, 0xFF0000FF, "Vocк precisa estar a pй, para ir atй a sua casa!");
            }
            else
                SendClientMessage(playerid, 0xFF0000FF, "Vocк nгo pode usar o comando /irparacasa quando estб preso!");
        }
        else
            SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Vocк nгo pode usar o comando /irparacasa quando estб procurado!");
    }
    else
        return 0;
    return 1;
}
Reply


Messages In This Thread
Help dialog - by Edw - 11.05.2015, 18:54
Re: Help dialog - by Konstantinos - 11.05.2015, 19:21
Re: Help dialog - by Edw - 11.05.2015, 19:43
Re: Help dialog - by Konstantinos - 11.05.2015, 19:50
Re: Help dialog - by Edw - 11.05.2015, 20:10
Re: Help dialog - by JoaoMonteiro452 - 14.06.2015, 13:14

Forum Jump:


Users browsing this thread: 1 Guest(s)