[Pedido] [FS] NITRO .FOGO
#4

Quote:

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){
if (HOLDING( 4 ))// ALT ativa o nitro
{
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) //no veiculo
{
if(IsValidObject(CarFireObj[playerid]) == 0)//Adiciona o objeto FOGO no nitro [o nitro n muda sу adc o fogo]
{
CarFireObj[playerid] = CreateObject(18694, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); //respectivamente: ID do obj. e coordenada. pra criar o obj.
AttachObjectToVehicle(CarFireObj[playerid], GetPlayerVehicleID(playerid), 0.0, -2.3, 1.2, 180.0, 0.0, 0.0); //anexa o objeto no veiculo
}
}
}
if (RELEASED( 4 ))// se ele para de apertar ALT o obj. [fogo] й destruido
{
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(IsValidObject(CarFireObj[playerid]) == 1)DestroyObject(CarFireObj[playerid]);// deleta o objeto FOGO
}
}
return 1;
}

n lembro а qm se deve os crйditos, apenas postei o code!
Reply


Messages In This Thread
[FS] NITRO .FOGO - by Wakayama - 22.09.2013, 01:48
Re: [FS] NITRO .FOGO - by Juniiro3 - 22.09.2013, 01:53
Re: [FS] NITRO .FOGO - by Wakayama - 22.09.2013, 02:02
Re: [FS] NITRO .FOGO - by F1N4L - 22.09.2013, 02:40

Forum Jump:


Users browsing this thread: 1 Guest(s)