[AJUDA]Spawnar carro com botao
#5

pawn Код:
#define Pressed(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (Pressed(KEY_WALK))
    {
        new Float:Pos[3];
        GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
        new VeiculoCreate = CreateVehicle(562, Pos[0], Pos[1], Pos[2], 0.0, -1, -1, 15);
        PutPlayerInVehicle(playerid, VeiculoCreate, 0);
    }
    return 1;
}
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)