Adding player to a car[HELP]
#7

Quote:
Originally Posted by UnLoVeD
Quote:
Originally Posted by Fedee!
pawn Код:
if(listitem == 9)

{
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xff6600, "ERROR: Your already on a bike");
    new car = GetPlayerVehicleID(playerid);
    new Float:x,Float:y,Float:z,Float:a;
    GetPlayerPos(playerid,x,y,z);
    GetPlayerFacingAngle(playerid,a);
    CreateVehicle(494,x+1,y+1,z,a,6,6,10000);
    PutPlayerInVehicle(playerid, car, 0);
   
}
There you go
Thanx, but still didn't help me. I spawn on the car, not in the car =\ Any suggestions?
Ofcourse it wont work, you made it so that it puts you into your own vehicle, use:
pawn Код:
if(listitem == 9)

{
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xff6600, "ERROR: You're already on a bike");
    new Float:x,Float:y,Float:z,Float:a;
    GetPlayerPos(playerid,x,y,z);
    GetPlayerFacingAngle(playerid,a);
    new car = CreateVehicle(494,x+1,y+1,z,a,6,6,10000);
    PutPlayerInVehicle(playerid, car, 0);
   
}
Reply


Messages In This Thread
Adding player to a car[HELP] - by UnLoVeD - 17.02.2010, 14:52
Re: Adding player to a car[HELP] - by SloProKiller - 17.02.2010, 14:54
Re: Adding player to a car[HELP] - by UnLoVeD - 17.02.2010, 14:58
Re: Adding player to a car[HELP] - by Fedee! - 17.02.2010, 15:04
Re: Adding player to a car[HELP] - by UnLoVeD - 17.02.2010, 15:09
Re: Adding player to a car[HELP] - by Fedee! - 17.02.2010, 15:14
Re: Adding player to a car[HELP] - by SloProKiller - 17.02.2010, 15:20
Re: Adding player to a car[HELP] - by aircombat - 17.02.2010, 15:32
Re: Adding player to a car[HELP] - by UnLoVeD - 17.02.2010, 15:41
Re: Adding player to a car[HELP] - by aircombat - 17.02.2010, 15:42

Forum Jump:


Users browsing this thread: 1 Guest(s)