Teleporting with a vehicle
#5

Код:
if (strcmp("/spawn", cmdtext, true, 10) == 0)
    {
    if(IsPlayerInAnyVehicle(playerid)) {
        new Float:X;
        new Float:Y;
        new Float:Z;
        new VehicleID;
        GetPlayerPos(playerid, X, Y, Z);
        VehicleID = GetPlayerVehicleID(playerid);
        SetVehiclePos(VehicleID, -50.0743,-274.4324,5.4297);
        } else {
        new Float:X;
        new Float:Y;
        new Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        SetPlayerPos(playerid, -50.0743,-274.4324,5.4297);
        }
    return 1;
    }
Checking the vehicle
Reply


Messages In This Thread
Teleporting with a vehicle - by Lanzmeister - 16.08.2011, 23:08
Re: Teleporting with a vehicle - by PRANK - 16.08.2011, 23:21
Re: Teleporting with a vehicle - by Backwardsman97 - 16.08.2011, 23:22
Re: Teleporting with a vehicle - by Lanzmeister - 17.08.2011, 00:00
Re: Teleporting with a vehicle - by PRANK - 17.08.2011, 00:13
Re: Teleporting with a vehicle - by mprofitt - 17.08.2011, 00:15
Re: Teleporting with a vehicle - by Tigerbeast11 - 17.08.2011, 00:17
Re: Teleporting with a vehicle - by JaTochNietDan - 17.08.2011, 00:21

Forum Jump:


Users browsing this thread: 2 Guest(s)