Server Joins and Server Leaves - 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)
+--- Thread: Server Joins and Server Leaves (
/showthread.php?tid=562030)
Server Joins and Server Leaves -
Thoma - 06.02.2015
How would i go about adding to my script about when people join/leave it sends an text in chat?
Re: Server Joins and Server Leaves -
HazardouS - 06.02.2015
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.
Re: Server Joins and Server Leaves -
Thoma - 06.02.2015
ah thanks