[GameMode] RolePlay GameMode [UNFINISHED]
#1

Firstly hello guys

I made this GM while I was learning MySQL. I stopped with scripting for now so I wanted to share this with you.
Game mode is made from scratch. It is not the best you saw but.. xD

With this GM you can not open server or something but I think it has something that will help you to start developing your own GM. I tried to make this GM 100% dynamic

It is using MySQL R41 by BlueG.

This gamemode has:
Код:
dynamic house system
dynamic ATM
dynamic organisations
dynamicly setting place so players can buy drugs
over 60 anims
6 || 7 maps
I think it can give you base to start developing your own GM

Here are also some commands
Код:
        Admin Commands:
		Admin level 1:
		    /goto
		    /gethere
		    /aveh
		    /ah
		    /cc
		    /kill
		    /fv
		    
		Admin Level 2:
		
		Admin Level 3:
		    /setleader
		    
		Admin Level 4:
			/setmoney
			
		Admin Level 5:
		    /setadmin   /createhouse
		    /setvip     /createatm
		    /apromote
		    /ademote
		    /drugplace
		    /ssettings
		    /createorg
		    /orgname
		    /orgexit
			/orgenter
			/orgsef

	VIP Commands:
	    VIP Level 1:
	        /vgoto
	        /vh
	        
	Promoter's commands:
	    Promoter Level 1:
	        /pgoto
	        
	Player's Commands:
	    /anims
	    /buydrugs
	    /commands
You also have everything included in download file.

If I come back to pawno I will develop this mode much more.

Also don't be too hard to me about MySQL xD. I am still beginner at it

There is one include called
PHP код:
add.inc 
I've putted some defines in it and I recommend you to include it or GM will not work properly xD

Also I had no idea in what extension should I export table so I exported it in .sql and .xml (if another extension needed tell me and I will immidiatly add it )

So that is all I have to say.

I will repeat this. Do not even TRY to open this GM for public. It is not even half finished..

You have everything in comments..
Please do not delete any comment from top.. I think those guys deserves it

PS: Do not republish this GM. Will be updated if I come back

GL to all scripters out there

DOWNLOAD

EDIT: I would publish this on github but have no idea how to use it xD
Reply
#2

Keep up the good work! good job.
Reply
#3

Ty
Reply
#4

First of all:

Quote:
Scripts Only - You may not redistribute the SAMP server/client executables. Only upload scripts and supporting files/folders.

PHP код:
new query[128];
mysql_format(g_SQLquerysizeof(query), "UPDATE `players` SET `Deaths` = %d WHERE `ID` = %d LIMIT 1"PlayerInfo[playerid][Deaths], PlayerInfo[playerid][ID]);
mysql_tquery(g_SQLquery); 
PHP код:
new query[128];
mysql_format(g_SQLquerysizeof(query), "UPDATE `players` SET `Kills` = %d WHERE `ID` = %d LIMIT 1"PlayerInfo[killerid][Kills], PlayerInfo[killerid][ID]);
mysql_tquery(g_SQLquery); 
How is there 128 cells? it's not even close to be.

PHP код:
VehiclesChooseTD[playerid][19] = CreatePlayerTextDraw(playerid194.444168316.933593"To_spawn_a_vehicle_just_press_on_desireed_picture"); 
Why would you even need a PlayerTextDraw for that? use global ones, that's a waste.

PHP код:
new string[128], string2[128], query[128];
format(stringsizeof(string), ""YELLOW"[INFO] "WHITE"Admin "SERVERBLUE"%s "WHITE"setted your money to "SERVERBLUE"%d"GetName(playerid), ammount);
SCM(target, -1string);
format(string2sizeof(string2), "[INFO] Admin %s setted %s %d$"GetName(playerid), GetName(target), ammount);
AdminMessage(-1string2);
WriteLog(MONEYstring2);
mysql_format(g_SQLquerysizeof(query), "UPDATE `players` SET `PocketMoney` = %d WHERE `ID` = %d LIMIT 1"ammountPlayerInfo[target][ID]);
mysql_tquery(g_SQLquery); 
Also, what in the world is this?

This is just a small piece outta loads of things you gotta improve in your gamemode.
Reply
#5

As I said I was learning MySQL and as title said "[UNFINISHED]" so..
Reply
#6

Quote:
Originally Posted by Micko123
Посмотреть сообщение
As I said I was learning MySQL and as title said "[UNFINISHED]" so..
That's not an excuse to make bad code, or you simply release when you improve it, or just don't release at all, because it's not worth it.
Reply
#7

Okay.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)