[GameMode] Base Roleplay Script [BEGINNERS]
#1

Base Roleplay Script





INTRODUCTION

Hey guys, today I'll be releasing a simple base script for role playing which was made out of boredom. Also this base script was my first gamemode so yea, if I've done a bad job, I apologize.



FEATURES
• 17 administrator commands, not that less in my opinion, you can also use these commands as a guide to make more admin commands.

• 14 player commands including Roleplaying commands.

• Fully working login register system using dialogs.

• Login register system includes saving the pass(of course), admin level, interior, virutal world, skin, level, cash, security key(will be explained in the next feature), kills, deaths, facing angle, armor, health, position of the player last log out position.

• Security key is a 2nd password for a admin so they don't get hacked.

• Roleplay name checker when a player connects.

• Vehicles around Los Santos.

• "_" don't show up in chats, just FirstName LastName.

• When a player disconnects and a player was nearby them, it'll say player has left server, timedout or kicked(won't say

banned if player got banned), using ProxDetector.

• Hashing passwords in the user's file.






INSTRUCTIONS

When you register into the server, it'll spawn you with $1,000, so now if you want to be an administrator, log into RCON, using '/rcon login baserp', of course without the quotes, using /makeadmin.Then type /ahelp or /ah for any further admin help commands.When you go into the script, maybe changing some stuff, try to find words like 'CHANGEME' and edit them, for example I placed 'CHANGEME Roleplay', but I've decided that you guys can change it to what ever you want.Users registered can be found in scriptfiles, then into the folder named 'Users', you'll have to make one in the scriptfiles folder named 'User'.Now, after you're all done what you want. Goto into server.cfg which is in the server folder and change the rcon password, server name and all that.

CREDITS

• Credits to Y_Less for making this wonderful YINI/YSI include, sscanf and foreach.

• Kush for making the login register system.

• Zeex for his ZCMD command processor.

• Dracoblue for hashing passwords.

• JustinAn for making this gamemode.

NOTE: If I forgot any other credits, I apologize. Comment below your name and I'll add it in.



DOWNLOAD

[B][SIZE="2"]NOTE: I am very sorry, for not having linux download link, I only have windows. And also if mediafire is blocked in your country, please tell me another link for uploading (Solidfiles for example).

- Windows
- Pastebin

Following plugins & includes you will need to download.

Note: You will have to download your own SAMP executables here.

-sscanf2
-zcmd
-YSI
-foreach



BUGS
I have found no bugs at the moment, if there is please leave a comment below so I can fix it.




CHANGES
Code:
• Fixed non-stop flying into the sky after spawn.
• Available for 0.3z use.
If you have any suggestions or fixes, please do not hesitate to post a suggestion by leaving a comment below because I'd appreciate it, thanks. And mirrors are accepted.
Reply
#2

wow nice Dude
Reply
#3

Quote:
Originally Posted by changeME
View Post
wow nice Dude
Thanks alot! Nice name by the way.
Reply
#4

Can you post a Pastebin link so that i can do a quick look and jot down a review?
Reply
#5

Quote:
Originally Posted by Vinnie Robardo
View Post
Can you post a Pastebin link so that i can do a quick look and jot down a review?
Sure, here why not.

And if I did a bad job, I apologize.

Thanks, JustinAn.

Link: http://pastebin.com/EV0RQxpp

And yeah, when you're looking at it. It has bad indentation and stuff only in pastebin, but it won't be on the script, but I'm pretty sure you know that I guess.
Reply
#6

Review - 9/10

Good and very simple script, contains basic needs for a basic RP script, also colorful enough

Mistakes -

pawn Code:
SetGameModeText("H-RP v1.0.0");
H-RP? Isn't it supposed to be B-RP ( Base - Roleplay )?

Suggestions - More colorful texts, also ~w~, ~r~, ~y~, are also useful enough, not to say to NOT use #define COLOR_SOMETHING 135335

Also, read this SA-MP Wiki page if you don't get me, or want to learn more - https://sampwiki.blast.hk/wiki/Colors_List
Reply
#7

I like it, goodjob. But I'm not even a beginner yet.
Reply
#8

Quote:
Originally Posted by Vinnie Robardo
View Post
Review - 9/10

Good and very simple script, contains basic needs for a basic RP script, also colorful enough

Mistakes -

pawn Code:
SetGameModeText("H-RP v1.0.0");
H-RP? Isn't it supposed to be B-RP ( Base - Roleplay )?

Suggestions - More colorful texts, also ~w~, ~r~, ~y~, are also useful enough, not to say to NOT use #define COLOR_SOMETHING 135335

Also, read this SA-MP Wiki page if you don't get me, or want to learn more - https://sampwiki.blast.hk/wiki/Colors_List
Ahh yeah! Sorry, cause I wanted to name it High Roleplay but then I've decided to change it to base and forgot that part, I apologize! Sorry.

EDIT: And yeah, I'll try to use those suggestions, maybe later on the next gamemode I make. Thanks, really appreciate them! Game Mode re uploaded also.
Reply
#9

Quote:
Originally Posted by Joshua1
View Post
I like it, goodjob. But I'm not even a beginner yet.
Thanks, really appreciate it!
Reply
#10

NICE, LEAKING THE HZRP SCRIPT.
Reply
#11

Quote:
Originally Posted by SmithyComp
Посмотреть сообщение
NICE, LEAKING THE HZRP SCRIPT.
How is this HZ-RP script, please tell me. I don't leak scripts, and I hate that. And it's a base script.
Reply
#12

Would you mind sparing a hand? /makeadmin does not work, could you post here a working piece of the script?
When I /login rcon [pass] and /makeadmin 0 (my ID, also tried my name) and 1338 or 99999 (tried both), it says "invalid player specified!". Can you help?
Reply
#13

Quote:
Originally Posted by SmithyComp
Посмотреть сообщение
NICE, LEAKING THE HZRP SCRIPT.
Hey Greg Smith, this is not the HZG script.

OT: This is nicely done for a beginner.
Reply
#14

It's a nice script.
Reply
#15

Quote:
Originally Posted by DJTunes
Посмотреть сообщение
It's a nice script.
Thanks, really appreciate all this!

Quote:
Originally Posted by HZGshock
Посмотреть сообщение
Hey Greg Smith, this is not the HZG script.

OT: This is nicely done for a beginner.
Thanks, really appreciate it!

Quote:
Originally Posted by 69
Посмотреть сообщение
Would you mind sparing a hand? /makeadmin does not work, could you post here a working piece of the script?
When I /login rcon [pass] and /makeadmin 0 (my ID, also tried my name) and 1338 or 99999 (tried both), it says "invalid player specified!". Can you help?
Sure, but when I have it. It works.. Hmmm. Lemme give it to you again.

pawn Код:
CMD:makeadmin(playerid, params[])
{
    new pID, value, string[128], tName[MAX_PLAYER_NAME];

    if(PlayerInfo[playerid][pAdmin] < 99999 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_GRAD2, NOTADMIN);
    else if (sscanf(params, "ui", pID, value)) return SendClientMessage(playerid, -1,"USAGE: /makeadmin [playerid/PartOfName] [level 1-99999]");
    else if (value < 0 || value > 99999) return SendClientMessage(playerid, COLOR_GRAD2, "Invalid level specified !(1-99999)");
    else if(pID == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GRAD2,"Invalid player specified !");
    else
    {
        new rand = random(9999);
        GetPlayerName(pID, tName, MAX_PLAYER_NAME);
        strreplace(tName, '_', ' ');
        gAdminAuthorized[pID] = 1;
        PlayerInfo[pID][pSecKey] = rand;
        format(string, sizeof(string), "* You've promoted %s to an level %d Administrator.", tName, value);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        format(string, sizeof(string), "* You've been promoted to an level %d Administrator by %s, your security key is %d.", value, GetName(playerid), PlayerInfo[pID][pSecKey]);
        SendClientMessage(pID, COLOR_LIGHTBLUE, string);
        printf("AdmCmd: %s has promoted %s to a level %d admin.", GetName(playerid), tName, value);
        PlayerInfo[pID][pAdmin] = value;
    }
    return 1;
}
Here ya go, have fun scripting!

EDIT: Also, remember. I didn't add a 1338, but you can add it if you want In your commands.
Reply
#16

No no no.
How do you do it? Because when I /rcon login pass, and then /makeadmin myself to level 1, 2, 3, 4, 5, 6, or even 1388/99999, it says "invalid player specified". How do you do it yourself?
Oh when I /q and then come back in, it doesnt tp me to my last position. It sends me far up to the sky until I die.
Reply
#17

Looks good so far =)
Reply
#18

Nice script but i think you shall add more commands for admin and like /makeleader /makeadmin and somre more stuff that would be nice but yes a nice script and nice work
Reply
#19

Quote:
Originally Posted by 69
Посмотреть сообщение
No no no.
How do you do it? Because when I /rcon login pass, and then /makeadmin myself to level 1, 2, 3, 4, 5, 6, or even 1388/99999, it says "invalid player specified". How do you do it yourself?
Oh when I /q and then come back in, it doesnt tp me to my last position. It sends me far up to the sky until I die.
This is how I do it, /rcon login [your pass]. Then /makeadmin [playerid] [99999]

And then it works, doesn't say Invalid Player Specified.

EDIT: Also, about the tping up in the sky. I fixed it. Reuploaded.
Reply
#20

Quote:
Originally Posted by MichaelDavidson
Посмотреть сообщение
Nice script but i think you shall add more commands for admin and like /makeleader /makeadmin and somre more stuff that would be nice but yes a nice script and nice work
Hmmm, I already have /makeadmin? It's an base script so yeah, let the scripter to decide what to make. So yeah.

Quote:
Originally Posted by N0FeaR
Посмотреть сообщение
Looks good so far =)
Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)