Anti Team Jack.. When somebody jack from the same team kill him. ???
#1

Anti Team Jack.. When somebody jack from the same team kill him.
Reply
#2

if that's vehicle then i guess OnPlayerStateChange will be fine
Reply
#3

Yes it is but can you give an example? When player from the same team try to enter the vehicle, and kill him..?
Reply
#4

All that stuff that you have released in your sig and you cant make a simple anti-team-hiijack feature? 0.o
Reply
#5

Quote:
Originally Posted by BMUK
All that stuff that you have released in your sig and you cant make a simple anti-team-hiijack feature? 0.o
^^ lol, I never have worked with teams..

Edit:

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  for(new i; i < GetMaxPlayers(); i++)
  {
    if(IsPlayerConnected(i))
    {
      if(IsPlayerInVehicle(i,vehicleid) && GetPlayerState(i) == PLAYER_STATE_DRIVER && GetPlayerTeam(i) == GetPlayerTeam(playerid))
      {
				SetPlayerHealth(playerid,0.00);
      }
    }
  }
  return 1;
}
This works
Reply
#6

Depends on what team-system you're using, but GetPlayerTeam is bugged.
Reply
#7

Quote:
Originally Posted by Don Correlli
Depends on what team-system you're using, but GetPlayerTeam is bugged.
Hmm.. But I use this perfect whitout bug, and what is the bug?
Reply
#8

Quote:
Originally Posted by [WsR
RyDeR ]
Hmm.. But I use this perfect whitout bug, and what is the bug?
This report was not from me, but from some sa-mp scripters, at least they were saying that GetPlayerTeam function is bugged. Personaly, i don't know since i don't use it much.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)