23.04.2013, 19:36
Quote:
CMD:nexth(playerid, params[])
{ if(PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pShopTech] == 1) { SendClientMessageEx(playerid, COLOR_RED, "* Listing next available house..."); for(new x;x<MAX_HOUSES;x++) { if(HouseInfo[x][hOwned] == 0) { new string[128]; format(string, sizeof(string), "%d is available to use.", x); SendClientMessageEx(playerid, COLOR_WHITE, string); break; } } } else { SendClientMessageEx(playerid, COLOR_GRAD2, "You are not authorized to use that command!"); return 1; } return 1; } |