OnPlayerEnterVehicle to OnPlayerStateChange
#7

Oops, sorry, I did not pay attention to this. Whatever, your code is still not 100% correct, you try to add the component to 562, not to the player's vehicle id

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)  
    {
        if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 562)  
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); // Nitro
            SendClientMessage(playerid, 0xFFFFFFAA, "Nitro Added.");
        }
    }
    return 1;
}
Reply


Messages In This Thread
OnPlayerEnterVehicle to OnPlayerStateChange - by Noss* - 22.12.2010, 11:30
Re: OnPlayerEnterVehicle to OnPlayerStateChange - by Mauzen - 22.12.2010, 12:10
Re: OnPlayerEnterVehicle to OnPlayerStateChange - by Noss* - 22.12.2010, 12:32
Re: OnPlayerEnterVehicle to OnPlayerStateChange - by DainMokan - 22.12.2010, 12:51
Re: OnPlayerEnterVehicle to OnPlayerStateChange - by ExeC - 22.12.2010, 13:00
Re: OnPlayerEnterVehicle to OnPlayerStateChange - by Jakku - 22.12.2010, 13:22
Re: OnPlayerEnterVehicle to OnPlayerStateChange - by Mauzen - 22.12.2010, 13:30
Re: OnPlayerEnterVehicle to OnPlayerStateChange - by Jakku - 22.12.2010, 13:31

Forum Jump:


Users browsing this thread: 1 Guest(s)