Towing Car
#1

Hello,

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;
}

but on 0.3 it dont work why?

Reply


Messages In This Thread
Towing Car - by Tom_Dedi - 12.09.2009, 11:52
Re: Towing Car - by d0 - 12.09.2009, 11:55
Re: Towing Car - by Tom_Dedi - 12.09.2009, 11:57
Re: Towing Car - by d0 - 12.09.2009, 11:58
Re: Towing Car - by Stas92 - 12.09.2009, 12:37

Forum Jump:


Users browsing this thread: 1 Guest(s)