10.08.2014, 16:17
pawn Код:
stock GetPlayersInArea(Float:min_x,Float:min_y,Float:max_x,Float:max_y, clan[])
{
new count = 0;
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i) && IsPlayerInArea(i, min_x, min_y, max_x, max_y) && !strcmp(clan, DOF2_GetString(pFile(i),"Clan")) count++;
}
return count;
}
public someCallback(someParameters)
{
if(GetPlayersInArea(10.5, 13.5, 150.0, 120.0, "ExampleClan") >= 4) StartFlashingGZone(gzoneid);
return somevalue;
}