SA-MP Forums Archive
GetPlayerID - 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: GetPlayerID (/showthread.php?tid=501114)



GetPlayerID - Extraordinariness - 16.03.2014

I don't understand GetPlayerID.
Can I request?
Something like this on OnPlayerConnect:
Код:
Player(12) has been connected to the server.
I don't know how to put the id numbah on the OnPlayerConnect.
How do I do this?

EDIT: Also in text.


Re: GetPlayerID - Abagail - 16.03.2014

pawn Код:
new string[128];
format(string, sizeof(string), "%s(%d) has joined the server.", GetPlayerName(playerid), playerid);
SendClientMessageToAll(-1, string);



Re: GetPlayerID - Extraordinariness - 16.03.2014

thanks. repped
Oh, btw, how on OnPlayerText? I've never used that callback


Re: GetPlayerID - Guest4390857394857 - 16.03.2014

Quote:
Originally Posted by Extraordinariness
Посмотреть сообщение
thanks. repped
Oh, btw, how on OnPlayerText? I've never used that callback
you can't rep unless you have 50 post!


Re: GetPlayerID - Extraordinariness - 16.03.2014

I can rep already -,-


Re: GetPlayerID - Extraordinariness - 16.03.2014

Sure, ******. thanks.

Y_More