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);
}