Server Joins and Server Leaves
#1

How would i go about adding to my script about when people join/leave it sends an text in chat?
Reply
#2

pawn Код:
public OnPlayerConnect(playerid)
{
new string[128], name[24];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Player %s connected.", name);
SendClientMessageToAll(-1, string);
}
Same for OnPlayerDisconnect.
Reply
#3

ah thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)