if (strcmp(cmd, "/extele", true) == 0)
{
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
if(PlayerToPoint(2.0, playerid, 1878.8372,-2367.2734,13.5547))
{
SetPlayerPos(playerid, -1429.8191,467.6045,7.1875);
}
if(PlayerToPoint(2.0, playerid, -1429.8191,467.6045,7.1875))
{
SetPlayerPos(playerid, 1878.8372,-2367.2734,13.5547);
}
}
return 1;
}
SetVehiclePos(1, 123.456, 123.456, 12.34); ..
if (strcmp(cmd, "/extele", true) == 0)
{
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
if(PlayerToPoint(2.0, playerid, 1878.8372,-2367.2734,13.5547))
{
if(IsPlayerInVehicle(playerid))
{
new CarID = GetPlayerVehicleID(playerid);
SetVehiclePos(CarID, -1429.8191,467.6045,7.1875);
PutPlayerInVehicle(playerid, CarID, 0);
}
else
SetPlayerPos(playerid, -1429.8191,467.6045,7.1875);
}
if(PlayerToPoint(2.0, playerid, -1429.8191,467.6045,7.1875))
{
if(IsPlayerInVehicle(playerid))
{
new CarID = GetPlayerVehicleID(playerid);
SetVehiclePos(CarID, 1878.8372,-2367.2734,13.5547);
PutPlayerInVehicle(playerid, CarID, 0);
}
else
SetPlayerPos(playerid, 1878.8372,-2367.2734,13.5547);
}
}
return 1;
}
if (strcmp(cmd, "/extele", true) == 0)
{
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
if(PlayerToPoint(2.0, playerid, 1878.8372,-2367.2734,13.5547))
{
if (GetPlayerState(playerid) == 2) {
new
CCarro = GetPlayerVehicleID(playerid)
;
SetVehiclePos(CCarro, -1429.8191,467.6045,7.1875);
}
else
SetPlayerPos(playerid, -1429.8191,467.6045,7.1875);
}
if(PlayerToPoint(2.0, playerid, -1429.8191,467.6045,7.1875))
{
if (GetPlayerState(playerid) == 2) {
new
CCarro = GetPlayerVehicleID(playerid)
;
CCarro = GetPlayerVehicleID(playerid)
SetVehiclePos(CCarro, 1878.8372,-2367.2734,13.5547);
}
else
SetPlayerPos(playerid, 1878.8372,-2367.2734,13.5547);
}
}
return 1;
}
Vini, acho que nгo precisa colocar o player no veнculo, quando teleporta o carro, se alguйm estб dentro, vai automaticamente.
|
nгo adiantou, continua indo sem o veнculo.
@edit igual, ainda o carro nгo й teleportado junto. |
Fiz um cmd teste aqui vini, funfou. Nгo precisa do Put... =)
|