18.08.2011, 14:11
No. I said change Z this what you have now.
EPIC MY FAIL. I didn't add earlier GetPlayerPos and GetPlayerFacingAngle. This will now work for sure.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/nrg", cmdtext, true, 10) == 0)
{
new variable;
new Float:X, Float:Y, Float:Z, Float:Angle;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
variable = CreateVehicle(481, X, Y, Z, Angle, 2, 4, -1); // -1 will never respawn.
PutPlayerInVehicle(playerid, variable, 0);
return 1;
}
return 0;
}