[GameMode] The ReBorn Dudes Freeroam/Roleplay Script
#21

good job !
Reply
#22

Hey bro, I am having issues with the /ban, /br and the /unban commands and can't figure it out. It keeps on saying "Player didn't found in database."

pawn Код:
CMD:unban(playerid, params[])
{
    if(PlayerInfo[playerid][AdminLevel] >= 2)
    {
        new PlayerFile[50],string[128];
        format(PlayerFile, sizeof(PlayerFile), "Saves/%s.ini", params);
        if(!strlen(params)) return SendClientMessage(playerid, COLOR_GREY, "/unban [playername]");
        if(!dini_Exists(PlayerFile)){SendClientMessage(playerid, COLOR_GREY, "No such player found in the database.");}
        else
        {
            if(dini_Int(PlayerFile,"Banned")==0)return SendClientMessage(playerid,-1,"That Player is already unbanned");
            dini_IntSet(PlayerFile, "Banned", 0);
            SendClientMessage(playerid, COLOR_WHITE, "Account Unbanned");
            format(string,sizeof(string),"unbanip %s",dini_Get(PlayerFile,"IP"));
            SendRconCommand(string);
        }
    }else return 0;
    return 1;
}
CMD:ban(playerid, params[])
{
    if(PlayerInfo[playerid][AdminLevel] >= 3)
    {
        new PlayerFile[50];
        format(PlayerFile, sizeof(PlayerFile), "Saves/%s.ini", params);
        if(!strlen(params)) return SendClientMessage(playerid, COLOR_GREY, "/oban [playername]");
        if(!dini_Exists(PlayerFile)) {SendClientMessage(playerid, COLOR_GREY, "No such player found in the database.");}
        else
        {
            if(dini_Int(PlayerFile,"Banned")==1)return SendClientMessage(playerid,-1,"That Player is already banned");
            dini_IntSet(PlayerFile, "Banned", 1);
            SendClientMessage(playerid, COLOR_WHITE, "Account Banned");}
    }else return 0;
    return 1;
}
//==============================================================================
CMD:br(playerid, params[])
{
    if(PlayerInfo[playerid][AdminLevel] >= 2)
    {
        new PlayerFile[50];
        format(PlayerFile, sizeof(PlayerFile), "Saves/%s.ini", params);
        if(!strlen(params)) return SendClientMessage(playerid, COLOR_GREY, "/banreason [playername]");
        if(!dini_Exists(PlayerFile)) {SendClientMessage(playerid, COLOR_GREY, "No such player found in the database.");}
        if(dini_Int(PlayerFile,"Banned")==1)
        {
            new str[256];
            format(str,sizeof(str),"\"%s\" was banned for \"%s\" by \"%s\"",params,dini_Get(PlayerFile,"Reason"),dini_Get(PlayerFile,"Banner"));
            SendClientMessage(playerid, COLOR_WHITE, str);
        }else return SendClientMessage(playerid,-1,"That Player is not banned");
    }else return 0;
    return 1;
}
Reply
#23

Quote:
Originally Posted by Goldilox
Посмотреть сообщение
Hey bro, I am having issues with the /ban, /br and the /unban commands and can't figure it out. It keeps on saying "Player didn't found in database."
Make sure the user accounts/files are being created in Scriptfiles/Saves. I don't find any issues with those commands
Reply
#24

I've downloaded the gamemode, but I have some questions -
Why there are no screenshots or video ?
Why are you using dini instead of y_ini or something newer ?
How much players approximately do you have in your server ?
Reply
#25

why im not getting a lot commands not appeared/pop up like usual?..
Reply
#26

Quote:
Originally Posted by NoobPlayer
Посмотреть сообщение
why im not getting a lot commands not appeared/pop up like usual?..
I'm not getting you. Do you mean list of server commands? Try /cmds.
Reply
#27

How i create org
Reply
#28

Oh because i give score to a player and it does not save it into the .ini file so it doesnt load it on the server ;/
Reply
#29

Quote:
Originally Posted by LaGrande
Посмотреть сообщение
I am not going to upload new version or upgrade it. Its already bug free.
Score system depends on time played, for instance, 1 hour leads to 1 score, 5 hours lead to 2 scores.
"The latest version has a fixed /gmx, no issues found in the command, every stats save in gmx, and you spawn where you were."

So what about it?
Reply
#30

Nice work
Reply
#31

Not great, better edits available
Reply
#32

it is bugged i tryed in my server
Reply
#33

Good job
Reply
#34

Hey all, new to the SAMP scene. Idk if I should ask here, or in another thread. But in my IT class we want to get a 50 player RP LAN server going. Is this script able to do that? Do we need any extra plugins or anything at all to run it aside from the samp client, the lan server cmd prompt && the game itself? Any help would be greatly appreciated.
Reply
#35

Great one man really good.
Reply
#36

but how to create org
Reply
#37

Where can I see all commands and how to set myself Rcon? (I'm new and I'm willing to learn)
Reply
#38

Quote:
Originally Posted by ProDeplex
Посмотреть сообщение
Where can I see all commands and how to set myself Rcon? (I'm new and I'm willing to learn)
Check the date of when the gamemode was released.

Also to answer you question, just ****** for the rcon commands.. don't be lazy.
Reply
#39

Nice Work !

**Added in the list
Reply
#40

Good job
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)