18.10.2012, 18:57
PHP код:
public OnPlayerConnect(playerid)
{
new Str[ 128 ] , Nome[ MAX_PLAYER_NAME ] ;
GetPlayerName(playerid , Nome , sizeof( Nome ) ) ;
if( PlayerInfo[ playerid ][ pAdmin ] >= 1 ) {
format( Str , sizeof( Str ) , "[Admin] (%d) %s entrou no servidor." , playerid, Nome ) ;
SendClientMessageToAll( -1 , Str ) ; }
if( PlayerInfo[ playerid ][ pVIP ] >= 1 ) {
format( Str , sizeof( Str ) , "[VIP] (%d) %s entrou no servidor." , playerid, Nome ) ;
SendClientMessageToAll( -1 , Str ) ; }
return 1;
}