HELP Message : .... Has joined the server
#1

How do i make a message
like

Jack_Harrison (id:1) Has Joined The Server

And were do i need to put it ??
Reply
#2

No one
Reply
#3

pawn Код:
public OnPlayerConnect(playerid)
{
new str[256],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(str,256,"( ! ) %s Has Joined Server !",name);
SendClientMessageToAll(-1,str);
return 1;
}
and for disconnect
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new name[MAX_PLAYER_NAME],string[256];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
switch(reason)
{
case 0: format(string,sizeof string,"( TimeOut ) %s left the server !",name);
case 1: format(string,sizeof string,"( Quit ) %s left the server !",name);
case 2: format(string,sizeof string,"( Kick/Ban ) %s left the server !",name);
}
SendClientMessageToAll(-1,string);
return 1;
}
Reply
#4

pawn Код:
public OnPlayerConnect( playerid )
{
    new
        string[ 64 ],
        name[ MAX_PLAYER_NAME ]
    ;
    GetPlayerName( playerid, name, MAX_PLAYER_NAME );
    format( string, sizeof( string ), "%s (id:%d) Has Joined The Server", name, playerid );
    SendClientMessageToAll( 0xFFFF00FF, string );
    return 1;
}
Reply
#5

thx This worked
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)