24.05.2014, 14:39
I have a problem in a code to spawn a car and the player will go straight in, here is the code:
However, the player does not want to get in, I used PutPlayerInVehicle as you see, but it does not work, the car spawn close to the player. Please help me
PHP код:
if(strcmp(cmdtext, "/car", true,4) == 0)
{
new Float:X,Float:Y,Float:Z,Float:A;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,A);
CreateVehicle(411,X,Y,Z,A,1,1,120);
PutPlayerInVehicle(playerid,411,0); return 1;
}
return 0;
}