[Pomoc]"Marko_Markovic" da bude "Marko"

Započeo TonyP
13. Jul 2013. Zaključano
367
pregleda
7
postova
TonyP
2
Rookie
13. Jul 2013.
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):/
Djidja
2
Rookie
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;
}
taft
5
Underboss
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....
TonyP
2
Rookie
13. Jul 2013.
i Gde se to stavlja ?
Djidja
2
Rookie
13. Jul 2013.
TonyP wrote on July 13, 2013, 3:17 pm:
i Gde se to stavlja ?


to je stock, stavi ga skroz na kraj skripte...
TonyP
2
Rookie
13. Jul 2013.
i gde se upisuje to Marko_Markovic a gde samo Marko ?
BocaBajrovic1995
5
Kingpin
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 ? 🙂
I sta si mu sa tim sad pojasnio😕 Postaj tvoj OnPlayerConnect ovde

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha