Showing players online?
#2

PHP код:
#include <a_samp>
#define ORANGE      0xF97804FF
new Players;
public 
OnPlayerConnect(playerid)
{
Players++;
new 
string[128];
    new 
pName[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpNamesizeof(pName));
    
format(stringsizeof(string), "*** %s has joined the server. Total Players: %d"pNamePlayers);
    
SendClientMessageToAll(ORANGEstring);
    return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
Players--;
new 
string[128];
    new 
pName[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpNamesizeof(pName));
    
format(stringsizeof(string), "*** %s has left the server. Total Players: %d"pNamePlayers);
    
SendClientMessageToAll(ORANGEstring);
   return 
1;

Reply


Messages In This Thread
Showing players online? - by RLGaming - 28.10.2012, 05:59
Respuesta: Showing players online? - by ThePhenix - 28.10.2012, 06:12
Re: Showing players online? - by RLGaming - 28.10.2012, 06:16
Respuesta: Showing players online? - by ThePhenix - 28.10.2012, 06:25
Re: Showing players online? - by Lordzy - 28.10.2012, 06:40

Forum Jump:


Users browsing this thread: 1 Guest(s)