14.06.2015, 13:14
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;
}