Onplayerspawn or connect to shows ip [help] [rep+1]
#1

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

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

Use this INC https://sampforum.blast.hk/showthread.php?tid=296171
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)