10.11.2012, 01:37
pawn Код:
CMD:mycars(playerid)
{
SendClientMessage(playerid, COLOR_WHITE, "|___Your vehicles:___|");
new string[60];
for(new v = 0; v < MAX_PLAYERVEHICLES; v++)
{
if(PlayerVehicleInfo[playerid][v][pvModelId])
{
format(string, sizeof(string), "%d: {ADD8E6}%s{FFFFFF} | Lock: {ADD8E6}%s {FFFFFF}(%s{FFFFFF})");
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
format(string, sizeof(string),"Number of cars: %d | Vehicle Limit: %d",GetPVarInt(playerid, "MaxCars");
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}