19.02.2012, 12:14
How can i make a cmd like /mycars that shows the player the cars he bought instead of seeing it in the /stats
PS : GF larp edit
Код:
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); } } }