help?
#16

No. I said change Z this what you have now.

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;
}
EPIC MY FAIL. I didn't add earlier GetPlayerPos and GetPlayerFacingAngle. This will now work for sure.
Reply


Messages In This Thread
help? - by xbox360boy66 - 18.08.2011, 12:25
Re: help? - by Riddick94 - 18.08.2011, 12:27
Re: help? - by xbox360boy66 - 18.08.2011, 12:35
Re: help? - by xbox360boy66 - 18.08.2011, 12:37
Re: help? - by Riddick94 - 18.08.2011, 12:40
Re: help? - by xbox360boy66 - 18.08.2011, 12:47
Re: help? - by Riddick94 - 18.08.2011, 12:56
Re: help? - by xbox360boy66 - 18.08.2011, 13:07
Re: help? - by Riddick94 - 18.08.2011, 13:16
Re: help? - by xbox360boy66 - 18.08.2011, 13:21
Re: help? - by Riddick94 - 18.08.2011, 13:23
Re: help? - by xbox360boy66 - 18.08.2011, 13:33
Re: help? - by xbox360boy66 - 18.08.2011, 13:43
Re: help? - by Riddick94 - 18.08.2011, 13:45
Re: help? - by xbox360boy66 - 18.08.2011, 14:06
Re: help? - by Riddick94 - 18.08.2011, 14:11
Re: help? - by doreto - 18.08.2011, 14:17
Re: help? - by xbox360boy66 - 18.08.2011, 14:20

Forum Jump:


Users browsing this thread: 2 Guest(s)