CARS + TEAMS
#2

You can do it like this, it's how I handle it. There are more options but this works fine for me:

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(!ispassenger) // Let others still enter the car as passenger, delete if you don't want that
    {
      if(GetVehicleModel(vehicleid) == 596) // The Vehicle-Model, change it to whatever you like
      {
         if(gTeam[playerid] != TEAM_COPS) // However you have defined your Team
         {
            new Float:X, Float:Y, Float:Z;
            GetPlayerPos(playerid, X, Y, Z);
            SetPlayerPos(playerid, X, Y, Z);
            SendClientMessage(playerid,0x63AFF00A,"You are not a Cop!");
          }
      }
    }
}

Hope I could help you!
Reply


Messages In This Thread
CARS + TEAMS - by kLx - 06.02.2009, 14:48
Re: CARS + TEAMS - by Soeren - 06.02.2009, 18:41
Re: CARS + TEAMS - by ICECOLDKILLAK8 - 06.02.2009, 21:00
Re: CARS + TEAMS - by kLx - 07.02.2009, 08:48
Re: CARS + TEAMS - by kLx - 07.02.2009, 14:27
Re: CARS + TEAMS - by Peter_Corneile - 10.04.2009, 13:15
Re: CARS + TEAMS - by Taz86 - 10.04.2009, 13:28

Forum Jump:


Users browsing this thread: 1 Guest(s)