Detect VirtualW (IsPlayerInRangePoint)
#4

pawn Код:
CMD:enevento(playerid,params[])
{
        new bool:First2 = false;
        new PlayerName2;
        new id;
        GetPlayerName(id,PlayerName2,MAX_PLAYER_NAME);
        new Count, string[128];
   
        for(id = 0; id < MAX_PLAYERS; id++)
        {
            if(IsPlayerConnected(id))
            {
            if(GetPlayerVirtualWorld(id) == 9)
            {
            Count++;
            if(!First2)
            {
            format(string, sizeof(string), "(ID: %d) (Name: %s)", id, PlayerName2);
            First2 = true;
            }
            else format(string,sizeof(string),"%s, (ID: %d) (Name: %s)",string, id, PlayerName2);
            }
            }
            }
        }
        if(Count == 0)
        return SendClientMessage(playerid,COLOR_WHITE,"No hay personas en el evento!");
        else return SendClientMessage(playerid,COLOR_WHITE,string);
    }
    else return;
}
Reply


Messages In This Thread
Detect VirtualW (IsPlayerInRangePoint) - by Super_Panda - 03.10.2011, 01:54
Re: Detect VirtualW (IsPlayerInRangePoint) - by Kar - 03.10.2011, 02:02
Re: Detect VirtualW (IsPlayerInRangePoint) - by Super_Panda - 03.10.2011, 02:18
Re: Detect VirtualW (IsPlayerInRangePoint) - by Kar - 03.10.2011, 02:33
Re: Detect VirtualW (IsPlayerInRangePoint) - by Super_Panda - 03.10.2011, 02:52
Re: Detect VirtualW (IsPlayerInRangePoint) - by Kar - 03.10.2011, 03:04

Forum Jump:


Users browsing this thread: 2 Guest(s)