15.11.2012, 19:40
what i'm trying to do is :
when a player (in team != 30) die ! i want to give a function to all the players next to the player who is dead ! this is my scripts but it's not working properly
when a player (in team != 30) die ! i want to give a function to all the players next to the player who is dead ! this is my scripts but it's not working properly
Код:
new Float:X, Float:Y, Float:Z;
if(GetPlayerTeam(playerid) != 30)
{
GetPlayerPos(playerid,X,Y,Z);
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 10, X, Y, Z))
{
if(GetPlayerTeam(i) != 30) return 1;
GivePlayerExp(i, 100, "~r~player dead");
}
}
return 1;
}


) sometime it's not working !
