Phone Numbers
#10

What you mean like this?

Top Of Script
pawn Код:
new JoinCounter = 0;
OnPlayerConnect
pawn Код:
JoinCounter = JoinCounter + 1;
    dini_IntSet("count.ini", "Connections", JoinCounter);
    new string[128];
    new UniquePlayerNumber[MAX_PLAYERS];
    UniquePlayerNumber[playerid] = JoinCounter;
    format(string,sizeof(string),"You are player number %d.", UniquePlayerNumber[playerid]);
    SendClientMessage(playerid, COLOR_WHITE, string);
OnGameModeInit
pawn Код:
if(fexist("count.ini"))
    {
      JoinCounter = dini_Int("count.ini", "Connections");
    }
    else
    {
      dini_Create("count.ini");
      dini_IntSet("count.ini", "Connections", 0);
    }
Reply


Messages In This Thread
Phone Numbers - by Satalone - 19.02.2010, 17:53
Re: Phone Numbers - by Norn - 19.02.2010, 17:54
Re: Phone Numbers - by Satalone - 19.02.2010, 18:07
Re: Phone Numbers - by Norn - 19.02.2010, 18:09
Re: Phone Numbers - by Satalone - 19.02.2010, 18:12
Re: Phone Numbers - by Norn - 19.02.2010, 18:19
Re: Phone Numbers - by Satalone - 19.02.2010, 18:22
Re: Phone Numbers - by Norn - 19.02.2010, 18:24
Re: Phone Numbers - by Satalone - 19.02.2010, 18:28
Re: Phone Numbers - by Norn - 19.02.2010, 18:33

Forum Jump:


Users browsing this thread: 2 Guest(s)