help me pls
#9

pawn Код:
new ownedcarteam[MAX_VEHICLES];
new tempvarforcar;

OnGameModeInit()
{
  //blabla rest of the code
  tempvarforcar =  CreateVehicle(blablacoordsandstuff); // police car 1
  ownedcarteam[tempvarforcar] = 1; // police car
  tempvarforcar =  CreateVehicle(blablacoordsandstuff); // police car 2
  ownedcarteam[tempvarforcar] = 1; // police car
  tempvarforcar =  CreateVehicle(blablacoordsandstuff); // grove car 1
  ownedcarteam[tempvarforcar] = 2; // grove car
  tempvarforcar =  CreateVehicle(blablacoordsandstuff); // police car 2
  ownedcarteam[tempvarforcar] = 2; //grove car
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  if(ownedcarteam[GetPlayerVehicleID(playerid)] >0) // checking to see if the car is assinged to any team
  {
    if(ownedcarteam[GetPlayerVehicleID(playerid)] != gTeam[playerid]) // wrong car team
    {
      ClearAnimations(playerid);
    }
  }
}
Reply


Messages In This Thread
help me pls - by Diti1 - 03.08.2014, 15:13
Re: help me pls - by LarryTiger - 03.08.2014, 15:23
Re: help me pls - by Diti1 - 03.08.2014, 15:28
Re: help me pls - by Stinged - 03.08.2014, 15:29
Re: help me pls - by Diti1 - 03.08.2014, 15:56
Re: help me pls - by ViniBorn - 03.08.2014, 16:32
Re: help me pls - by Diti1 - 03.08.2014, 16:46
Re: help me pls - by Diti1 - 03.08.2014, 20:35
Re: help me pls - by Dj_maryo1993 - 03.08.2014, 20:54
Re: help me pls - by Diti1 - 03.08.2014, 21:20

Forum Jump:


Users browsing this thread: 3 Guest(s)