SA-MP Forums Archive
Connecting, Get name - 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: Connecting, Get name (/showthread.php?tid=187830)



Connecting, Get name - HotRod - 04.11.2010

Sup, i need help with getting a players name.

I need to make a connect message for example "Player has joined the server"

Can someone tell me the whole code because i can't get a playersname which is annoying less i think i could of done it with a string maybe.


Re: Connecting, Get name - joeri55 - 04.11.2010

http://forum.sa-mp.com/showthread.ph...t=join+message


Re: Connecting, Get name - Toni - 04.11.2010

https://sampwiki.blast.hk/wiki/OnPlayerConnect


Re: Connecting, Get name - <Weponz> - 04.11.2010

Under
Код:
OnPlayerConnect
Put
Код:
        new string[85],pname[24];
        GetPlayerName(playerid,pname,24);
        format(string,sizeof(string),"*** %s Has Joined The Server! (ID:%d)",pname,playerid);
        SendClientMessageToAll(RED,string);



Re: Connecting, Get name - HotRod - 04.11.2010

Quote:
Originally Posted by <Weponz>
Посмотреть сообщение
Under
Код:
OnPlayerConnect
Put
Код:
        new string[85],pname[24];
        GetPlayerName(playerid,pname,24);
        format(string,sizeof(string),"*** %s Has Joined The Server! (ID:%d)",pname,playerid);
        SendClientMessageToAll(RED,string);

Cheers bro.


Re: Connecting, Get name - <Weponz> - 04.11.2010

U want the Dissconnects ones? For Kick/Crash/Quit?


Re: Connecting, Get name - HotRod - 05.11.2010

I allready found some, but thanks anyway. Gl on you're server.