What is problem in this one - 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: What is problem in this one (
/showthread.php?tid=620712)
Nick Change to BannedPlayer -
Lloyde - 02.11.2016
Код:
----------------------------------
[16:24:05] MetroCity Roleplay PH
[16:24:05] ----------------------------------
[16:24:05] Number of vehicle models: 111
[16:24:06] Total SprayTags loaded: 1
[16:29:48] [connection] 192.168.1.19:59364 requests connection cookie.
[16:29:49] [connection] incoming connection: 192.168.1.19:59364 id: 0
[16:29:49] [join] Chato_Santana has joined the server (0:192.168.1.19)
[16:30:02] [cmd] [Chato Santana]: /toggc
[16:30:03] [cmd] [Chato Santana]: /ww`
[16:30:07] [alt tab vw debug] tabvw: 0 | tabvw type: 0
[16:30:07] [part] Chato_Santana has left the server (0:2)
[16:31:24] [connection] 192.168.1.19:60784 requests connection cookie.
[16:31:25] [connection] incoming connection: 192.168.1.19:60784 id: 0
[16:31:26] [join] Chato_Santana has joined the server (0:192.168.1.19)
[16:31:43] [alt tab vw debug] tabvw: 0 | tabvw type: 0
[16:31:43] [part] Chato_Santana has left the server (0:2)
Re: What is problem in this one -
justjamie - 02.11.2016
I see no problem.
What is it?
Re: What is problem in this one -
Lloyde - 02.11.2016
this one sir i cant log in always closed server connection
Код:
----------------------------------
[05:10:40] MetroCity Roleplay PH
[05:10:40] ----------------------------------
[05:10:40] Number of vehicle models: 111
[05:11:37] [connection] 112.200.73.145:64975 requests connection cookie.
[05:11:38] [connection] incoming connection: 112.200.73.145:64975 id: 0
[05:11:39] [join] Vladimir_Hercov has joined the server (0:112.200.73.145)
[05:11:39] [nick] Vladimir_Hercov nick changed to BannedPlayer
[05:11:39] [part] BannedPlayer has left the server (0:2)
Re: What is problem in this one -
Lloyde - 02.11.2016
pawn Код:
stock InvalidNameCheck(playerid)
{
new
szPlayerName[MAX_PLAYER_NAME],
arrForbiddenNames[][] = {
"com1", "com2", "com3", "com4",
"com5", "com6", "com7", "com8",
"com9", "lpt4", "lpt5", "lpt6",
"lpt7", "lpt8", "lpt9", "nul",
"clock$", "aux", "prn", "con",
"InvalidNick", "BannedPlayer"
},
iLength,
i;
GetPlayerName(playerid, szPlayerName, sizeof(szPlayerName));
iLength = strlen(szPlayerName);
while(i < sizeof(arrForbiddenNames)) if(strcmp(arrForbiddenNames[i++], szPlayerName, true) == 0) {
SetPlayerName(playerid, "InvalidNick");
SendClientMessage(playerid, COLOR_NEWS, "You have been kicked for using an invalid name.");
Kick(playerid);
return 0;
}
if(szPlayerName[iLength - 1] == '_' || szPlayerName[0] == '_' || strfind(szPlayerName, "_", false) == -1)
{
SendClientMessage(playerid, COLOR_NEWS, "You have been kicked for failing to connect with a role play name (i.e. John_Smith).");
SetPlayerName(playerid, "InvalidNick");
Kick(playerid);
return 0;
}
return 1;
}
Re: What is problem in this one -
Lloyde - 03.11.2016
Sir anyone can help me about this
Re: What is problem in this one -
SuperTramp - 06.02.2017
Ayun sa nakikita ko, ang iyong account ay na "Banned" kahit mag nick changed kapa!