Lock cars for team.
#2

Tere Olari. Why won't you just kick the player out of the car when he enter it? Something like this:
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        new vehicleid = GetPlayerVehicleID(playerid);
        if(gCars[vehicleid][CarTeam] == gPlayer[playerid][Team])
        {
            RemovePlayerFromVehicle(playerid);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Lock cars for team. - by olari9 - 26.07.2012, 08:31
Re: Lock cars for team. - by Dan. - 26.07.2012, 08:52
Re: Lock cars for team. - by olari9 - 26.07.2012, 09:50
Re: Lock cars for team. - by JaKe Elite - 26.07.2012, 09:55

Forum Jump:


Users browsing this thread: 1 Guest(s)