SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 04/11/2012, 02:01 AM   #1
Abreezy
Gangsta
 
Abreezy's Avatar
 
Join Date: Jan 2011
Location: Bronx
Posts: 560
Reputation: 42
Default AP-Designs Basic Roleplay Script



UPDATE VERSION 1.4.1
  • Fixed a small error with faction saving

Download:

http://www.solidfiles.com/d/af852b9f76/

Quote:
UPDATED VERSION 1.4
  • Added House System
  • /Buy - To buy house
  • /Sell - To sell house
  • /Lockhouse - To lock or unlock house
  • /Stats - Shows basic Information
  • Fixed some database issues, new database is included on the download
Quote:
UPDATED VERSION 1.2
  • Fixed the mysql line
  • Included the Audio files missing to fix issues
  • Fixed the /returncar for rentable vehicles
  • Changed /vcreate, you can just create a car now, after sitting in it, you can /vehtype to change the type of vehicle
  • Added a part of the fuel system, it should shut off engine at 0 Fuel
Quote:
Alright back around a year ago, I released a game mode using dini and stuff, people somewhat liked it. Since then I have enhanced my knowledge in pawn, making things I always wished I could. Before I continue with this current project I'm working on, I thought it would be nice to release my current progress, of course I removed some things, but it allows newer people to check out some codes, learn some more, and hell maybe tell me somethings they noticed was wrong or what not.

Here is some information regarding the game mode, Which was made completely from scratch.



QUICK FIX FOR MYSQL
CHANGE LINE 917 TO
Code:
mysql_connect("IP", "USERNAME", "DATABASE", "PASSWORD");
UPDATED ON VERSION 1.2

Registration System
  • Age selection
  • Skin Selection
  • Gender Selection
  • Roleplay Question Quiz
  • Spawn Spot Pick

Dynamic Faction System
  • Admin creation of factions, done in game
  • Faction Leaders can adjust faction name and rank names in game
  • 8 ranks fully customizable, rank 7 and 8 can hire and fire

Dynamic Entrance System
  • Admin creation of entrances in game, via 2 simple commands
  • Simple entering by pressing your space bar
  • Virtual World is fully dynamic, set it to what you want, whenever you want

Dynamic Vehicle System
Create a vehicle in game at any time
Set vehicle to different type, public, rentable, purchasable
Admin park vehicles
Teleport to vehicles
Lock command with audio sound attached ( You could include your own mp3 if you want)

Basic MDC system
  • This is at the most basic form, you enter a command following vehicle plate, and it shows you to the owner, or renter
  • This was just made to show you an example of how this could be done

MySQL
  • The server is fully integrated with MySQL
  • This means the server saves everything on an online database, increases speed greatly

Admin Logs
  • As of right now, there is a log for all money given away, by staff
  • This gives you example on how to make more logs

Player Commands
  • /me
  • /do
  • /shout
  • /low
  • /whisper
  • /engine
  • /team
  • /faction
  • /lights
  • /lock
  • /returncar


Admin Commands
  • /fedit (Create or edit factions)
  • /vcreate (Creates vehicles)
  • /apark (Admin park Vehicles)
  • /setvw (Sets player virtual world)
  • /setint (Set player interior)
  • /kick (Kicks the player)
  • /ban (Bans the player)
  • /oocstatus (Turns on or off OOC chat)
  • /mute (Mutes a player)
  • /unmute (UnMutes a player)
  • /freeze (Freezes a player)
  • /unfreeze (Unfreezes a player)
  • /slap (Sends a player into the air)
  • /createadmin (Make a player an admin)
  • /setadminpassword (Sets admin a password needed to login to admin status) - Not in use -
  • /adminlogin (Let's an admin Login) - Not in use -
  • /adminduty (Sets your player color to yellow, letting players know you are on admin duty)
  • /ecreate (Makes an entrance point)
  • /einterior (Makes an interior for an entrance)
  • /respawncar (Respawns the car you are sitting in)
  • /gotocar (Allows you to teleport to a vehicle)
  • /vehtype (Allows you to set the vehicle type [0 = Citizen, 1 = PD, 2 = Rentable, 3 = Ownable])
  • /setrentprice (Allows you to set the rentable vehicles price)
  • /setfaction (Puts a player into the faction as leader)
  • /money (Gives a player money)
Download Links

GAMEMODE UPDATED: AP-DESIGNS RELEASE VERSION 1.4.1

Extra Notes

If you encounter any bugs, please post on these threads and I'd have it fixed A.S.A.P for you. Also, when you open the gamemode, use CTRL + F and type in "Mysql_Connect" You need to put your database information there.

Credits
  • SA-MP Forums ( I use to post so many help me topics, and honestly you guys taught me a lot)
  • Myself ( Not to be cocky or anything, but I learned a lot of this alone by trial and error)

Last edited by Abreezy; 31/03/2013 at 03:43 AM.
Abreezy is offline   Reply With Quote
Old 04/11/2012, 02:08 AM   #2
Parka
High-roller
 
Parka's Avatar
 
Join Date: Aug 2011
Location: Argentina
Posts: 1,666
Reputation: 318
Default Respuesta: AP-Designs Basic Roleplay Script

Good Work, I test
Parka is offline   Reply With Quote
Old 04/11/2012, 02:12 AM   #3
♣Frosty♣
Big Clucker
 
♣Frosty♣'s Avatar
 
Join Date: Oct 2012
Posts: 93
Reputation: 8
Default Re: AP-Designs Basic Roleplay Script

Good work and its a friendly based roleplay script.Useful to newbies.
__________________
Join in on Pre-Alpha SA-MP: DayZ today!
[IMG]http://*******/YO1AX[/IMG]

You can't sue anyone cuz' you have money,you don't have the POWER with that even YOUR RICH,MILLIONARE or TRILLIONARE!'
♣Frosty♣ is offline   Reply With Quote
Old 04/11/2012, 03:19 AM   #4
Team_PRO
High-roller
 
Team_PRO's Avatar
 
Join Date: Aug 2012
Location: Southeast Asia
Posts: 1,839
Reputation: 87
Default Re: AP-Designs Basic Roleplay Script

PHP Code:
Good Job For Your Gamemode 
__________________
Retired Player, Since 2009 Player


(click the picture to visit our official website)
Gaming Forecast Forum | SA-MP Zombie Discord Server | SA-MP Zombie Server [Click to Join]
Team_PRO is offline   Reply With Quote
Old 04/11/2012, 03:40 AM   #5
davelord
Huge Clucker
 
Join Date: Aug 2010
Posts: 350
Reputation: 7
Default Re: AP-Designs Basic Roleplay Script

I initialised MYSQL successfully and now when I start the server, it takes a while for the messages to pop up, and when I connect, it immediately shows "log in", even though I'm not registered, upon clicking "Login", the samp-server.exe immediately closed, without a error report, and when I click cancel, I get kicked. Help please.
davelord is offline   Reply With Quote
Old 04/11/2012, 04:00 AM   #6
Team_PRO
High-roller
 
Team_PRO's Avatar
 
Join Date: Aug 2012
Location: Southeast Asia
Posts: 1,839
Reputation: 87
Default Re: AP-Designs Basic Roleplay Script

Quote:
Originally Posted by davelord View Post
I initialised MYSQL successfully and now when I start the server, it takes a while for the messages to pop up, and when I connect, it immediately shows "log in", even though I'm not registered, upon clicking "Login", the samp-server.exe immediately closed, without a error report, and when I click cancel, I get kicked. Help please.
You Mean When You Login Your Been Auto kicked
__________________
Retired Player, Since 2009 Player


(click the picture to visit our official website)
Gaming Forecast Forum | SA-MP Zombie Discord Server | SA-MP Zombie Server [Click to Join]
Team_PRO is offline   Reply With Quote
Old 04/11/2012, 04:03 AM   #7
davelord
Huge Clucker
 
Join Date: Aug 2010
Posts: 350
Reputation: 7
Default Re: AP-Designs Basic Roleplay Script

Quote:
Originally Posted by Team_PRO View Post
You Mean When You Login Your Been Auto kicked
No. samp-server.exe just shuts without giving me any warnings in the server-log.txt. I only get the login screen, when I click "cancel", it autokicks me, if I click "login", the server restarts and the samp-server.exe shuts.
davelord is offline   Reply With Quote
Old 04/11/2012, 04:10 AM   #8
Abreezy
Gangsta
 
Abreezy's Avatar
 
Join Date: Jan 2011
Location: Bronx
Posts: 560
Reputation: 42
Default Re: AP-Designs Basic Roleplay Script

That means the Mysql isn't running correctly, I made a slight error in the pwn file, the mysql_connect should be:

Code:
mysql_connect("IP", "USERNAME", "DATABASE", "PASSWORD");
Sorry for the misunderstanding.
__________________

(Click the image for link to gamemode release)
| Completely dynamic gamemode, made completely from scratch, MySQL |
| Will script for cash, just send me a PM with information on what you want. |
Abreezy is offline   Reply With Quote
Old 04/11/2012, 04:12 AM   #9
davelord
Huge Clucker
 
Join Date: Aug 2010
Posts: 350
Reputation: 7
Default Re: AP-Designs Basic Roleplay Script

Cheers.
EDIT: still got the same error.
davelord is offline   Reply With Quote
Old 04/11/2012, 04:42 AM   #10
Team_PRO
High-roller
 
Team_PRO's Avatar
 
Join Date: Aug 2012
Location: Southeast Asia
Posts: 1,839
Reputation: 87
Default Re: AP-Designs Basic Roleplay Script

But i test it its working properly
__________________
Retired Player, Since 2009 Player


(click the picture to visit our official website)
Gaming Forecast Forum | SA-MP Zombie Discord Server | SA-MP Zombie Server [Click to Join]
Team_PRO 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] Basic Roleplay Script :: Scratch Aprezt Gamemode Scripts 49 13/04/2020 05:13 PM
[GameMode] Basic script roleplay (y_ini,sscanf and y_cmd) -[R]hysi- Gamemode Scripts 2 14/09/2012 09:46 AM
[GameMode] Basic Roleplay Script Jack_Wilson Gamemode Scripts 24 10/10/2011 07:11 PM
[GameMode] Tachibana's Basic Roleplay Script Tachibana Gamemode Scripts 14 07/08/2011 11:40 AM


All times are GMT. The time now is 07:06 AM.


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