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

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