[Help]Teleporting with Cars...
#4

Quote:
Originally Posted by ►Peter Corneile◄ [hugu-hosting.co.uk
]
pawn Код:
if (strcmp("/teleport", cmdtext, true, 9) == 0)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    new car;
    car = GetPlayerVehicleID(playerid);
    SetVehiclePos(car,X,Y,Z);
    }
    else
    {
     SetPlayerPos(playerid,X,Y,Z);
    }
 return 1;
}
Cheers, this is what i wanted!
Reply


Messages In This Thread
[Help]Teleporting with Cars... - by Tigerbeast11 - 15.10.2009, 22:48
Re: [Help]Teleporting with Cars... - by saiberfun - 15.10.2009, 22:54
Re: [Help]Teleporting with Cars... - by Peter_Corneile - 15.10.2009, 23:19
Re: [Help]Teleporting with Cars... - by Tigerbeast11 - 16.10.2009, 06:33
Re: [Help]Teleporting with Cars... - by Peter_Corneile - 16.10.2009, 08:25
Re: [Help]Teleporting with Cars... - by BMUK - 16.10.2009, 08:30
Re: [Help]Teleporting with Cars... - by Peter_Corneile - 16.10.2009, 09:47
Re: [Help]Teleporting with Cars... - by BMUK - 16.10.2009, 09:51
Re: [Help]Teleporting with Cars... - by Peter_Corneile - 16.10.2009, 09:52
Re: [Help]Teleporting with Cars... - by Tigerbeast11 - 16.10.2009, 16:47

Forum Jump:


Users browsing this thread: 2 Guest(s)