12.09.2009, 11:52
Hello,
i have a problem.
On my Server i have in 0.2X a towing script
but on 0.3 it dont work why?
i have a problem.
On my Server i have in 0.2X a towing script
Quote:
if(strcmp(cmd, "/abschleppen", true)==0) { if(IsPlayerInAnyVehicle(playerid)) { if(pVeh != 525) { SendClientMessage(playerid, COLOR_GREY, "Du bist in keinem Abschleppwagen!"); return 1; } new vehid = GetPlayerVehicleID(playerid); if(!IsTrailerAttachedToVehicle(vehid)) { new Float, Float:y, Float:z; GetVehiclePos(vehid, x, y, z ); new vehiclet; GetVehicleWithinDistance(playerid, x, y, z, 100.0, vehiclet); AttachTrailerToVehicle(vehiclet, vehid); } else { DetachTrailerFromVehicle(vehid); } } return 1; } |