[Pomoc]Ime_Prezime

Započeo (BSL)MasteR
•1. Jan. 2012.
1,832
pregleda
26
postova
(BSL)MasteR
4
Enforcer
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
1. Jan. 2012.
Skripta koju koristim:FactionGame Edit
Detaljan opis problema:Kako da stavim da samo admini mogu da udju sa jednim imenom da ne moraju ime_prezime a igraci dobiju kick ako ne stave ime_prezime
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
troll3d
4
Made Man
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
1. Jan. 2012.
Pretpostavljajući da je FactionGame edit GF-a dodaj ovaj stock za provjeru imena

stock CheckName(playerid)
{
  new str,name; GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  if(strfind(name,"_") == -1) {
  if(PlayerInfo<1) {
  Kick(playerid);
  format(str,sizeof str,"%s je kikan zbog loÅ¡eg imena",name);
  SendClientMessageToAll(-1,str);}}
  return true;
}

I pod OnPlayerConnect staviš

CheckName(playerid);
(BSL)MasteR
4
Enforcer
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
1. Jan. 2012.
ne kontam vas bas evo deo skripte pa mi vi to malo pojasnite:
    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;
}
troll3d
4
Made Man
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
1. Jan. 2012.
   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;
}

taj dio izbaci i ubaci ovo moje CheckName(playerid);

makar neznam što će ti pri registraciji zato što kada se regaš admin lvl 0 si , tako da...
troll3d
4
Made Man
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
1. Jan. 2012.
Sve sam ti napisao , da uključiÅ¡ malo mozak i nebudeÅ¡ lijen skužio bi odma fino , lijepo pročitaj oba moja posta i sve ćeÅ¡ skužiti 🙂
(BSL)MasteR
4
Enforcer
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
1. Jan. 2012.
jel si reko umesto ovoga:
    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;
}

da stavim ovo:
stock CheckName(playerid)  
{ 
  new str,name; GetPlayerName(playerid,name,MAX_PLAYER_NAME); 
  if(strfind(name,"_") == -1) { 
  if(PlayerInfo<1) { 
  Kick(playerid); 
  format(str,sizeof str,"%s je kikan zbog loÅ¡eg imena",name); 
  SendClientMessageToAll(-1,str);}} 
  return true; 
} 

pojasni malo lepo napisi nisam te razumeo nista probao sam nesto ali nerazumem te
troll3d
4
Made Man
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
1. Jan. 2012.
OMFG! stock staviš gdje oćeš kod nekih public i nestaviš stock već CheckName(playerid); u onplayerconnect umjesto onoga
(BSL)MasteR
4
Enforcer
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
1. Jan. 2012.
Obijasni mi gde da ubacim da admini mogu da udju sa jednim imenom da ih ne kikuje server a igraci moraju Ime_Prezime inace ih kikuje server.
troll3d
4
Made Man
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
1. Jan. 2012.
(BSL)MasteR wrote on January 1, 2012, 3:33 am:
Obijasni mi gde da ubacim da admini mogu da udju sa jednim imenom da ih ne kikuje server a igraci moraju Ime_Prezime inace ih kikuje server.


Pa jesam ti objasnio milijun puta kakav mozak imaš kad neznaš ni iskopirati nešto što ti je gotovo dano omg , kani se ti skriptanja idi pecaj.
Nxidza
5
Crime Lord
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
1. Jan. 2012.
(BSL)MasteR wrote on January 1, 2012, 3:33 am:
Obijasni mi gde da ubacim da admini mogu da udju sa jednim imenom da ih ne kikuje server a igraci moraju Ime_Prezime inace ih kikuje server.

A bre dao ti je i on i vanilla,si ti corav ili sta ? Mislim vise jbt sve hoces na gotovo !
(BSL)MasteR
4
Enforcer
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
1. Jan. 2012.
meni treba da ne kikuje admine
(BSL)MasteR
4
Enforcer
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
1. Jan. 2012.
ja sam umesto ovoga:
    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;
}

ubacio to sto si reko:
if(PlayerInfo >= 1) { }
else (!IsValidName(playerid))
{
    SendClientMessage(playerid,-1,"Vase ime mora biti u RolePlay formatu : Ime_Prezime");
    Kick(playerid);
}

i nece da compile
(BSL)MasteR
4
Enforcer
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
1. Jan. 2012.
ubacio sam ovo tvoje:
if(PlayerInfo >= 1) { }
else (!IsValidName(playerid))
{
    SendClientMessage(playerid,-1,"Vase ime mora biti u RolePlay formatu : Ime_Prezime");
    Kick(playerid);
}

Umesto moga:
  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;
}

i nece da compile
(BSL)MasteR
4
Enforcer
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
1. Jan. 2012.
ja obrisem moje ubacim ono tvoje i nece da compile ne izbaci errore nego nece da compile samo mi umanji pawno
(BSL)MasteR
4
Enforcer
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
1. Jan. 2012.
jel moze nekako da se napravi da naprimer kome ja dozvolim da moze da udje sa jednim imenom to jest podesim mu ja ime kao naprimer specijalno ime

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha