10.08.2014, 15:59
pawn Код:
stock GetPlayersInArea(Float: x, Float: y, Float: z, clan[], Float: radius)
{
new count = 0;
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, radius, x, y, z) && !strcmp(clan, DOF2_GetString(pFile(i),"Clan")) count++;
}
return count;
}
public someCallback(someParameters)
{
if(GetPlayersInArea(x, y, z, "ExampleClan", 45.0) >= 4) StartFlashingGZone(gzoneid);
return somevalue;
}