how to make a command which...
#3

pawn Код:
enum data
{
    PlayersConnected,
    PlayersRegistered,
    TotalMessages
}

new sData [] [data];
new SERV;

public OnPlayerConnect(playerid)
{
    sData[SERV][PlayersConneted]++;
}

stock  GetTotalPlayerRegistered()
{
    new Reg;
    for(new i = -1, i < MAX_PLAYERS; i++)
    if(/*ur player registervariable*/ == /*ur check*/)
    {
        return i;
    }
}

// below OnPlayerText:
    sData[SERV][otalMessages]++;
havent checked, only get 3 things.
Reply


Messages In This Thread
how to make a command which... - by SRB - 27.12.2013, 00:07
Re: how to make a command which... - by Miguel - 27.12.2013, 06:41
Re: how to make a command which... - by newbie scripter - 27.12.2013, 07:13
Re: how to make a command which... - by SRB - 27.12.2013, 12:22
Re: how to make a command which... - by SRB - 27.12.2013, 13:19
Re: how to make a command which... - by Miguel - 27.12.2013, 16:34
Re: how to make a command which... - by SRB - 27.12.2013, 17:22
Re: how to make a command which... - by Miguel - 27.12.2013, 17:56
Re: how to make a command which... - by SRB - 27.12.2013, 19:31
Re: how to make a command which... - by SRB - 28.12.2013, 15:00

Forum Jump:


Users browsing this thread: 1 Guest(s)