19.07.2013, 05:30
my command:
Код:
new veh = GetPlayerVehicleID(playerid); if(CarInfo[veh][cobj1] != 0 && CarInfo[veh][cobj2] != 0) { SendClientMessage(playerid, COLOR_WHITE, "Your Car is no more space "); return 1; } if(CarInfo[veh][cobj1] == 0) { CarInfo[veh][cobj1] = CreateObject(19419, 0, 0, 0, 0.00, 0.00, 0.00); AttachObjectToVehicle(CarInfo[veh][cobj1], veh, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0); if(CarInfo[veh][cobj1] != 0) { SendClientMessage(playerid, COLOR_WHITE, "Now you can edit them"); } } else if(CarInfo[veh][cobj2] == 0 && CarInfo[veh][cobj1] != 0) { CarInfo[veh][cobj2] = CreateObject(19419, 0, 0, 0, 0.00, 0.00, 0.00); AttachObjectToVehicle(CarInfo[veh][cobj2], veh, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0); SendClientMessage(playerid, COLOR_WHITE, "Now you can edit them by using /Px /py /pz"); }