Help Car - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help Car (
/showthread.php?tid=167425)
Help Car -
Proteine - 12.08.2010
Can you catch his car?

With this car
Re: Help Car -
Hiddos - 12.08.2010
I dunno quite understand what you're talking about, but if you mean towing, that's possible IF the towed vehicle is unoccupied.
Re: Help Car -
Proteine - 12.08.2010
Yes I can tow with this car
Re: Help Car -
Proteine - 12.08.2010
There are scripts?
Re: Help Car -
Proteine - 12.08.2010
Someone help me?
Re: Help Car -
0ne - 12.08.2010
Why the heck you people don't search? there was many questions and answers there are 2filterscripts if 1 wasn't deleted, just SEARCH FOR IT
Re: Help Car -
Steven82 - 12.08.2010
Yes as "One" said there are filterscripts, please use the search function. ANd stop spamming, it's very annoying, and shows that you just moan and complain until you get your way. Were not gonna help you, so please just use the search function. And maybe find a good translater for your language.
Re: Help Car -
akis_tze - 12.08.2010
Код:
if(strcmp(cmdtext,"/tow",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 525)
{
if(GetPlayerState(playerid)==2)
{
new Float:pX,Float:pY,Float:pZ;
GetPlayerPos(playerid,pX,pY,pZ);
new Float:vX,Float:vY,Float:vZ;
new Found=0;
new vid=0;
while((vid<MAX_VEHICLES)&&(!Found))
{
vid++;
GetVehiclePos(vid,vX,vY,vZ);
if ((floatabs(pX-vX)<7.0)&&(floatabs(pY-vY)<7.0)&&(floatabs(pZ-vZ)<7.0)&&(vid!=GetPlayerVehicleID(playerid)))
{
Found=1;
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
{
DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
}
else
{
AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid));
}
}
}
if(!Found)
{
SendClientMessage(playerid,0xFFFF00AA,"There is no car in range.");
}
}
else
{
SendClientMessage(playerid, 0xFFFF00AA, "You need to be the driver.");
return 1;
}
}
else
{
SendClientMessage(playerid, 0xFFFF00AA, "You need to be in a Tow truck to use this.");
return 1;
}
}
else
{
SendClientMessage(playerid, 0xFFFF00AA, "You need to be in a vehicle to do this.");
return 1;
}
}
return 1;
}