SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Gamemode Scripts

Reply
 
Thread Tools Display Modes
Old 29/08/2011, 06:55 PM   #1
Jafet_Macario
Huge Clucker
 
Jafet_Macario's Avatar
 
Join Date: Jul 2011
Posts: 463
Reputation: 64
Default Roleplay Script - Get Started [sscanf, zcmd, dini, foreach]

Roleplay Script - Get Started



WARNING: Dini and DUDB has been replaced with Y_INI
WARNING:I released this gamemode so new people in PAWN can get started with.
WARNING:This gamemode has been made from scratch.


First steps
-Click on the download link.
-Open server.cfg and change: rcon password and hostname.
-Open rp.pwn with pawno and search for "changeme" and change it.
-Press Compile.
-Run samp-server.exe


How to make yourself admin
-Ingame type /rcon login [password].
-Then type /makeadmin [id] 1338.


Features:

100+ Commands,
" _ " From names doesn't show up in the chats,
Animation when chatting,
Dynamic Vehicle System,
Payday System,
Admin/Tester System,
Engine System,
DMV System,
Tutorial,
Newbie Chat,
Some animations,
Some PD,EMS cars,
Some mapicons,
Some pickups,
Level UP System,
Register/Login System with Dialogs,
Save System.


Tips:

It saves:
-Level,Sex,Age,Origin,Cash,Respect Points,Warns,Phone Number
-Admin Level, Tester Level, Skin, Drive License, Personal Car tunning.
Admin Levels: 1 - 1338 ( 1338 = Owner ), You can change it how you want.


Commands:

Normal players: By typing /help they get a list of commands, that would be:
Code:
/rules /forum /stats /buylevel
/me /anims /do /time /helpme /report /(c)all /(h)angup /(p)ickup /number
/admins /testers /id /pay /newspaper /stopanim /takeexam
/v /eject /ejectall /vlock /valarm /fuel /trunk
/clearmods /sellv /givecarkeys /trackcar /engine
/b [local ooc chat] /s (shout) /low [low chat]
/n (newbie chat) /w (whisper) /pm (private message ooc)

Testers: By typing /th they get a list of commands, that would be ( TH = Tester Help ):

Code:
/goto /gethere /respawn /cc /cnc /mute /unmute /tc [text] (tester/admin chat) /tod /sendtols
Admins: By typing /ah they get a list of commands, that would be ( AH = Admin Help ):
Code:
Admin Level 1: /goto /gethere /respawn /healall /kick /ban /cc /cnc /a [text] (admin chat)
Admin Level 1: /warn /aod /unban /unbanip /freeze /unfreeze /check /mute /unmute /acceptreport /markfalse
Admin Level 2: /gotols /gotolv /gotosf /sendtols
Admin Level 4: /veh /setskin /sethp /givegun
Admin Level 1337: /rac /setlevel /givemoney
Admin Level 1338: /maketester /makeadmin /changename /addv /editv /setfuel
Admin Level 1338: /adddealership /deletedealership /movedealership /gotodealership
Admin Level 1338: /addfuelstation /deletefuelstation /movefuelstation /gotofuelstation
Testing the gamemode

-When you join you have to accept some rules.(You modify them how you want)
-If the rules are refused, you get kicked, if not, you will have to register by
typing in your password and then login.
-You will have a small tutorial.
-After the tutorial you will have to select you gender, your age, your origin and choose a package to start with.(Dialogs)
-I added only 2 packages, you will see ingame what they contain, you can remove them or add more things, how you like.
-After that, because it's your first time joining the server you will be spawned at the DMV, reason:"A taxi has bring you to the DVM so you can get your Driver's License", you have to enter a car, start the engine and type /takeexam and the Driver's License Exam begins.
-The exam is simple, you have to drive on the right side of the road and go through the checkpoints.
-After that, your spawn will be the Airport.You got also there newspaper.
-Some things from the tutorial was just added randomly, you change how you want.
-As I said, I released this so new people can get started,the rest you will have to add/remove yourself.


What the commands do?:

Code:
/rules - Shows the server rules (You have to modify)
/forum - Shows the server forum (You have to modify)
/stats - Shows player's stats.
/buylevel - When you got Respect:[X/X] you can /buylevel and go 1 level up.
/me - Everybody knows this ^^.
/do - Everybody knows this ^^.
/time - Shows the time.
/anims - Shows a list of all anims.
/helpme [text] - You request help from online Testers.
/report [Name/ID] [Reason] - You report a player to the online Admins.
/call [Number] - Calls the player.
/hangup - You hangup.
/pickup - When someone calls you, you can answer with /pickup
/number [Name/ID] - Shows the player's phone number.
/admins - Shows a list of online Admins.
/testers - Shows a list of online Testers.
/id [Name] - Shows the player's ID.
/pay [Name/ID] [Ammount] - You give someone an ammount of cash.
/newspaper - You can read the newspaper from the airport.
/stopanim - Stops the current anim.
/takeexam - When you are in one of the DMV cars, the Driver's License Exam starts.
/v - Shows a dialog for available actions for the vehicle.
/eject [Name/ID] - Eject's a player from your car.
/ejectall - Eject's all players from your car.
/vlock - Locks the car if you have the keys.
/valarm - You put the alarm of the car on if you have the keys.
/fuel - Fuels your car if you are at any fuelstation.
/trunk - Opens your trunk and you can deposit/take guns.
/clearmods - Clears all your car's tunning.
/sellv [Name/ID] [VehicleID] [Price] - Sells to another player your car.
/givecarkeys [Name/ID] [VehicleID] - Gives your car keys to another player.
/trackcar - Tracks your car on the radar.
/engine - Stops/Starts the car/motocycle engine.(You can also press SHIFT to start the engine)
/b [text] - Local ooc chat.
/s [text] - Shouts.
/low [text] - Low chat.
/n [text] - Newbie Chat
/w [Name/ID] [Text] - You can whisper the player.
/pm [Name/ID] [Text] - Private Message, used for OOC things.
---The following commands are for testers/admins:
/goto [Name/ID] - Teleports you to that player.
/gethere [Name/ID] - Teleport that player to your position.
/respawn [Name/ID] - Respawns the players.
/healall - Heals all players on the server.
/kick [Name/ID] - Kicks the player.
/ban [Name/ID] - Bans the player.
/cc - Clears the whole chat.
/cnc - Clears the newbie chat.(For players between level 1 and 3)
/a [text] - Admin/Tester chat.
/warn [Name/ID] [Reason] - Warns a player, at 5 warnings he will get banned.
/aod - Admin on duty, you go on duty.
/tod - Tester on duty, you go on duty.
/unban [Name/ID] - Unbans the player.
/unbanip [IP] - Unbans the player's IP.
/freeze [Name/ID] - Freeze's the player.
/unfreeze [Name/ID] - Unfreezes the player.
/check [Name/ID] - Shows the target name stats.
/mute [Name/ID] [Minutes] [Reason] - Mutes a player for a certain time so he cannot chat during that time.
/unmute [Name/ID] - Unsilence the player.
/acceptreport [Name/ID] - Accepts the report of the player.
/markfalse [Name/ID] - Marks as false the report of the player.
/gotols - Teleports you to Los Santos.
/gotolv - Teleports you to Las Venturas.
/gotosf - Teleports you tu San Fierro.
/sendtols [Name/ID] - Teleport the player to Los Santos.
/veh [Model] [Color] [Color] - Spawns a vehicle.
/setskin [Name/ID] [Model] - Changes the player's skin.
/sethp [Name/ID] [Ammount] - Set the player health.
/givegun [Name/ID] [Gunid] [Ammo] - Gives the player a gun.
/rac - Respawns all unused cars in 10 seconds.
/setlevel [Name/ID] [Level] - Set the player's level.
/givemoney [Name/ID] [Ammount] - Gives the player cash.
/maketester [Name/ID] [0/1] - 1 = Tester, 0 = Not, Makes someone Tester or not.
/makeadmin [Name/ID] [1-1338] = Makes someone Admin.
/addv [dealershipID] [model] [color] [color] [price] - Adds another buyable vehicle to one of the dealerships.
/editv - Shows a dialog to edit the vehicle.
/setfuel [ammount] - Sets the vehicle's fuel.
/adddealership - Adds another dealership
/deletedealership [dealershipID] - Deletes the dealership
/movedealership [dealershipID] - Moves the dealership
/gotodealership [dealershipID] - Teleports you to the dealership
/addfuelstation - Adds another fuel station.
/deletefuelstation [fuelstationid] - Deletes the fuelstation.
/movefuelstation [fuelstationID] - Moves the fuelstation.
/gotofuelstation [fuelstationID] - Teleports you to the fuel station




Bugs:

Please, if you find any bugs tell me so I can fix them.

Download Link:

<redistributing sa-mp server is not allowed>

Credits:

Thanks to:
Y_Less for his impressive sscanf and foreach,
DracoBlue for his dini,
ZeeX for his ZCMD,
MadeMan for his Vehicle System,
Kush for his Y_Ini tutorial,
Jafet Macario - Made this gamemode
Reignald Bailey - Helped me with some stuff.
SkizzoTrick for his tutorial.
__________________

Last edited by dugi; 16/02/2014 at 12:35 PM.
Jafet_Macario is offline   Reply With Quote
Old 29/08/2011, 07:00 PM   #2
Darnell
Gangsta
 
Darnell's Avatar
 
Join Date: Jul 2010
Posts: 857
Reputation: 34
Default Re: Roleplay Script - Get Started [sscanf, zcmd, dini, dudb, foreach]

THIS IS DOPE !
I think I'll get developing my own gamemode.
Darnell is offline   Reply With Quote
Old 29/08/2011, 07:01 PM   #3
Luis-
High-roller
 
Luis-'s Avatar
 
Join Date: Jan 2010
Location: England
Posts: 4,085
Reputation: 377
Default Re: Roleplay Script - Get Started [sscanf, zcmd, dini, dudb, foreach]

Thats a nice way to say thanks isn't it. Anyhow, good job!
Luis- is offline   Reply With Quote
Old 29/08/2011, 07:39 PM   #4
Darnell
Gangsta
 
Darnell's Avatar
 
Join Date: Jul 2010
Posts: 857
Reputation: 34
Default Re: Roleplay Script - Get Started [sscanf, zcmd, dini, dudb, foreach]

Tested, has some grammar mistakes, but nothing critical.
Darnell is offline   Reply With Quote
Old 29/08/2011, 07:41 PM   #5
Glorian
Big Clucker
 
Join Date: Dec 2009
Posts: 82
Reputation: 0
Default Re: Roleplay Script - Get Started [sscanf, zcmd, dini, dudb, foreach]

Nice man!

What is the mistakes?
Glorian is offline   Reply With Quote
Old 29/08/2011, 07:48 PM   #6
Jafet_Macario
Huge Clucker
 
Jafet_Macario's Avatar
 
Join Date: Jul 2011
Posts: 463
Reputation: 64
Default Re: Roleplay Script - Get Started [sscanf, zcmd, dini, dudb, foreach]

Quote:
Originally Posted by -Luis View Post
Thats a nice way to say thanks isn't it. Anyhow, good job!
Thanks!

Quote:
Originally Posted by Darnell View Post
Tested, has some grammar mistakes, but nothing critical.
Umm, sorry for that.

Quote:
Originally Posted by Glorian View Post
Nice man!
Thanks!
__________________
Jafet_Macario is offline   Reply With Quote
Old 29/08/2011, 07:55 PM   #7
Glorian
Big Clucker
 
Join Date: Dec 2009
Posts: 82
Reputation: 0
Default Re: Roleplay Script - Get Started [sscanf, zcmd, dini, dudb, foreach]

Let me setup a test server in a few minutes!
Glorian is offline   Reply With Quote
Old 29/08/2011, 08:08 PM   #8
Kush
Gangsta
 
Join Date: May 2011
Posts: 790
Reputation: 123
Default Re: Roleplay Script - Get Started [sscanf, zcmd, dini, dudb, foreach]

Dini and Dudb? This is bad. 3/10.
__________________
Quote:
Originally Posted by Dripac
i have more reputation than you, that means i am more clever than you my friend
Kush is offline   Reply With Quote
Old 29/08/2011, 08:16 PM   #9
Glorian
Big Clucker
 
Join Date: Dec 2009
Posts: 82
Reputation: 0
Default Re: Roleplay Script - Get Started [sscanf, zcmd, dini, dudb, foreach]

Test server is up!

81.19.215.103:7807
Glorian is offline   Reply With Quote
Old 29/08/2011, 08:17 PM   #10
-CaRRoT
High-roller
 
-CaRRoT's Avatar
 
Join Date: Jul 2011
Location: CA, Los Angeles.
Posts: 1,388
Reputation: 344
Default Re: Roleplay Script - Get Started [sscanf, zcmd, dini, dudb, foreach]

Not bad
-CaRRoT is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[GameMode] Blank Gamemode (dini, zcmd, sscanf2, foreach) pantelimonfl Gamemode Scripts 17 10/07/2011 05:56 PM


All times are GMT. The time now is 01:33 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.