PDA

View Full Version : [GameMode] Blank Gamemode | Dynamic | Uses djson


[L3th4l]
05/12/2010, 05:18 AM
Blank | Dynamic | Uses djson
Here is this gamemode i made in a few minutes. I was bored, and well. I don't have much to say about it.


Contains:
* Uses djson to save stats
* Dynamic system - Add vehicles, map icons, 3d text labels, pickups with a command!
* Few admin commands ( Request commands if you want to )
* Set yourself to whatever admin level you want :p
* Dialog login - register
* Save location when you disconnect, load it when you spawn


Screen Shots:
http://i53.tinypic.com/20k2gjt.png
^ Shows the dynamic 3d text labels and pickups


Credits:
Y_Less - sscanf
Incognito - streamer plugin


Usage:
To run this gamemode, simple lauch samp.exe, all server files, includes, and plugins are included!


Bugs | Problems:
IF you find a bug, or a problem report it here, and for more suggestions, report it also.

New update: March 14th - Changes in GM.
Download:
Blank | Dynamic | Uses djson (http://solidfiles.com/d/7085b/download/)

BladerDildo
05/12/2010, 07:17 AM
Nice release good to have fun with friends :D, thank you very much.

Namaco
06/12/2010, 12:38 AM
nice stuff and dynamic thats what Im looking for however is this script being able to convert to roleplay script?

[L3th4l]
06/12/2010, 01:08 AM
That's is up to you. I won't be adding RP | DM stuff, since people have different choices. But its up to y'all. If y'all need any commands, ask here :d

scripter1
06/12/2010, 01:41 AM
Nice.

The message you have entered is too short. Please lengthen your message to at least 8 characters

Namaco
06/12/2010, 07:31 AM
;944159']That's is up to you. I won't be adding RP | DM stuff, since people have different choices. But its up to y'all. If y'all need any commands, ask here :d

Oh nice so it aint only based in DM or Stunt etc?

__
07/12/2010, 04:21 AM
Why DJSON? DJSON is slightly redundant compared to the several other available data storage methods released recently, and SQLite!

[L3th4l]
07/12/2010, 04:57 PM
Djson gets the job done. But I'll make version to chose between Djson or mysql...

showarn
13/02/2011, 04:10 PM
mate i cant get this running i get "connecting to server 127.0.0.1:7777 connection failed?" i have other server wich are working but cant get this one to work its starts normaly but when i open gta samp and connect to server i get this error any1 now how to solve it?

ilikenuts
14/02/2011, 05:50 PM
Awesome Script!!!
i test it!

HyperZ
14/02/2011, 06:39 PM
Nice work. ;)

XFlawless
15/02/2011, 01:44 PM
Amazing work. +1

Arsham7
18/02/2011, 05:12 AM
Hey man, I really love your work, maybe you could probably work for me? I could pay $. Add me to msn Gnrsamp@hotmail.com ill be using your work since its nice and clean, simple.

So ill be modifying it really well!

wheelman_WM
20/02/2011, 10:01 AM
How can i create a Pickup? Next time can u post the commands too please?

[L3th4l]
20/02/2011, 11:25 PM
Admin level 5 commands:

* /Addicon
* /Addvehicle
* /AddPickup
* /Add3DLabel

Admin level 4 commands:

* /Setlevel

Admin level 3 commands:

* /Kick
* /Ban

Admin level 2 commands:

* /Slap
* /Explode
* /Setskin

Admin level 1 commands:

* /Jetpack

Regular player commands:

* /Stats

Have fun :)

sherlock
02/03/2011, 10:32 PM
Awesome! Just what i wanted! a base GM,thanks! :D

Pertus
03/03/2011, 08:09 PM
Booom something that i Like ^^

Ironboy
03/03/2011, 08:12 PM
Nice :)

Mean
03/03/2011, 08:41 PM
You should try Y_Ini instead of DJSON.
Good work with the gamemode.

[L3th4l]
03/03/2011, 11:09 PM
You should try Y_Ini instead of DJSON.
Good work with the gamemode.

I personally hate y_ini ( no offence y_less ), but I'll make a SII version if needed!

And thanx for cmts :)

Cameltoe
03/03/2011, 11:12 PM
You should try Y_Ini instead of DJSON.
Good work with the gamemode.

And Mysql instead of Y_ini :P, there's always an better alternate.

sherlock
04/03/2011, 08:03 AM
How can I change admin system so lvl 2 can kick and lvl 1 can slap?

Mean
04/03/2011, 09:00 AM
Change the ifs.

sherlock
04/03/2011, 05:52 PM
thanks and i just downloaded it and changed server.cfg and re-compiled it (with no warnings or errors) to a new name and it says unknown. I havnt tried it when its just called blank yet. Also happens to my friend when not changing the name...

XFlawless
14/03/2011, 01:43 PM
Found a bug, when i enter the server it doesn't let you login or register. As stated above, Sets the player to Half connected player.

Pz
14/03/2011, 01:57 PM
Adding houses, and businesses will be amazing if you add it in your next version of this script. Oh yeah, read the comment above me. We are all having the same problem.

Thanks for this, by the way. I'll look forward into the script and see your coding.

Desertsoulz
15/03/2011, 02:14 AM
Lethal you know of a good MySQL tutorial cause this actually works! =]

Desertsoulz
15/03/2011, 02:27 AM
How can I change admin system so lvl 2 can kick and lvl 1 can slap?

Find CMD:kick
right under it
if(PVar[playerid][pLevel] >= 3)
change the 3 to the admin level you would like the command to apply to.
example:
CMD:kick(playerid,params[])
{
if(PVar[playerid][pLevel] >= 2)
{
new
ID;
if(unformat(params, "us[70]", ID, params)) return SendClientMessage(playerid, COLOR_RED,""#CRED"USAGE: "#CORANGE"/Kick < PlayerID > < Reason >");
if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_RED, "* That user is not connected!");

SendFMessageToAll(COLOR_LIGHTBLUE, "Admin: %s(%d) has kicked: %s(%d) reason: %s", pName(playerid), playerid, pName(ID), ID, params);
return Kick(ID);
}
else return SendClientMessage(playerid, COLOR_RED, "You are not admin!");
}

[L3th4l]
15/03/2011, 03:43 AM
Updated! Fixed some bugs, and added some features.

/*================ March 14th UPDATES: ====================

* Added 3 new commands: /Mute, /Unmute, /Muted ( Shows list of muted players )
* Players cannot talk while they are muted!! :p
* Added admin chat, type: !Message
* Fixed the "Weird" spawn bug. Also added ALL skins to chose.
* Made a quick RequestClass spot
* Added random messages
* Random spawns if its the firs time on the server! ( Should also fix a bug )
* Added: UsePlayerPedAnims(); for the CJ running style.
* Chat bubble appears ontop of your head when you talk ( type a message )
* Fixed the half way connection problem

================================================== ========*/

XFlawless
15/03/2011, 04:08 AM
;1120329']Updated! Fixed some bugs, and added some features.

/*================ March 14th UPDATES: ====================

* Added 3 new commands: /Mute, /Unmute, /Muted ( Shows list of muted players )
* Players cannot talk while they are muted!! :p
* Added admin chat, type: !Message
* Fixed the "Weird" spawn bug. Also added ALL skins to chose.
* Made a quick RequestClass spot
* Added random messages
* Random spawns if its the firs time on the server! ( Should also fix a bug )
* Added: UsePlayerPedAnims(); for the CJ running style.
* Chat bubble appears ontop of your head when you talk ( type a message )

================================================== ========*/

Thanks for the updates.

Still it's not letting the player connect to server, it's setting the player to half connection.

http://i52.tinypic.com/25jl7iv.png

[L3th4l]
15/03/2011, 05:07 AM
Outdated plugins ftw :p.
Updated!

Medal Of Honor team
15/03/2011, 10:16 AM
nice one!!

blazee14
21/03/2011, 04:39 AM
Could Someone help me please, when am compiling it always gives me this message

fatal error 100: cannot read from file: "CMD"

XFlawless
21/03/2011, 05:05 AM
Password is bugged you can enter any password and login.

sherlock
03/04/2011, 07:24 PM
Password is bugged you can enter any password and login.

yes,plz fix this :(

this is what always happens:

To run this gamemode, simple lauch samp.exe

Done that,mode:unknown. wtf...

ernie
24/04/2011, 05:02 AM
I think this looks absolutley awesome, Really need a good clean simple source for people to work from to stop all the lame GF edits. If you provide resources for people to make servers unique then youll be able to play them.

I really want to use this GM to start my server, because its Simple and doesnt have MySQL. But whenever I try to connect on 127.00.1:7777 it just says server could not respond.

Im using SA-MP 0.3b and running the server straight after unpacking.

Kind Regards,

Liam

ernie
24/04/2011, 07:37 AM
Never mind, Got it to Work. Found 2 Bugs so Far.

1 - If you logout underwater you spawn there walking, which means you can run underwater for ever. When you re-enter water this fixes it.

2 - Entering a bad password is glitched. You can enter different password to the correct one.

Help?

=]

Regards,

Liam

leo3412
24/04/2011, 09:13 AM
Nice script ! i go test it !
(sorry for my bad english i learn english)

linuxthefish
24/04/2011, 10:06 AM
Never mind, Got it to Work. Found 2 Bugs so Far.

1 - If you logout underwater you spawn there walking, which means you can run underwater for ever. When you re-enter water this fixes it.

2 - Entering a bad password is glitched. You can enter different password to the correct one.

Help?

=]

Regards,

Liam

1. Being able to walk underwater when you set your position there is a GTA bug.

[L3th4l]
27/04/2011, 01:06 AM
Sorry for the delay and thanks for the bugs. The log in seems to be the most critical, I'll will re-work it later on!

Nanban
28/05/2011, 01:20 PM
Suggestion :

Hash Password and remove the last save postion

Venice
28/05/2011, 01:34 PM
Awesome

Tachibana
18/06/2011, 04:07 PM
Do you still support this script?

igor_andrusenko
18/07/2011, 12:33 PM
How I delete a admin sistem, I want use LAdmin4v2.

Shuffler
30/09/2011, 08:19 PM
This is a good script to start off with, so far with 1 hour ive learned on the other simple commands how to make other simple commands (:D), i just finished a fully working /givemoney, i also have now more colors in dialogs and /help with more admin commands, /admins, working classes and money saving system. Proud of myself :)

manchestera
14/10/2011, 09:03 PM
Wondering if you could give me a list of the command avaible just want to check i have added everything into my /help commands and /ahelp

lordturhan
15/10/2011, 02:11 PM
Nice to have fun with..

Arsham7
21/10/2011, 04:00 PM
I like the dynamic system :) thanks!

Kindred
28/10/2011, 12:45 AM
fatal error 100: cannot read from file: "CMD"

Without #Include <CMD>:


error 017: undefined symbol "isnull"
error 017: undefined symbol "unformat"
error 017: undefined symbol "isnull"
error 017: undefined symbol "unformat"
error 017: undefined symbol "isnull"
error 017: undefined symbol "unformat"
error 017: undefined symbol "isnull"
error 017: undefined symbol "unformat"
warning 203: symbol is never used: "add3dlabel"
warning 203: symbol is never used: "addicon"
warning 203: symbol is never used: "slap"
warning 203: symbol is never used: "stats"
warning 203: symbol is never used: "unmute"

I need help

JordanMaddox
28/10/2011, 12:09 PM
This is a fun script to play around with and learn!!

lighting957
31/10/2011, 11:12 AM
How do i make myself admin?

TheBest_Hitman
08/03/2012, 12:04 PM
Bug:

Script[gamemodes/Blank.amx]: Runtime error 19: "File or function is not found"

Stefan_Toretto
08/03/2012, 03:59 PM
Bug:

Script[gamemodes/Blank.amx]: Runtime error 19: "File or function is not found"

Make sure you run the proper plugins that this gamemode needs...

DownDuckling
05/05/2012, 01:38 AM
Could not read from file "djson". It is in the include folder and everything. How come?

TheMathleticsHaker
06/07/2012, 12:07 PM
djon can be very messy with formatting, but it does the job!

On another note.

Excellent Script!

TheMathleticsHaker
06/07/2012, 12:24 PM
- Removed -

RamnitCLCZ
03/08/2012, 10:29 AM
How to remove icon, and 3d text label ????

Ben_Gale
03/08/2012, 01:21 PM
Could not read from file "djson". It is in the include folder and everything. How come?

Have you got the latest one though?

kc20121
16/08/2013, 07:56 AM
Thank you! im using it as a base :D

Grizzli
30/11/2013, 08:38 AM
can you please please please please make it 0.3x i'l give you rep+

Xsyiaris
30/11/2013, 09:49 AM
Have anyone of you noticed this is from 2010??????????