02.03.2011, 14:37
Hello guys. How do i make tractor able to use the plow as trailer?
Hope you can help me. Thank you.
Hope you can help me. Thank you.
if (strcmp("/trailer", cmdtext, true, 10) == 0)
{
pVehicle = GetPlayerVehicleID(playerid);
if(pVehicle == 531)
{
AttachTrailerToVehicle(610, 531);
}
return 1;
}
if (strcmp("/trailer", cmdtext, true, 10) == 0)
{
pVehicle = GetPlayerVehicleID(playerid);
if(GetVehicleModel(pVehicle) == 531)
{
AttachTrailerToVehicle(pVehicle, 531);
}
return 1;
}
Plate of car = Car id ? hmm that sounds interesting, can you dezvolt that idea a bit ?
Like okay, i know how to loop, but setting plate by vehicleid to every vehicle its own id..not |
for(new v = 1; v < MAX_VEHICLES; v ++)
{
SetVehicleNumberPlate(v, v);
}
new string[3];
format(string, sizeof(string), "%d", v);
SetVehicleNumberPlate(v, string);