SA-MP Forums Archive
>>>>>>>>>> Help With "Player Name Has Joined The Server!" <<<<<<<<<< - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: >>>>>>>>>> Help With "Player Name Has Joined The Server!" <<<<<<<<<< (/showthread.php?tid=94554)



>>>>>>>>>> Help With "Player Name Has Joined The Server!" <<<<<<<<<< - DeltaAirlines12 - 30.08.2009

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.


Re: >>>>>>>>>> Help With "Player Name Has Joined The Server!" <<<<<<<<<< - Akmet - 30.08.2009

https://sampwiki.blast.hk/wiki/Creating_...Leave_Messages


Re: >>>>>>>>>> Help With "Player Name Has Joined The Server!" <<<<<<<<<< - darkrider366 - 30.08.2009

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;
}


Re: >>>>>>>>>> Help With "Player Name Has Joined The Server!" <<<<<<<<<< - DeltaAirlines12 - 30.08.2009

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!


Re: >>>>>>>>>> Help With "Player Name Has Joined The Server!" <<<<<<<<<< - darkrider366 - 30.08.2009

No problem mate.


Re: >>>>>>>>>> Help With "Player Name Has Joined The Server!" <<<<<<<<<< - belzebul - 13.01.2010

thx