/mycars help
#1

How can i make a cmd like /mycars that shows the player the cars he bought instead of seeing it in the /stats

Код:
		if (PlayerInfo[targetid][pPcarkey] != 9999)
		{
		    new vehiclename[24];
			GetVehicleName(carkey, vehiclename, sizeof(vehiclename));
		    format(coordsstring, sizeof(coordsstring), "| CarID: %d | Model: %s (%d) | VehValue: %d | VehColor1: %d | VehColor2: %d | VehLocked: %d | Code: %d |",carkey,vehiclename, CarInfo[carkey][cModel], GetVehiclePrice(carkey), CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], CarInfo[carkey][cLock], CarInfo[carkey][cCode]);
		    SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);
		}
		if (PlayerInfo[targetid][pPcarkey2] != 9999)
		{
		    new vehiclename[24];
			GetVehicleName(carkey2, vehiclename, sizeof(vehiclename));
		    format(coordsstring, sizeof(coordsstring), "| CarID: %d | Model: %s (%d) | VehValue: %d | VehColor1: %d | VehColor2: %d | VehLocked: %d | Code: %d |",carkey2,vehiclename, CarInfo[carkey2][cModel], GetVehiclePrice(carkey2), CarInfo[carkey2][cColorOne], CarInfo[carkey2][cColorTwo], CarInfo[carkey2][cLock], CarInfo[carkey2][cCode]);
		    SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);
		}
	}
}
PS : GF larp edit
Reply


Messages In This Thread
/mycars help - by viddo - 19.02.2012, 12:14
Re: /mycars help - by aRoach - 19.02.2012, 12:22
Re: /mycars help - by viddo - 19.02.2012, 12:49
Re: /mycars help - by aRoach - 19.02.2012, 12:53
Re: /mycars help - by viddo - 19.02.2012, 13:25
Re: /mycars help - by aRoach - 19.02.2012, 13:30
Re: /mycars help - by viddo - 19.02.2012, 13:41
Re: /mycars help - by aRoach - 19.02.2012, 13:46
Re: /mycars help - by viddo - 19.02.2012, 13:53
Re: /mycars help - by aRoach - 19.02.2012, 14:04

Forum Jump:


Users browsing this thread: 6 Guest(s)