Access everything in example[MAX_VEHICLES];
#2

Add into public OnPlayerStateChange:

pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
    new pcar = GetPlayerVehicleID(playerid);
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
        if(IsPlayerConnected(i) && i != playerid)
        {
            if(PlayerCar[i] == pcar)
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, -1, "Your message for removed player...");
                break;
            }
        }
    }
}
Reply


Messages In This Thread
Access everything in example[MAX_VEHICLES]; - by 9903286 - 02.12.2012, 00:02
Re: Access everything in example[MAX_VEHICLES]; - by stabker - 02.12.2012, 01:12

Forum Jump:


Users browsing this thread: 1 Guest(s)