Help Car
#1

Can you catch his car?



With this car
Reply
#2

I dunno quite understand what you're talking about, but if you mean towing, that's possible IF the towed vehicle is unoccupied.
Reply
#3

Yes I can tow with this car
Reply
#4

There are scripts?
Reply
#5

Someone help me?
Reply
#6

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
Reply
#7

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.
Reply
#8

Код:
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;
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)