RolePlay GameMode [UNFINISHED] -
Micko123 - 07.12.2016
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
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
Re: RolePlay GameMode [UNFINISHED] -
RyderX - 07.12.2016
Keep up the good work! good job.
Re: RolePlay GameMode [UNFINISHED] -
Micko123 - 07.12.2016
Ty
Re: RolePlay GameMode [UNFINISHED] - Jelly23 - 07.12.2016
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_SQL, query, sizeof(query), "UPDATE `players` SET `Deaths` = %d WHERE `ID` = %d LIMIT 1", PlayerInfo[playerid][Deaths], PlayerInfo[playerid][ID]);
mysql_tquery(g_SQL, query);
PHP код:
new query[128];
mysql_format(g_SQL, query, sizeof(query), "UPDATE `players` SET `Kills` = %d WHERE `ID` = %d LIMIT 1", PlayerInfo[killerid][Kills], PlayerInfo[killerid][ID]);
mysql_tquery(g_SQL, query);
How is there 128 cells? it's not even close to be.
PHP код:
VehiclesChooseTD[playerid][19] = CreatePlayerTextDraw(playerid, 194.444168, 316.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(string, sizeof(string), ""YELLOW"[INFO] "WHITE"Admin "SERVERBLUE"%s "WHITE"setted your money to "SERVERBLUE"%d", GetName(playerid), ammount);
SCM(target, -1, string);
format(string2, sizeof(string2), "[INFO] Admin %s setted %s %d$", GetName(playerid), GetName(target), ammount);
AdminMessage(-1, string2);
WriteLog(MONEY, string2);
mysql_format(g_SQL, query, sizeof(query), "UPDATE `players` SET `PocketMoney` = %d WHERE `ID` = %d LIMIT 1", ammount, PlayerInfo[target][ID]);
mysql_tquery(g_SQL, query);
Also, what in the world is this?
This is just a small piece outta loads of things you gotta improve in your gamemode.
Re: RolePlay GameMode [UNFINISHED] -
Micko123 - 07.12.2016
As I said I was learning MySQL and as title said "[UNFINISHED]" so..
Re: RolePlay GameMode [UNFINISHED] - Jelly23 - 07.12.2016
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.
Re: RolePlay GameMode [UNFINISHED] -
Micko123 - 07.12.2016
Okay.