31.03.2009, 07:10
OK i want a car to attach another car as it's trailer. I've seen it done before and i wanted to do it myself.
Here is my script:
I have the stocks for the getclosestcar. But when i go into the game adn type /attach it says UNKNOWN COMMAND
Here is my script:
Quote:
if(strcmp(cmd, "/attach", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new vehid; new vehid2; vehid = GetPlayerVehicleID(playerid); vehid2 = GetClosestCar(playerid); AttachTrailerToVehicle(vehid,vehid2); } } |