pcounter - count all players online -
sciman001 - 19.03.2011
ok, this is a suuuuuper simple "include" that i made in about 5 minutes. I am only releasing it because im a noob.
Anyway, here it is:
PCounter
Functions:
CountPlayersOnline();
Example:
pawn Код:
#include <a_samp>
#include <pcounter>
main()
{
print("\n----------------------------------");
print(" testcrap");
print("----------------------------------\n");
}
public OnFilterScriptInit()
{
SetTimer("count", 7500, true);
}
forward count();
public count()
{
new num = CountPlayersOnline();
printf("players online: %i", num);
}
Download:
http://solidfiles.com/d/05305/
Pastebin:
http://pastebin.com/ZHS54UTr
THANKZ!
Re: pcounter - count all players online -
[ProX]BlueFire - 19.03.2011
nice =D
i will use it
Question:
how do i make it count the number of online players when som1 connect to the server?
Re: pcounter - count all players online -
sciman001 - 19.03.2011
thanks! is it really use ful at all though?
Re: pcounter - count all players online -
DeathOnaStick - 19.03.2011
Pastebin link would be cool.
Re: pcounter - count all players online -
sciman001 - 19.03.2011
how i get a pastebin account? press create account?
ill try to get pastebin.
Re: pcounter - count all players online -
Venice - 19.03.2011
Simple and Nice
Re: pcounter - count all players online -
sciman001 - 19.03.2011
thanks
Re: pcounter - count all players online -
[ProX]BlueFire - 19.03.2011
answer me!!(the first reply)
Re: pcounter - count all players online -
sciman001 - 19.03.2011
so... what do you think of it?........................
Re: pcounter - count all players online - XFlawless - 19.03.2011
Fail Much ?
Re: pcounter - count all players online -
sciman001 - 19.03.2011
ik.
i failedededededed
Re: pcounter - count all players online -
ricardo178 - 19.03.2011
cool
Re: pcounter - count all players online -
[ProX]BlueFire - 19.03.2011
Question:
how do i make it count the number of online players when som1 connect to the server?
Re: pcounter - count all players online -
[ProX]BlueFire - 19.03.2011
Quote:
Originally Posted by Meyer
|
lol....
(sorry for dueble posting)
Re: pcounter - count all players online -
sciman001 - 19.03.2011
under OnPlayerConnect(playerid)
put:
new num = CountPlayersOnline();
printf("players online: %i", num);
and i highly recomend you put it under OnPlayerDisconnect(playerid, reason) too!!!
Re: pcounter - count all players online -
sciman001 - 19.03.2011
Quote:
Originally Posted by [ProX]BlueFire
Question:
how do i make it count the number of online players when som1 connect to the server?
|
pawn Код:
public OnPlayerConnect(playerid)
{
new num = CountPlayersOnline();
printf("players online: %i", num);
}
public OnPlayerDisconnect(playerid)
{
new num = CountPlayersOnline();
printf("players online: %i", num);
}
Re: pcounter - count all players online -
Kwarde - 19.03.2011
Quote:
Originally Posted by [ProX]BlueFire
nice =D
i will use it
Question:
how do i make it count the number of online players when som1 connect to the server?
|
Just use the function. It counts online players. When you use the functions, it checks for the online players. When you're online, you're connected.
Re: pcounter - count all players online -
sciman001 - 19.03.2011
Quote:
Originally Posted by Kwarde
Just use the function. It counts online players. When you use the functions, it checks for the online players. When you're online, you're connected.
|
exactly!
Re: pcounter - count all players online -
[ProX]BlueFire - 19.03.2011
k thx =D
Re: pcounter - count all players online -
sciman001 - 19.03.2011