PDA

View Full Version : Vehicle to me


NiKi123
09/05/2014, 09:24 PM
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;
}

Nathan_Taylor
09/05/2014, 09:48 PM
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;
}


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

Beckett
09/05/2014, 09:50 PM
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?

NiKi123
10/05/2014, 07:36 AM
Works thank you very much Nathan_Taylor.
But thank you for the efforts DaniceMcHarley but it was me.