[GameMode] UGF Gamemode (MySQL/Y_INI) [Custom HQ Admin System]
#1

UGF Gamemode


[Important]
This is a gamemode i made for my personal use almost a year ago i stopped updating it, i did not have any use of it and alot of my friends asked me to give them this gamemode (in the past) so here after nearly a year im releasing this gamemode on SA-MP forums.
It my have some bugs or unfinished features but i'll try to fix/complete them and upload a newer version.

Secondly if anyone's here to point out that its a copycat script, please do me a favor, move on.

If anyone wants to make changes in this gamemode and re-upload it, they are allowed to but they need to give the credits.


DOWNLOAD
[MySQL Version]
SOURCECODE


Download
[Y_INI VERSION]



FEATURES


MySQL DATABASE

The main thing in Build 14 version of this gamemode is that it's converted to MySQL.
You can enter the details of the MySQL server here in the script:






SERVER PROTECTION





EASILY CUSTOMIZABLE SCRIPT













OTHER FEATHERS

- VIP Chat (using * symbol)

- Admin Chat (using # and @ symbols)

- Random Server Messages

- Double Server Name (hostname changes every 5-10 seconds)

- High Quality Administration System

- Double RCON Password

- Menu Based Vehicle Spawning System

- Stunt Maps

- Chat Logs

- Commands Logs (stored in files, aswell as displayed to admins)

- VIP Chat Logs (stored in files)

- Admin Chat Logs (stored in files)

- PM Chat Logs (stored in files, aswell as displayed to admins)

- Ban Logs, Kick Logs, Mute Logs (all stored in files)

- Teleports

- Random Spawns

- Random Weapons On Spawn

- Player Animations

- Alot more, can't mention all of them





ADMIN COMMANDS
Code:
ADMIN LEVEL RCON
/setvip [player id] - Change a player's vip level 0-1 							(Rcon Command)
/setadmin [player id] [admin level] - Set a player's admin level from 0-7 				(Rcon Command)



ADMIN LEVEL 1
/reports - Check the reports                      							(Admin Level 1)
/acms - Toggle connect messages                   							(Admin Level 1)
/heal [player id] - Heal a player                  							(Admin Level 1)
/equip - Get full health and armour                							(Admin Level 1)
/rms - Toggle report messages On/Off               							(Admin Level 1)
/ip [player id] - Get ip of a player               							(Admin Level 1)
/aspec [playerid] - Spectate a player              							(Admin Level 1)
/killplayer [player id] - Kill a player            							(Admin Level 1)
/armour [player id] - Set a player's armour to 100 							(Admin Level 1)



ADMIN LEVEL 2
/invisible - Get invisible 										(Admin Level 2)
/clearchat - Clear chat for everyone 									(Admin Level 2)
/unmute [playerid] - Unmute a player 									(Admin Level 2)
/muted - See the list of muted player 									(Admin Level 2)
/disarm [player id] - Disarm a player 									(Admin Level 2)
/frozen - See the list of frozen players 								(Admin Level 2)
/jailed - See the list of jailed players 								(Admin Level 2)
/mute [player id] [reason] - Mute a player 								(Admin Level 2)
/rpgs - See the list of all the players who have rpgs 							(Admin Level 2)
/fcs [player id] - Force a player for class selection 							(Admin Level 2)
/sethealth [player id] [health] - Set a player's health 						(Admin Level 2)
/setarmour [player id] [armour] - Set a player's armour 						(Admin Level 2)
/kick [playerid] [reason] - Kick a player from the server 						(Admin Level 2)
/miniguns - See the list of all the players who have miniguns 						(Admin Level 2)
/grenades - See the list of all the players who have grenades	 					(Admin Level 2)
/resetrpg [player id] - Remove RPG from a player's weapons set 						(Admin Level 2)
/setworld [player id] [world id] - Change a player's virtual world 					(Admin Level 2)
/resetminigun [player id] - Remove minigun from a player's weapons set 	 				(Admin Level 2)
/resetgrenades [player id] - Remove grenades from a player's weapons set 				(Admin Level 2)



ADMIN LEVEL 3
/rpg - Spawn a RPG 											(Admin Level 3)
/minigun - Spawn a minigun						     	  	   		(Admin Level 3)
/burn [player id] - Burn a player 									(Admin Level 3)
/slap [player id] - Slap a player 									(Admin Level 3)
/unjail [player id] - Unjail a player 									(Admin Level 3)
/freeze [player id] - Freeze a player 									(Admin Level 3)
/hide - Hide yourself from /admins list 								(Admin Level 3)
/explode [player id] - Explode a player 								(Admin Level 3)
/unfreeze [player id] - Unfreeze a player 								(Admin Level 3)
/jail [player id] [reason] - Jail a player 								(Admin Level 3)
/get [player id] - Teleport a player to your position 							(Admin Level 3)
/drop [player id] [height] - Drop a player from a specific height 					(Admin Level 3)
/port [player id] [player id] - Teleport a player to another player 					(Admin Level 3)
/fakechat [player id] [message] - This one's cruel, you can remove it if you want 			(Admin Level 3)
/resetweapon [player id] [weapon id] - Remove a specific weapon from a player's weapons set 		(Admin Level 3)



ADMIN LEVEL 4
/ban [player id] [reason] - Ban a player 								(Admin Level 4)
/crash [player id] - Crash a player, may be needed sometimes 						(Admin Level 4)
/announce [message] - Make an important announcement for everyone (Admin Level 4)
/minigunfight - Start a minigun fight for 60 seconds, everyone gets a minigun with infinite ammo 	(Admin Level 4)
/aanounce [message] [time] - Same as the previous announce command but this time with [time] parameter 	(Admin Level 4)



ADMIN LEVEL 5
/banip [ip] - Ban an ip 										(Admin Level 5)
/unbanip [ip] - Unban an ip 										(Admin Level 5)
/kickall - Kick everyone in the server 									(Admin Level 5)
/armourall - Give everyone full armour 									(Admin Level 5)
/healall - Heal all players on the server 								(Admin Level 5)
/getall - Teleport everyone to your position 								(Admin Level 5)
/giveallweapon [weapon id] - Give a specific weapon to everyone 					(Admin Level 5)
/setmoney [player id] [money] - Set money of a player to a specific amount 				(Admin Level 5)
/giveweapon [player id] [weapon id] - Give a specific weapon to a specific playa 			(Admin Level 5)
/gfrscore [player id] [score] - Give specific amount of freeroam score to a player 			(Admin Level 5)
/rfrscore [player id] [score] - Reduce specific amount of freeroam score of a player 			(Admin Level 5)
/gdmscore [player id] [score] - Give specific amount of deathmatch score to a player 			(Admin Level 5)
/rdmscore [player id] [score] - Reduce specific amount of deathmatch score of a player 			(Admin Level 5)



ADMIN LEVEL 6
/unban [account id] - Unban a player 									(Admin Level 6)
/readpms - Toggle the visibility of other people's private messages 					(Admin Level 6)
/write [message] - Write something in the chat without showing your name 				(Admin Level 6)
/readcmds - Toggle the visibility of the commands that the other players use 				(Admin Level 6)




ADMIN LEVEL 7
/lockserver - Lock the server 										(Admin Level 7)
/restartserver - Restart the server 									(Admin Level 7)
/rs - Shortcut command for restarting the server 							(Admin Level 7)



PLAYER COMMANDS

Code:
/fr - Change to FreeRoam Mode

/dm - Change to DeathMatch Mode

/jp - Spawn a jetpack

/cms - Toggle chat messages On/Off

/pm [player id] [message] - Private message a player

/r - Shortly reply to the previous private message

/pms - Toggle private messages On/Off

/time [time id] - Change the game's time

/rtime - Reset the time to original

/weather [weather id] - Change the game's weather

/rweather - Reset the weather to original

/v [Optional: vehicle id] - Spawn a vehicle through vehicle's menu or directly by the id.

/netstats - Show netstats

/vcolor - Change vehicle's color

/stats [Optional: player id] - See personal or a specific player's stats

/go [player id] - Teleport to a player

/gos - Toggle gos On/Off

/god - Toggle GodMode On/Off

/skin [Optional: player id]  - Change player's skin/character

/kill - Suicide

/fs - Change fighting style

/new - See server updates

/spawn - Change spawn position (Only for registered players)

/rspawn - Reset spawn position

/home - Teleport to the spawn position
MISCELLANEOUS COMMANDS
Code:
/a - Show the list of animations

/wank - Fapping animation

/sit - Sit and enjoy the life

/injured - Need a wounded player animation for roleplaying? Say no more fam

/slapass - Slap some asses

/cam - Get a camera, take pictures.

/flowers - Get some flowers

/nightvision - Get night-vision goggles.

/para - Get a parachute

/dive [Optional: height] - Dive from the sky

/drunk - Set drunk level

/cuffed - Get cuffed

/drink - Get a vine, drink it, get drunk.

/handsup - Play hands-up animation

/piss - Piss around

/carry - Play carry animation

/call - Play call animation

/smoke - Smoke some weed
VEHICLE COMMANDS

Code:
/[literally any vehicle's name] - Spawn any vehicle by its name

/v [Optional: vehicle id] - Spawn a vehicle by its id or the 'textdraw' menu

/lock - Lock the doors of the vehicle you're in

/hydraulics - Add hydraulics to your vehicle
TELEPORTS

Code:
/sp - Stunt park (Custom map)
 
/a51 - Area 51  // Credits to SA-MP Team
 
/si - Stunt Island // Credits to SAMP Team
 
/lsa - Los Santos Airport
 
/sfa - San Ferreiro Airport
 
/lva - Las Venturas Airport
 
/aa - Abandoned Airport
 
/ls - Los Santos
 
/sf - San Ferreiro
 
/lv - Las Venturas
 
/cj - CJ's House
 
/atd - LS Airport Ticket Desk

/wh - Warehouse

/wh2 Warehouse 2

/arch - Arch Angles

/tf - TransFender

/loco - Loco Low Co

/army - Army base
VIP COMMANDS

Code:
/vips - Show list of VIPS

/count [seconds] - Show backwards countdown for all nearby players

/megajump - Toggle the ability to jump high

/neon - Add neons to you vehicle

/cart - Drive a shopping cart

/siren - Add siren to your vehicle

/rvcolor - Rainbow colors for your vehicle (constantly changing color)

/spec [player id] - Spectate a player
SCREENSHOTS










CREDITS

SA-MP Team
Mr.K0P (Me) For This Gamemode
Creators of all the plugins listed below




Plugins Used
a_samp
Y_INI
a_mysql
streamer
sscanf
foreach
strlib
mSelection
aDialog
crashdetect
Reply
#2

Good job!

Btw it looks like UIF xD
Reply
#3

Quote:
Originally Posted by SonnyGamer
View Post
Good job!

Btw it looks like UIF xD
Ah Thanks, i was waiting for this reply.
Reply
#4

Very nice release
Reply
#5

Awesome GM.
Reply
#6

Very Clean Script, Good Job.
Reply
#7

Looks awesome!
Reply
#8

Ahh I remember this gm . Old times. Good job
Reply
#9

The indentation is really bad, and using #pragma tabsize to hide the warnings in definitely not a fix.
Reply
#10

Quote:
Originally Posted by Ntmx
View Post
Very nice release
Thanks


Quote:
Originally Posted by ShadowMortar
View Post
Awesome GM.
Thanks too

Quote:
Originally Posted by ZigGamerx
View Post
Very Clean Script, Good Job.
Yeah, I tried my best, thanks btw

Quote:
Originally Posted by SyS
View Post
Ahh I remember this gm . Old times. Good job
Yep.
Good old times, I miss them Soo much :"(


Quote:
Originally Posted by Infinity
View Post
The indentation is really bad, and using #pragma tabsize to hide the warnings in definitely not a fix.
EDIT: There are indentation problems only i the GitHub version.
Reply
#11

1) gamemode is fantasticly scripted.

2) i have an issue with your mode (query doesn't execute) im not gona bother solving it.

3) okay why you needed both y_ini and MySQL is there dependecies for each saving system's?

4) Reputation Earned +1 rep.
Reply
#12

Quote:
Originally Posted by Mobtiesgangsa
View Post
1) gamemode is fantasticly scripted.

2) i have an issue with your mode (query doesn't execute) im not gona bother solving it.

3) okay why you needed both y_ini and MySQL is there dependecies for each saving system's?

4) Reputation Earned +1 rep.
1. Thanks

2. Y_ini was an incude used in the Build 13, the whole database was base on y_ini but i converted it to Mysql later.I have the y_ini version of someone wants it ill upload it shortly, and about the query problem can you explain a bit more? i will check it

Did you put the details of your mysql database in the required places?

and btw thanks for the rep
Reply
#13

WOAH! I was waiting for it! btw can i get the version without mysql?
Reply
#14

thanks for gamemode!
Reply
#15

Thanks everyone!

UPDATE:

- Uploaded the Y_INI version of the gamemode (Build 13), no MySQL required.

Note: You can remove some log savings for optimization purposes.
Reply
#16

Quote:
Originally Posted by K0P
View Post
Thanks

EDIT: There are indentation problems only i the GitHub version.
This is because you're mixing tabs and spaces, making it clear that you probably copy pasted parts of your code together. If there really was no problem with your indentation, the pragma wouldn't be needed
Reply
#17

Quote:
Originally Posted by Infinity
View Post
This is because you're mixing tabs and spaces, making it clear that you probably copy pasted parts of your code together. If there really was no problem with your indentation, the pragma wouldn't be needed
(Sometimes you need to make similar commands, variables or you need a piece of already written code from within the script [just to preserve time]).
Another reason could be (just as you stated) that I sometimes I used spaces and sometimes tabs.

I'm pretty sure there won't be warnings even if I don't use the pragma.
I'll check that issue today when I get on my PC.
Reply
#18

Need help.
Quote:

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[13:25:34] filterscripts = "" (string)
[13:25:34] weburl = "www.sa-mp.com" (string)
[13:25:34]
[13:25:34] Server Plugins
[13:25:34] --------------
[13:25:34] Loading plugin: streamer
[13:25:34] Failed.
[13:25:34] Loading plugin: whirlpool
[13:25:34]
[13:25:34] ==================
[13:25:34]
[13:25:34] Whirlpool loaded
[13:25:34]
[13:25:34] ==================
[13:25:34]
[13:25:34] Loaded.
[13:25:34] Loading plugin: sscanf
[13:25:34]

[13:25:34] ===============================

[13:25:34] sscanf plugin loaded.

[13:25:34] Version: 2.8.1

[13:25:34] © 2012 Alex "Y_Less" Cole

[13:25:34] ===============================

[13:25:34] Loaded.
[13:25:34] Loaded 2 plugins.

[13:25:34]
[13:25:34] Filterscripts
[13:25:34] ---------------
[13:25:34] Loaded 0 filterscripts.

[13:25:34] Script[gamemodes/freeroam.amx]: Run time error 19: "File or function is not found"
[13:25:34] Number of vehicle models: 0

Reply
#19

Quote:
Originally Posted by Min99
View Post
Need help.
You need the MySQL plugin aswell as the Incognito's Streamer plugin.

Update this line to your server config file:

Code:
plugins mysql streamer whirlpool sscanf
EDIT: Which version of the gamemode are you using? and did you download the package?
Reply
#20

Quote:
Originally Posted by K0P
View Post
You need the MySQL plugin aswell as the Incognito's Streamer plugin.

Update this line to your server config file:

Code:
plugins mysql streamer whirlpool sscanf
EDIT: Which version of the gamemode are you using? and did you download the package?
I'm downloading the Y_INI version.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)