[AJUDA]Spawnar carro com botao
#3

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (PRESSED(KEY_WALK))
    {
        new Float:X,Float:Y,Float:Z, Float:Angle;
        GetPlayerPos(playerid, X,Y,Z);
        GetPlayerFacingAngle(playerid, Angle);
        new veiculonovo = CreateVehicle(carrocriado, X,Y,Z, Angle, 0, 0, 60000);
        PutPlayerInVehicle(playerid, veiculonovo, 0);
    }
    return 1;
}
Tente assim!
Reply


Messages In This Thread
[AJUDA]Spawnar carro com botao - by Mr_Pawned - 02.12.2011, 22:30
Re: [AJUDA]Spawnar carro com botao - by |_MeGaTroN_| - 02.12.2011, 22:48
Re: [AJUDA]Spawnar carro com botao - by Adrian Fahrenheit Tepes - 02.12.2011, 22:50
Re: [AJUDA]Spawnar carro com botao - by WLSF - 02.12.2011, 22:54
Re: [AJUDA]Spawnar carro com botao - by |_MeGaTroN_| - 02.12.2011, 23:02
Re: [AJUDA]Spawnar carro com botao - by WLSF - 02.12.2011, 23:03

Forum Jump:


Users browsing this thread: 1 Guest(s)