16.08.2009, 17:21
Anti Team Jack.. When somebody jack from the same team kill him.
|
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
![]() |
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;
}
|
Originally Posted by Don Correlli
Depends on what team-system you're using, but GetPlayerTeam is bugged.
|
|
Originally Posted by [WsR
RyDeR ]
Hmm.. But I use this perfect whitout bug, and what is the bug? |