18.09.2013, 12:02
pawn Код:
// These at the top:
#define COLOR_RED 0xFF0000FF
#define COLOR_GREEN 0x00FF00FF
//And this at the cmd:
if(strcmp(option,"garage") == 0)
{
for(new i; i < MAX_HOUSES; i++)
{
new pname[24];
GetPlayerName(playerid,pname,sizeof(pname));
if(IsPlayerInRangeOfPoint(playerid,1.0,HouseInfo[i][hX],HouseInfo[i][hY],HouseInfo[i][hZ]))
{
for(new gc; gc < MAX_GARAGE_CAR; i++)
{
new count = 0;
SendClientMessage(playerid,COLOR_RED,"");//this
SendClientMessage(playerid,COLOR_GREEN,"________________|YOUR GARAGE|________________");//this
SendClientMessage(playerid,COLOR_RED,"");//this
if(HouseInfo[i][GarageCar][gc] > 0)
{
format(string, sizeof(string), "Name: %s (ID:%i)",GetVehicleName(HouseInfo[i][GarageCar][gc]),gc);
SendClientMessage(playerid,COLOR_CYAN,string);
count++;
}
if(count == 0)
SendClientMessage(playerid,COLOR_RED,"You don't have any cars in your house garage!");// this
SendClientMessage(playerid,COLOR_GREEN,"_________________________________________________");// this
}
}
}
}

