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):
[Pomoc]Ime_Prezime
1,820
pregleda
26
postova
1. Jan. 2012.
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);
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);
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;
}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...
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...
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 🙂
1. Jan. 2012.
jel si reko umesto ovoga:
da stavim ovo:
pojasni malo lepo napisi nisam te razumeo nista probao sam nesto ali nerazumem te
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
1. Jan. 2012.
OMFG! stock staviš gdje oćeš kod nekih public i nestaviš stock već CheckName(playerid); u onplayerconnect umjesto onoga
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.
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.
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 !
1. Jan. 2012.
ja sam umesto ovoga:
ubacio to sto si reko:
i nece da compile
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
1. Jan. 2012.
ubacio sam ovo tvoje:
Umesto moga:
i nece da compile
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
1. Jan. 2012.
ja obrisem moje ubacim ono tvoje i nece da compile ne izbaci errore nego nece da compile samo mi umanji pawno
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