SA-MP Forums Archive
Help me where do i put this for my server? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Help me where do i put this for my server? (/showthread.php?tid=255712)



Help me where do i put this for my server? - Ang916 - 16.05.2011

where do i put this to put on my samp serve to show when and who logs in?

public OnPlayerConnect(playerid)
{
new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s has joined the server", pname);
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}


Re: Help me where do i put this for my server? - Medal Of Honor team - 17.05.2011

This is not your own website. You can't make millions of same topics


Re: Help me where do i put this for my server? - Elbert_Hutchinson - 17.05.2011

You put the...
pawn Код:
new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s has joined the server", pname);
SendClientMessageToAll(0xAAAAAAAA, string);
... part in your gamemode or filterscript under the OnPlayerConnect callback.


Re: Help me where do i put this for my server? - alpha500delta - 17.05.2011

Quote:
Originally Posted by Elbert_Hutchinson
Посмотреть сообщение
You put the...
pawn Код:
new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s has joined the server", pname);
SendClientMessageToAll(0xAAAAAAAA, string);
... part in your gamemode or filterscript under the OnPlayerConnect callback.
He did, he just asks where to place OnPlayerConnect. But doesn't matter now, he seems banned