How do i create a "[playername] joined the server" ?
#1

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

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

use %s for the playername
Reply
#4

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

ooh, nice

nice response time

thanks guys^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)