Skripta koju koristim:Ne znam
Detaljan opis problema:Ne znam kako da promenim ime Admina a da me sevrver ne kikuje
Dio skripte:Ne znam
Neke slike/video za lakse dobivanje pomoci(neobavezno):/
[Pomoc]"Marko_Markovic" da bude "Marko"
367
pregleda
7
postova
13. Jul 2013.
stock GetPlayersName(playerid)
{
new playersName;
GetPlayerName(playerid, playersName, MAX_PLAYER_NAME);
for(new i = 0; i < strlen(playersName); i++)
{
if(playersName == '_') playersName = ' ';
}
return playersName;
}13. Jul 2013.
Slade wrote on July 13, 2013, 3:10 pm:
stock GetPlayersName(playerid)
{
new playersName;
GetPlayerName(playerid, playersName, MAX_PLAYER_NAME);
for(new i = 0; i < strlen(playersName); i++)
{
if(playersName == '_') playersName = ' ';
}
return playersName;
}Pro skripteru....
http://balkan-samp.com/forum/index.php?topic=69578.0
i najgore je to Å¡to postoji puno bolji naÄin da uopće ni ne trebaÅ¡ koristiti petlju, koriÅ¡tenjem strfind funkcije....
14. Jul 2013.
Quote from July 14, 2013, 3:29 am:
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, "{FFFFFF}[{F81414}FantasyAS{FFFFFF}] {F81414}Vase ime nije prihvatljivo.");
SendClientMessage(playerid, COLOR_YELLOW2, "{FFFFFF}[{F81414}FantasyAS{FFFFFF}] {F81414}Vase ime mora biti u formatu {FFFFFF}Ime_Prezime.");
Kick(playerid);
return 1;
}Ovo je iz moga moda tako je i tebi koji god mod korisis ti samo napravi ovo
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);
new kurcina = strfind(plname, "Benac", true);
if(kurcina == -1 && namestring == -1)
{
SendClientMessage(playerid, COLOR_YELLOW2, "{FFFFFF}[{F81414}FantasyAS{FFFFFF}] {F81414}Vase ime nije prihvatljivo.");
SendClientMessage(playerid, COLOR_YELLOW2, "{FFFFFF}[{F81414}FantasyAS{FFFFFF}] {F81414}Vase ime mora biti u formatu {FFFFFF}Ime_Prezime.");
Kick(playerid);
return 1;
}Skuzio ? 🙂
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava