Vehicle to me
#1

Hi,
I would need to vehicle teleported to me and threw me into it.
Now I have only that port into the vehicle.
Could someone do me?
Код:
	if(dialogid == DIALOG_FINDVEHICLE)
	{
		if(response)
		{
			new id;
			sscanf(inputtext[4], "d", id);
			if(IsValidVehicle(id))
			{
				PutPlayerInVehicle(playerid, VehicleID[id], 0);
				SendClientMessage(playerid, COLOR_WHITE, "Portol si sa do vozidla");
			}
		}
		return 1;
	}
Reply
#2

Quote:
Originally Posted by NiKi123
Посмотреть сообщение
Hi,
I would need to vehicle teleported to me and threw me into it.
Now I have only that port into the vehicle.
Could someone do me?
Код:
	if(dialogid == DIALOG_FINDVEHICLE)
	{
		if(response)
		{
			new id;
			sscanf(inputtext[4], "d", id);
			if(IsValidVehicle(id))
			{
				PutPlayerInVehicle(playerid, VehicleID[id], 0);
				SendClientMessage(playerid, COLOR_WHITE, "Portol si sa do vozidla");
			}
		}
		return 1;
	}
pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    return 1;
}
    if(dialogid == DIALOG_FINDVEHICLE)
    {
        if(response)
        {
            new id;
            sscanf(inputtext[4], "d", id);
            if(IsValidVehicle(id))
            {
                new
                    Float: X,
                    Float: Y,
                    Float: Z;

                GetPlayerPos(playerid, X, Y, Z);
                SetVehiclePos(VhicleID[id], X, Y, Z);

                PutPlayerInVehicle(playerid, VehicleID[id], 0);
                SendClientMessage(playerid, COLOR_WHITE, "Portol si sa do vozidla");
            }
        }
        return 1;
    }
Reply
#3

pawn Код:
if(dialogid == DIALOG_FINDVEHICLE)
    {
        if(response)
        {
            new id;
            sscanf(inputtext[4], "d", id);
            if(IsValidVehicle(id))
            {
                new Float:pX,Float:pY,Float:pZ;
                GetPlayerPos(playerid,pX,pY,pZ);
                SetVehiclePos(id,pX,pY,pZ);
                PutPlayerInVehicle(playerid, VehicleID[id], 0);
                SendClientMessage(playerid, COLOR_WHITE, "Portol si sa do vozidla");
            }
        }
        return 1;
    }
Like this, I guess?
Reply
#4

Works thank you very much Nathan_Taylor.
But thank you for the efforts DaniceMcHarley but it was me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)