SA-MP Forums Archive
[GameMode] Base Roleplay Script [BEGINNERS] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Gamemode Scripts (https://sampforum.blast.hk/forumdisplay.php?fid=71)
+--- Thread: [GameMode] Base Roleplay Script [BEGINNERS] (/showthread.php?tid=401766)

Pages: 1 2 3


Re: Base Roleplay Script [BEGINNERS] - SoSuiCiDaL - 17.03.2013

Hey nice Script man!!!!!!!!!. But i got a quick question how to stop the server from restarting when I'm logging on to it?


Re: Base Roleplay Script [BEGINNERS] - JustinAn - 17.03.2013

Quote:
Originally Posted by SoSuiCiDaL
Посмотреть сообщение
Hey nice Script man!!!!!!!!!. But i got a quick question how to stop the server from restarting when I'm logging on to it?
Hmm, well. I tested it out, downloaded it with a fresh start didn't edit anything in the script. When I log in, the server doesn't restart? I'm not sure. Have you edited anything in the script? Cause I don't have this error.

EDIT: Try downloading it new, fresh start. Don't edit the script and try again.


Re: Base Roleplay Script [BEGINNERS] - fonetic - 28.03.2013

Very nice, I am beginner an this gamemode is very helpful.


Re: Base Roleplay Script [BEGINNERS] - JustinAn - 29.03.2013

Quote:
Originally Posted by fonetic
Посмотреть сообщение
Very nice, i'am beginer an this gamemode is very helpful.
Thanks!


Re: Base Roleplay Script [BEGINNERS] - J4mmyHD - 31.03.2013

When i register and stuff, and say i log out when i log in if i use the right password it says its wrong, how to fixxx?


Re: Base Roleplay Script [BEGINNERS] - donsta3000 - 04.04.2013

Hey, I am a complete noob, but... upon looking at the script I noticed a little line that you may have left out.
Код:
public IsValidName(playerid)
{
    new pname[MAX_PLAYER_NAME],underline=0;
    GetPlayerName(playerid, pname, sizeof(pname));
    if(strfind(pname,"[",true) != (-1)) return 0;
    else if(strfind(pname,".",true) != (-1)) return 0;
    else if(strfind(pname,"]",true) != (-1)) return 0;
    else if(strfind(pname,"$",true) != (-1)) return 0;
    else if(strfind(pname,"(",true) != (-1)) return 0;
    else if(strfind(pname,")",true) != (-1)) return 0;
    else if(strfind(pname,"=",true) != (-1)) return 0;
    else if(strfind(pname,"@",true) != (-1)) return 0;
    else if(strfind(pname,"1",true) != (-1)) return 0;
    else if(strfind(pname,"2",true) != (-1)) return 0;
    else if(strfind(pname,"3",true) != (-1)) return 0;
    else if(strfind(pname,"4",true) != (-1)) return 0;
    else if(strfind(pname,"5",true) != (-1)) return 0;
    else if(strfind(pname,"6",true) != (-1)) return 0;
    else if(strfind(pname,"7",true) != (-1)) return 0;
    else if(strfind(pname,"8",true) != (-1)) return 0;
    else if(strfind(pname,"9",true) != (-1)) return 0;
    new maxname = strlen(pname);
    for(new i=0; i<maxname; i++) { if(pname[i] == '_') underline ++; }
    if(underline != 1) return 0;
    pname[0] = toupper(pname[0]);
    for(new x=1; x<maxname; x++)
    {
        if(pname[x] == '_') pname[x+1] = toupper(pname[x+1]);
         else if(pname[x] != '_' && pname[x-1] != '_') pname[x] = tolower(pname[x]);
    }
    return 1;
}
I believe you have left out
Код:
    else if(strfind(pname,"0",true) != (-1)) return 0;
which would enable people to have Harry0_Foster. But as I have said, I am a noob


Re: Base Roleplay Script [BEGINNERS] - JustinAn - 22.04.2013

Quote:
Originally Posted by J4mmyHD
Посмотреть сообщение
When i register and stuff, and say i log out when i log in if i use the right password it says its wrong, how to fixxx?
Try to download the server fresh with no edits, and try it.

Quote:
Originally Posted by donsta3000
Посмотреть сообщение
Hey, I am a complete noob, but... upon looking at the script I noticed a little line that you may have left out.
Код:
public IsValidName(playerid)
{
    new pname[MAX_PLAYER_NAME],underline=0;
    GetPlayerName(playerid, pname, sizeof(pname));
    if(strfind(pname,"[",true) != (-1)) return 0;
    else if(strfind(pname,".",true) != (-1)) return 0;
    else if(strfind(pname,"]",true) != (-1)) return 0;
    else if(strfind(pname,"$",true) != (-1)) return 0;
    else if(strfind(pname,"(",true) != (-1)) return 0;
    else if(strfind(pname,")",true) != (-1)) return 0;
    else if(strfind(pname,"=",true) != (-1)) return 0;
    else if(strfind(pname,"@",true) != (-1)) return 0;
    else if(strfind(pname,"1",true) != (-1)) return 0;
    else if(strfind(pname,"2",true) != (-1)) return 0;
    else if(strfind(pname,"3",true) != (-1)) return 0;
    else if(strfind(pname,"4",true) != (-1)) return 0;
    else if(strfind(pname,"5",true) != (-1)) return 0;
    else if(strfind(pname,"6",true) != (-1)) return 0;
    else if(strfind(pname,"7",true) != (-1)) return 0;
    else if(strfind(pname,"8",true) != (-1)) return 0;
    else if(strfind(pname,"9",true) != (-1)) return 0;
    new maxname = strlen(pname);
    for(new i=0; i<maxname; i++) { if(pname[i] == '_') underline ++; }
    if(underline != 1) return 0;
    pname[0] = toupper(pname[0]);
    for(new x=1; x<maxname; x++)
    {
        if(pname[x] == '_') pname[x+1] = toupper(pname[x+1]);
         else if(pname[x] != '_' && pname[x-1] != '_') pname[x] = tolower(pname[x]);
    }
    return 1;
}
I believe you have left out
Код:
    else if(strfind(pname,"0",true) != (-1)) return 0;
which would enable people to have Harry0_Foster. But as I have said, I am a noob
Thanks for the notice.


Re: Base Roleplay Script [BEGINNERS] - tboysamp - 22.04.2013

good job man


Re: Base Roleplay Script [BEGINNERS] - JustinAn - 24.04.2013

Quote:
Originally Posted by tboysamp
Посмотреть сообщение
good job man
Thanks!


Re: Base Roleplay Script [BEGINNERS] - [L]azy[H]aze - 25.04.2013

I'm so using this for my new server, thanks man.


Re: Base Roleplay Script [BEGINNERS] - WuMing - 18.11.2013

Good Job.


Re: Base Roleplay Script [BEGINNERS] - Polarstern - 25.08.2014


hello does anyone know what is the problem?


Re: Base Roleplay Script [BEGINNERS] - JustinAn - 26.08.2014

Quote:
Originally Posted by Polarstern
Посмотреть сообщение

hello does anyone know what is the problem?
It shows you're running on 0.3x SAMP and the server's running on 0.3z, download SAMP 0.3z here.


Re: Base Roleplay Script [BEGINNERS] - Polarstern - 31.08.2014

thank you but as you see the problem is still exists
i just copy your gamemode into my gamemode folder and then rename gamemode in server cfg file!
is there anything that i didnt do?



Re: Base Roleplay Script [BEGINNERS] - fonetic - 31.08.2014

does your server is online, and maybe you dont have rp name?


Re: Base Roleplay Script [BEGINNERS] - MysteriousGaming - 03.09.2014

nice


Re: Base Roleplay Script [BEGINNERS] - DhO0m - 04.09.2014

THANX


Re: Base Roleplay Script [BEGINNERS] - LOCS - 18.11.2014

Nice, Good script for beginners


Re: Base Roleplay Script [BEGINNERS] - JustinAn - 18.11.2014

Quote:
Originally Posted by MysteriousGaming
Посмотреть сообщение
nice
Quote:
Originally Posted by DhO0m
Посмотреть сообщение
THANX
Quote:
Originally Posted by LOCS
Посмотреть сообщение
Nice, Good script for beginners
Thanks.