Anti Team Jack.. When somebody jack from the same team kill him. ??? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Anti Team Jack.. When somebody jack from the same team kill him. ??? (
/showthread.php?tid=91765)
Anti Team Jack.. When somebody jack from the same team kill him. ??? -
RyDeR` - 16.08.2009
Anti Team Jack.. When somebody jack from the same team kill him.
Re: Anti Team Jack.. When somebody jack from the same team kill him. ??? -
Google63 - 16.08.2009
if that's vehicle then i guess OnPlayerStateChange will be fine
Re: Anti Team Jack.. When somebody jack from the same team kill him. ??? -
RyDeR` - 16.08.2009
Yes it is but can you give an example? When player from the same team try to enter the vehicle, and kill him..?
Re: Anti Team Jack.. When somebody jack from the same team kill him. ??? -
BMUK - 16.08.2009
All that stuff that you have released in your sig and you cant make a simple anti-team-hiijack feature? 0.o
Re: Anti Team Jack.. When somebody jack from the same team kill him. ??? -
RyDeR` - 16.08.2009
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
Re: Anti Team Jack.. When somebody jack from the same team kill him. ??? -
Correlli - 16.08.2009
Depends on what team-system you're using, but GetPlayerTeam is bugged.
Re: Anti Team Jack.. When somebody jack from the same team kill him. ??? -
RyDeR` - 16.08.2009
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?
Re: Anti Team Jack.. When somebody jack from the same team kill him. ??? -
Correlli - 16.08.2009
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.