03.08.2014, 18:39
Try this, it's not tested:
Код:
CMD:createveh(playerid, params[]) { new vid, col1, col2; if(sscanf(params, "iii", vid, col1, col2)) return SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /createveh [Vehicle ID] [Color 1 ID] [Color 2 ID]"); if(400 < (vid) > 611) return SendClientMessage(playerid, 0xFFFFFFFF, "INVALID VEHICLE ID!"); else { new Float:pos[3], car; GetPlayerPos(playerid, pos[0], pos[1], pos[2]); car = CreateVehicle(vid, pos[0]+1.0, pos[1]+1.0, pos[2], 0.0, col1, col2, 0); SetVehicleParamsEx(car, 0, 0, 0, 0, 0, 0, 0); } return 1; }