09.12.2012, 14:24
Hello
I made a /getin command for a pd garage
But If i have a person (passenger) with me he doesnt get a correct virtual world etc, is there a way to get him with me?
I made a /getin command for a pd garage
pawn Код:
command(getin, playerid, params[])
{
if(Factions[Player[playerid][Faction]][CommandTypes] == 1)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1588.5437,-1633.0819,13.1099))
{
new playercar = GetPlayerVehicleID(playerid);
new playerseat = GetPlayerVehicleSeat(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
LinkVehicleToInterior(playercar, 1);
SetVehicleVirtualWorld(playercar, 500);
SetPlayerVirtualWorld(playerid, 500);
SetPlayerInterior(playerid, 1);
SetVehiclePos(playercar, 2314.2695,2446.1648,-39.3384);
SetVehicleZAngle(playercar, 89.5626);
PutPlayerInVehicle(playerid, playercar, playerseat);
}
}
}
return 1;
}