[DUVIDA]Nicks - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [DUVIDA]Nicks (
/showthread.php?tid=306075)
[DUVIDA]Nicks -
Saw_BR - 25.12.2011
Como botar para nimguem se registrar com o sobrenome Staff ?
EX:
VC_Staff
MAS quem ja tiver conta poder logar normal
Re: [DUVIDA]Nicks -
Lуs - 25.12.2011
pawn Код:
new Nome[24];
GetPlayerName(playerid, Nome, 24);
if(!strcmp(Nome, "Staff", true) == -1)
{
if(/*VARIAVEL REGISTRADO*/ == 0)
{
SendClientMessage(playerid, "Vocк nгo estб autorizado a logar com esse nome.");
return Kick(playerid);
}
}
Re: [DUVIDA]Nicks -
[O.z]Caroline - 25.12.2011
pawn Код:
new Nome[24];
GetPlayerName(playerid, Nome, 24);
if(strfind(Nome, "staff", true) != -1)
{
if(/*VARIAVEL REGISTRADO*/ == 0)
{
SendClientMessage(playerid, "Vocк nгo estб autorizado a logar com esse nome.");
return Kick(playerid);
}
}
o Correto й
strfind e nгo
strcmp.
Re: [DUVIDA]Nicks -
Lуs - 25.12.2011
Quote:
Originally Posted by [O.z]Caroline
pawn Код:
new Nome[24]; GetPlayerName(playerid, Nome, 24); if(strfind(Nome, "staff", true) != -1) { if(/*VARIAVEL REGISTRADO*/ == 0) { SendClientMessage(playerid, "Vocк nгo estб autorizado a logar com esse nome."); return Kick(playerid); } }
o Correto й strfind e nгo strcmp.
|
Thanks.