Make cars entrable for certin team?
#5

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  if(gTeam[playerid] == TEAM_MEDIC && vehicleid == /*Put one of the cop cars vehicle ID's here*/)
  {
     new Pos[3];
     GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
     SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
     SendClientMessage(playerid, COLOR, "This is a police team vehicle!!");
  }
  return 1;
}
Reply


Messages In This Thread
Make cars entrable for certin team? - by hardstop - 28.03.2010, 18:25
Re: Make cars entrable for certin team? - by ScottCFR - 28.03.2010, 18:32
Re: Make cars entrable for certin team? - by [MWR]Blood - 28.03.2010, 18:33
Re: Make cars entrable for certin team? - by ScottCFR - 28.03.2010, 18:36
Re: Make cars entrable for certin team? - by [HiC]TheKiller - 28.03.2010, 18:49
Re: Make cars entrable for certin team? - by Norck - 28.03.2010, 18:56
Re: Make cars entrable for certin team? - by hardstop - 30.03.2010, 19:48

Forum Jump:


Users browsing this thread: 1 Guest(s)