Jump to content


Photo
- - - - -

[EXA] Cheat/Command Console


  • Please log in to reply
6 replies to this topic

#1 NYS

NYS

    GMC Member

  • GMC Member
  • 435 posts
  • Version:GM:Studio

Posted 13 August 2012 - 06:54 PM

  • Title: Cheat/Command console
  • Description: Easy to implement console for your game
  • GM Version: 8.0
  • Registered: No
  • File Type: .GMK
  • File Size: 13kB
  • File Link: Console English.gmk
  • Required Extensions: None
  • Required DLLs: None

Summary:

I'm sure alot of you play games. Almost all of these games have consoles build in:
Posted Image
I've built exactly a console like it for your GM games. It auto-suggests commands and it's very easy to add commands.

How do I add commands?
In obj_console, in the create event there's a variable called consoleCommands and a script called initCommands(). For example you can have the following:
consoleCommands = "
Put the command here|<Add a 'pipe' and put some information here if you want,
End with a comma,
exit|Shuts down the game,
restart|Restarts the game,
givememoney|\#";

commandCount = initCommands(consoleCommands);
The script initCommands creates a array with your commands called cmd. commandCount tells you how big that array is :)

Then there's a script runCommand. Open this and add your stuff :)

Any questions? Just ask 'm!
  • 1

#2 NYS

NYS

    GMC Member

  • GMC Member
  • 435 posts
  • Version:GM:Studio

Posted 16 August 2012 - 11:54 PM

42 views and 5 downloads :whistle:
Could you please post a reply if you've tried my console :)
  • 0

#3 commanderej

commanderej

    GMC Member

  • GMC Member
  • 47 posts
  • Version:GM8

Posted 20 August 2012 - 02:57 AM

Is there a way to do this with admin commands and permissions in a multiplayer game to have it send data for the command and check it against an admin list???
Wouldnt know Might try in a few days though looks epic!!!

Edited by commanderej, 20 August 2012 - 02:59 AM.

  • 0

#4 NYS

NYS

    GMC Member

  • GMC Member
  • 435 posts
  • Version:GM:Studio

Posted 20 August 2012 - 06:38 PM

Sure, you could send the commands to the server and let the server keep hold of some sort of permission level :)
  • 0

#5 Magicgrafx

Magicgrafx

    GMC Member

  • GMC Member
  • 12 posts
  • Version:GM:Studio

Posted 24 January 2013 - 03:10 PM

i like it, just what i needed for my multiplayer game :)
  • 0

#6 NYS

NYS

    GMC Member

  • GMC Member
  • 435 posts
  • Version:GM:Studio

Posted 30 January 2013 - 04:10 PM

That's good to hear! :)
  • 0

#7 Ruub

Ruub

    GMC Member

  • GMC Member
  • 428 posts
  • Version:GM:Studio

Posted 30 January 2013 - 05:51 PM

Itīs very neat.

I do have a few suggestions since Iīm really keen on user friendly stuf

  • Add a arrow down button (actives when no suggestions are shown) which makes you see ALL variables which you can edit. Really really helpes.
  • When an option is selected I didn't seem to be able to activate it (first I did change the Home button to the Enter button since I don't have a Home button, I use a laptop!)
  • If you really canīt select an option (only retype it) make it so when you press the activate button the line that you selected is the new text_string
  • I didn't look into it enough yet but it was hard for me to change the value, meaning it wasn't user friendly enough on that part xD (for example I typed the string sethealth #10 and nothing happened also with sethealth 10 nothing)

Ps: are you planning to work on this? If so I'll keep track :whistle:
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users