Connecting, Get name
#1

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

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

https://sampwiki.blast.hk/wiki/OnPlayerConnect
Reply
#4

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);
Reply
#5

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

U want the Dissconnects ones? For Kick/Crash/Quit?
Reply
#7

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


Forum Jump:


Users browsing this thread: 3 Guest(s)