[Pomoć] Ime_Prezime ...

Započeo Obrisan korisnik
12. Feb. 2012. Zaključano
1,737
pregleda
8
postova
Deleted User
Obrisan korisnik
12. Feb. 2012.
Skripta koju koristim: Moj ...
Detaljan opis problema: Kako da napravim da mogu samo ja sa imenom Vegas. ulaziti ?
Dio skripte: Evo OnPlayerConnect
public OnPlayerConnect(playerid)
{
//------------------------------------------------------------------------------
    new plname;
    GetPlayerName(playerid, plname, sizeof(plname));
if(Security != 0)
{
    SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
    Kick(playerid);
    return 1;
}
    new namestring = strfind(plname, "_", true);
if(namestring == -1)
{
SendClientMessage(playerid, COLOR_YELLOW2, "Imigracioni Odsek: Vase ime nije prihvatljivo.");
SendClientMessage(playerid, COLOR_YELLOW2, "Podsetnik: Vase ime mora biti u formatu Ime_Prezime.");
Kick(playerid);
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):
bump
4
Enforcer
12. Feb. 2012.
public OnPlayerConnect(playerid)
{
//------------------------------------------------------------------------------
    new plname;
    GetPlayerName(playerid, plname, sizeof(plname));
if(Security != 0)
{
    SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
    Kick(playerid);
    return 1;
}

ovako stavi,izbaciva ce ti erora ovde ih postaj
Dr.Nino
5
Underboss
13. Feb. 2012.
Impulse! wrote on February 12, 2012, 10:23 pm:
public OnPlayerConnect(playerid)
{
//------------------------------------------------------------------------------
    new plname;
    GetPlayerName(playerid, plname, sizeof(plname));
if(Security != 0)
{
    SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
    Kick(playerid);
    return 1;
}

ovako stavi,izbaciva ce ti erora ovde ih postaj

sta mu dajes ako ce error izbacit ?
stavi ovo u OnPlayerConnect

  new namestring = strfind(plname, "_", true);
if(namestring == -1)
{
SendClientMessage(playerid, COLOR_YELLOW2, "Centar za imigraciju !");
SendClientMessage(playerid, COLOR_YELLOW2, "Ime mora biti u formatu Ime_Prezime.");
Kick(playerid);
return 1;
}
Deleted User
Obrisan korisnik
13. Feb. 2012.
Quote from February 12, 2012, 10:23 pm:
public OnPlayerConnect(playerid)
{
//------------------------------------------------------------------------------
    new plname;
    GetPlayerName(playerid, plname, sizeof(plname));
if(Security != 0)
{
    SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
    Kick(playerid);
    return 1;
}

ovako stavi,izbaciva ce ti erora ovde ih postaj

sta mu dajes ako ce error izbacit ?
stavi ovo u OnPlayerConnect

  new namestring = strfind(plname, "_", true);
if(namestring == -1)
{
SendClientMessage(playerid, COLOR_YELLOW2, "Centar za imigraciju !");
SendClientMessage(playerid, COLOR_YELLOW2, "Ime mora biti u formatu Ime_Prezime.");
Kick(playerid);
return 1;
}

A gdje da upišem da samo ja sa nickom "Vegas." mogu ulaziti na server ?
Paul McCartney
4
Enforcer
13. Feb. 2012.
new namestring = strfind(plname, "Vegas", true);
?
Deleted User
Obrisan korisnik
13. Feb. 2012.
Paul McCartney wrote on February 13, 2012, 11:31 am:
new namestring = strfind(plname, "Vegas", true);
?
Respect for you 😄 ! Pomogao si mi, hvala i ostalima !!
nemanjatesic96
4
Shot Caller
13. Feb. 2012.
Probaj ovako  😁
    new plname;
    GetPlayerName(playerid, plname, sizeof(plname));
if(Security != 0)
{
    SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
    Kick(playerid);
    return 1;
}
if(strcmp(plname, "Vegas",false))
{
    new namestring = strfind(plname, "_", true);
if(namestring == -1)
{
SendClientMessage(playerid, COLOR_YELLOW2, "Vase ime nije prihvatljivo.");
SendClientMessage(playerid, COLOR_YELLOW2, "Vase ime mora biti u formatu Ime_Prezime.");
Kick(playerid);
return 1;
}
}
Deleted User
Obrisan korisnik
13. Feb. 2012.
nemanjatesic96 wrote on February 13, 2012, 2:39 pm:
Probaj ovako  😁
    new plname;
    GetPlayerName(playerid, plname, sizeof(plname));
if(Security != 0)
{
    SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
    Kick(playerid);
    return 1;
}
if(strcmp(plname, "Vegas",false))
{
    new namestring = strfind(plname, "_", true);
if(namestring == -1)
{
SendClientMessage(playerid, COLOR_YELLOW2, "Vase ime nije prihvatljivo.");
SendClientMessage(playerid, COLOR_YELLOW2, "Vase ime mora biti u formatu Ime_Prezime.");
Kick(playerid);
return 1;
}
}
Uradio sam već 😄 ... BTW Hvala !

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha