18.10.2018, 21:52
Quote:
Collect all spawn-points for each map and assign to them for which team is (you need to know to which team it belongs so the system will not punish the player for dying on the spawn-point of the opponent team). When a player dies check if there is a killer and if the team of the killer is different. If the team differs, check if playerid is in range of any spawn-point that belongs to their team.
|
PHP Code:
if(team[issuerid] == TEAM_SWAT)
{
if(team[playerid] == TEAM_TERRORIST)
{
if (IsPlayerInRangeOfPoint(playerid, 1.0, 286.20001220705, 178.10000610352, 1007.5999755859)) // TERRORIST SPAWN
{
if(weaponid == 25)
{
GetPlayerHealth(issuerid,hp);
SetPlayerHealth(issuerid, hp -0);
}
}
}
}