OnPlayerEnterVehicle
#3

Quote:
Originally Posted by JaTochNietDan
Посмотреть сообщение
The problem seems obvious, you are missing a bracket, can you not see that?

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if (vehicleid == 562)
    {
        AddVehicleComponent(562, 1010); // Nitro
        SendClientMessage(playerid, 0xFFFFFFAA, "Nitro Added.");
    }
    return 1;
}
This wont work! OnPlayerEnterVehicle is called ONLY when you press intro to enter a car, not when your in it!
So use OnPlayerStateChange.
Reply


Messages In This Thread
OnPlayerEnterVehicle - by Noss* - 21.12.2010, 23:18
Re: OnPlayerEnterVehicle - by JaTochNietDan - 21.12.2010, 23:22
Respuesta: Re: OnPlayerEnterVehicle - by admantis - 21.12.2010, 23:23

Forum Jump:


Users browsing this thread: 1 Guest(s)