team car jack
#10

Ok, so Pawn wants to do it my/the noobish way? He can get it, try this:

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  for(new i = 0; i < MAX_PLAYERS; i ++)
  { 
    if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i) && i != playerid)
    {
      if(gTeam[i] == gTeam[playerid] && GetPlayerVehicleID(i) == vehicleid)
      {
        new 
          Float:x, Float:y, Float:z;

        GetPlayerPos(playerid,x, y, z);
        SetPlayerPos(playerid, x, y, z + 10);
        SendClientMessage(playerid, COLOR, "Don't jack team mates!");
      }
    }
  }
  return 1;
}
Reply


Messages In This Thread
team car jack - by jamesbond007 - 23.02.2010, 16:45
Re: team car jack - by Miguel - 23.02.2010, 17:30
Re: team car jack - by jamesbond007 - 23.02.2010, 17:39
Re: team car jack - by VonLeeuwen - 23.02.2010, 17:42
Re: team car jack - by jamesbond007 - 23.02.2010, 17:45
Re: team car jack - by VonLeeuwen - 23.02.2010, 17:46
Re: team car jack - by jamesbond007 - 23.02.2010, 17:49
Re: team car jack - by VonLeeuwen - 23.02.2010, 17:52
Re: team car jack - by jamesbond007 - 23.02.2010, 18:00
Re: team car jack - by VonLeeuwen - 23.02.2010, 18:02

Forum Jump:


Users browsing this thread: 1 Guest(s)