IsPlayerNearTeamMate
#1

how do i do this, i have a explosion function for my zombie server and people are abusing the explosion so i need to make the explosion smaller, yet the radius between zombies a little longer...
so far i have this
Код:
	if(newkeys & KEY_SECONDARY_ATTACK) {
		if(pTeam[playerid] == ZOMBIE) {
		
			if(Player[playerid][CLASS_ZOMBIE] == 7 && Player[playerid][canexplode]) {
            	
			    new Float:P[3];
			    GetPlayerPos(playerid, P[0], P[1], P[2]);
				CreateExplosion(P[0], P[1], P[2], 7, 3.0);
				SetPlayerHealth(playerid, 0);
				Player[playerid][canexplode] = 0;
				SetTimerEx("AllowExplode", 60000, false, "i", playerid);
			}
		}
	}
but this just creates explosion not checks if team mate is near...
I think you would need to use this to detect how far away player from player
if(pTeam[playerid] == ZOMBIE)
but i have no idea how to do this...
Reply


Messages In This Thread
IsPlayerNearTeamMate - by SwisherSweet - 25.08.2013, 22:38
Re: IsPlayerNearTeamMate - by ViruZz - 25.08.2013, 22:43

Forum Jump:


Users browsing this thread: 1 Guest(s)