SA-MP Forums Archive
How do i create a "[playername] 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: How do i create a "[playername] joined the server" ? (/showthread.php?tid=73127)



How do i create a "[playername] joined the server" ? - Coolman12 - 12.04.2009

How do i create a message informing the users about a playing joining and leaving?

i've tried with different stuff from this forum, but none of them really works the way i want. :/

it can't be too hard, i hope! :P


and also, how do i make an admin command, which kicks, etc a player from the server?

Thanks


Re: How do i create a "[playername] joined the server" ? - GanG$Ta - 12.04.2009

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

default admin commands(includes kick and ban):
https://sampwiki.blast.hk/wiki/Controlli...#RCON_Commands

if you want more custom admin commands use search.



Re: How do i create a "[playername] joined the server" ? - Drift_King786 - 12.04.2009

use %s for the playername


Re: How do i create a "[playername] joined the server" ? - Klutty - 12.04.2009

pawn Code:
new string[128];
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,playername,sizeof(playername));
    format(string, sizeof(string), "%s has joined the server!",playername);
    SendClientMessageToAll(*color here*,string);
That should do it.

Cheers,

Klutty.


Re: How do i create a "[playername] joined the server" ? - Coolman12 - 12.04.2009

ooh, nice

nice response time

thanks guys^^