Towing Code wont work??
#1

I use DCMD (but i regret it and thought that i'd give it a try. I made a /tow command (nothing huge just /tow <id>). But it doesnt seem to work?

Код:
dcmd_tow(playerid, params[])
{
	if(strlen(params))
	{
	new id = strval(params);
  if(IsPlayerConnected(id) && playerid != id)
  {
	  if(IsPlayerInAnyVehicle(id) && GetVehicleModel(GetPlayerVehicleID(playerid) == 525))
	  {
	    if(IsPlayerAdmin(playerid))
	    {
	      AttachTrailerToVehicle(GetPlayerVehicleID(id),GetPlayerVehicleID(playerid));
	      SendClientMessage(playerid, COLOR_GOLD, "You are towing somebody!");
	      SendClientMessage(id, COLOR_GOLD, "You are being towed!");
			}else{
			  SendClientMessage(playerid, COLOR_GOLD, "You arn't an administrator!");
			}
		}
		}else{
		  SendClientMessage(playerid, COLOR_GOLD, "Player is disconnected or is yourself!");
		}
	}else{
	  SendClientMessage(playerid, COLOR_GOLD, "Usage: /tow [playerid] - Tow a player's car");
	}
}
Thanks: Luciano
Reply
#2

Cannot attch vec which has driver.
Idk how about passanger
Reply
#3

ooooooooooooooooh thanks cool!
Reply
#4

It's my pleasure.
Please read this , thx.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)