>>>>>>>>>> Help With "Player Name Has Joined The Server!" <<<<<<<<<<
#1

Can someone please make me a simple FS that says
like if someones name is Joe, The when they join the server, it sends a message to all the players
saying "Joe Has Joined The Server!" Thanks.
Reply
#2

https://sampwiki.blast.hk/wiki/Creating_...Leave_Messages
Reply
#3

Quote:
Originally Posted by DeltaAirlines12
Can someone please make me a simple FS that says
like if someones name is Joe, The when they join the server, it sends a message to all the players
saying "Joe Has Joined The Server!" Thanks.
public OnPlayerConnect(playerid)
{
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s has joined the server.", pName);
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}
Reply
#4

Quote:
Originally Posted by darkrider366
Quote:
Originally Posted by DeltaAirlines12
Can someone please make me a simple FS that says
like if someones name is Joe, The when they join the server, it sends a message to all the players
saying "Joe Has Joined The Server!" Thanks.
public OnPlayerConnect(playerid)
{
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s has joined the server.", pName);
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}
Thanks!
Reply
#5

No problem mate.
Reply
#6

thx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)