Onplayerspawn or connect to shows ip [help] [rep+1] - 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: Onplayerspawn or connect to shows ip [help] [rep+1] (
/showthread.php?tid=331719)
Onplayerspawn or connect to shows ip [help] [rep+1] -
ProdrifterX - 05.04.2012
Heyo guys....
I wanna make when playspawn or connect to send client message like: You are connected in [herenameserver] [and here your ip adress] but dont gotta idea how to make it :S ?
thanks
rep+1
Re: Onplayerspawn or connect to shows ip [help] [rep+1] -
ViniBorn - 05.04.2012
pawn Код:
//OnPlayerConnect
new ServerName[50],VBString[128],IP[16];
GetServerVarAsString("hostname",ServerName,50);
GetPlayerIp(playerid, IP, 16);
format(VBString,sizeof VBString,"You are connected in %s [%s]",ServerName,IP);
SendClientMessage(playerid,-1,VBString);
Re: Onplayerspawn or connect to shows ip [help] [rep+1] -
Knight_Rider - 05.04.2012
Use this INC
https://sampforum.blast.hk/showthread.php?tid=296171
Re: Onplayerspawn or connect to shows ip [help] [rep+1] -
ProdrifterX - 06.04.2012
Quote:
Originally Posted by Viniborn
pawn Код:
//OnPlayerConnect new ServerName[50],VBString[128],IP[16]; GetServerVarAsString("hostname",ServerName,50); GetPlayerIp(playerid, IP, 16); format(VBString,sizeof VBString,"You are connected in %s [%s]",ServerName,IP); SendClientMessage(playerid,-1,VBString);
|
thank ya bish <3