How do I make the player serial number?
#8

Quote:
Originally Posted by HY
Посмотреть сообщение
At the top of script:

pawn Код:
new Registered;
Where do you have register system add:

pawn Код:
Registered++;
Then you can check how many players registered.

pawn Код:
CMD:registered(playerid, params[])
{
    new string[3];
    format(string, sizeof(string), "%d", Registered);
    SendClientMessage(playerid, -1, string);
    return 1;
}
Of course, you can optimize it by savin' this in a file, etc.
You're also going to need to define Registered with what you have in the file.
Because doing it like you did will just reset after the server restarts.
Reply


Messages In This Thread
How do I make the player serial number? - by _Application_ - 13.12.2014, 12:06
Re: How do I make the player serial number? - by Lordzy - 13.12.2014, 12:10
Re: How do I make the player serial number? - by Vince - 13.12.2014, 13:05
Re: How do I make the player serial number? - by _Application_ - 13.12.2014, 13:44
Re: How do I make the player serial number? - by Djole1337 - 13.12.2014, 13:48
Re: How do I make the player serial number? - by _Application_ - 13.12.2014, 16:07
Re: How do I make the player serial number? - by HY - 13.12.2014, 16:18
Re: How do I make the player serial number? - by Ox1gEN - 13.12.2014, 17:44
Re: How do I make the player serial number? - by _Application_ - 13.12.2014, 21:33

Forum Jump:


Users browsing this thread: 1 Guest(s)