if(FewPlayersIsInArea) :P how to do it
#5

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;
}
Reply


Messages In This Thread
if(FewPlayersIsInArea) :P how to do it - by Lirbo - 10.08.2014, 15:54
Re: if(FewPlayersIsInArea) :P how to do it - by [XST]O_x - 10.08.2014, 15:59
Re: if(FewPlayersIsInArea) :P how to do it - by Faisal_khan - 10.08.2014, 16:01
Re: if(FewPlayersIsInArea) :P how to do it - by Lirbo - 10.08.2014, 16:13
Re: if(FewPlayersIsInArea) :P how to do it - by [XST]O_x - 10.08.2014, 16:17
Re: if(FewPlayersIsInArea) :P how to do it - by Mauzen - 10.08.2014, 16:27

Forum Jump:


Users browsing this thread: 1 Guest(s)