Help me where do i put this for my server?
#1

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;
}
Reply
#2

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

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.
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)