Problem with Houses.
#2

pawn Код:
CMD:hnext(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pShopTech] == 1)
    {
        SendClientMessageEx(playerid, COLOR_RED, "* Listing next available house...");
        for(new i = 0; i < MAX_HOUSES; i++)
        {
            if(HouseInfo[i][hOwned] == 0 && HouseInfo[i][hExteriorX] == 0.000000)
            {
                new string[128];
                format(string, sizeof(string), "%d is available to use.", i);
                SendClientMessageEx(playerid, COLOR_WHITE, string);
                break;
            }
        }
    }
    else
    {
        SendClientMessageEx(playerid, COLOR_GRAD2, "You are not authorized to use that command!");
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
Problem with Houses. - by Drago987 - 24.02.2014, 17:14
Re: Problem with Houses. - by DexterC - 24.02.2014, 17:49
Re: Problem with Houses. - by Lidor124 - 24.02.2014, 18:23

Forum Jump:


Users browsing this thread: 1 Guest(s)