How to add color like this please click me to see!
#1

How to add color the Vehicle and Status like this sir





Код:
CMD:vstorage(playerid, params[])
{
   	if(AdminDuty[playerid] == 1)
 	{
  		SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
		return 1;
	}
	new vstring[1024];
	for(new i, iModelID; i < MAX_PLAYERVEHICLES; i++) {
		if((iModelID = PlayerVehicleInfo[playerid][i][pvModelId] - 400) >= 0) {
			if(PlayerVehicleInfo[playerid][i][pvImpounded]) {
				format(vstring, sizeof(vstring), "%s\nVehicle: %s | Status: [Impounded]", vstring, VehicleName[iModelID]);
			}
			else if(PlayerVehicleInfo[playerid][i][pvDisabled]) {
				format(vstring, sizeof(vstring), "%s\nVehicle: %s | Status: [disabled]", vstring, VehicleName[iModelID]);
			}
			else if(!PlayerVehicleInfo[playerid][i][pvSpawned]) {
				format(vstring, sizeof(vstring), "%s\nVehicle: %s | Status: [stored]", vstring, VehicleName[iModelID]);
			}
			else format(vstring, sizeof(vstring), "%s\nVehicle: %s | Status: [spawned]", vstring, VehicleName[iModelID]);
		}
		else strcat(vstring, "\nEmpty");
	}
	ShowPlayerDialogEx(playerid, VEHICLESTORAGE, DIALOG_STYLE_LIST, "Vehicle storage", vstring, "(De)spawn", "Cancel");
	return 1;
}
Reply


Messages In This Thread
How to add color like this please click me to see! - by Lloyde - 03.04.2014, 12:31
Re : How to add color like this please click me to see! - by Clad - 03.04.2014, 12:38
Re: How to add color like this please click me to see! - by Lloyde - 03.04.2014, 12:40
Re: How to add color like this please click me to see! - by iThePunisher - 03.04.2014, 12:40
Re: How to add color like this please click me to see! - by Bingo - 03.04.2014, 12:53

Forum Jump:


Users browsing this thread: 2 Guest(s)