OnPlayerEnterVehicle
#7

Put in the top of your gamemode:

pawn Код:
new CreatedVehicleVar[MAX_PLAYERS];
And, in your command:

pawn Код:
CreatedVehicleVar[playerid] = CreateVehicle....

Finally:

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    for(new x = 0; x < 500; x++)
    {
        if(vehicleid == CreatedVehicleVar[x])
        {
            //"Let's say that the car is spawned.." ;D
        }
    }
    return 1;
}

I hope that i have helped
Reply


Messages In This Thread
OnPlayerEnterVehicle - by DokerJr - 18.02.2011, 21:08
Re: OnPlayerEnterVehicle - by OKStyle - 19.02.2011, 03:30
Re: OnPlayerEnterVehicle - by DokerJr - 19.02.2011, 21:20
Re: OnPlayerEnterVehicle - by PowerPC603 - 19.02.2011, 22:01
Re: OnPlayerEnterVehicle - by Vince - 19.02.2011, 22:18
Re: OnPlayerEnterVehicle - by DokerJr - 20.02.2011, 13:44
Re: OnPlayerEnterVehicle - by rjjj - 20.02.2011, 14:26

Forum Jump:


Users browsing this thread: 2 Guest(s)