ID:165163
 
Can somone please give me a GM code that can Ban Boot mute and announce plz thank you :)

Use the search feature thats that its there for, there are many admin libs out there don't be lazy.
In response to A.T.H.K
Booting takes 10 seconds to make.
mob
verb
Boot(mob/M in world)
set category = "Admin"//Sets the category...
M << "You were booted by [usr]!"//Says it to them
M.Logout()
//Logs em out.</dm>
That is one that is very basic. I will not help with the rest. Look at some libs.
In response to Revojake
Too bad your code will work for everyone and no an admin.

Next time please look at what your doing and don't give false code.
In response to A.T.H.K
He said the verbs. He didnt tell me that he wanted it to be set as admin/verb and didnt tell me to make a list
In response to Revojake
Alright then let me be more pacific...If you want
I want to be set as Admin with these verbs only to myself... Can someone help me do that ? >.<?
In response to K0rn
http://developer.byond.com/hub/ Search?qd=hubIndex&all_channels=1&view=8&pub_status=0&starti tem=0&type=132064&text=admin+system
http://developer.byond.com/hub/ ub_status=0&startitem=0&type=132064&text=admin+systemhttp:// developer.byond.com/hub/ ub_status=0&startitem=0&type=132064&text=admin+systemhttp:// developer.byond.com/hub/ Search?qd=hubIndex&all_channels=1&view=8&pub_status=0&starti tem=0&type=132064&text=admin+system
http://developer.byond.com/hub/ Search?qd=hubIndex&all_channels=1&view=8&pub_status=0&starti tem=0&type=132064&text=admin+system
http://developer.byond.com/hub/ Search?qd=hubIndex&all_channels=1&view=8&pub_status=0&starti tem=0&type=132064&text=admin+system
http://developer.byond.com/hub/ Search?qd=hubIndex&all_channels=1&view=8&pub_status=0&starti tem=0&type=132064&text=admin+system
http://developer.byond.com/hub/ Search?qd=hubIndex&all_channels=1&view=8&pub_status=0&starti tem=0&type=132064&text=admin+system
http://developer.byond.com/hub/ Search?qd=hubIndex&all_channels=1&view=8&pub_status=0&starti tem=0&type=132064&text=admin+system
http://developer.byond.com/hub/ Search?qd=hubIndex&all_channels=1&view=8&pub_status=0&starti tem=0&type=132064&text=admin+system
http://developer.byond.com/hub/ Search?qd=hubIndex&all_channels=1&view=8&pub_status=0&starti tem=0&type=132064&text=admin+system
http://developer.byond.com/hub/ Search?qd=hubIndex&all_channels=1&view=8&pub_status=0&starti tem=0&type=132064&text=admin+system
http://developer.byond.com/hub/ Search?qd=hubIndex&all_channels=1&view=8&pub_status=0&starti tem=0&type=132064&text=admin+system
In response to Bobthehobo
You dint need to spam dude... But ill check it out
In response to K0rn
You didn't need to post this theres a search feature for a reason.
In response to A.T.H.K
Ok No matter what Admin code I use it says 0 errors 0 warnings I switch their name with my user name but it doesnt work.... Would this have anything to do with my login screen because I made like a whole new game to test and it works on that...For some reason I put the code on my real game and it doesnt work and it doesnt have any errors I think it might be the Login screen that screws it up... So im not really sure about this...
In response to K0rn
Are you including the lib with your source?
In response to K0rn
Alright I took my login screen out of my game i put it in anouther file to save it...Now the admin thing works...
But I want both lol so what am i going to do?
In response to K0rn
1. You cannot just copy and paste. If that is all you can do, go back and learn the basics of the language.

2. You have to be more specific with what library and what your login screen code looks like.
In response to A.T.H.K
Bubble I do know how to write out codes its my first game and Ive been workin on it for 1 year putting on an admin system was the last thing on my mind and ive never done one I just need to know how to get my Start menu and Admin system to work at the same time thats all I ask you dont really have to critices my coding...
In response to K0rn
K0rn wrote:
Bubble I do know how to write out codes its my first game and Ive been workin on it for 1 year putting on an admin system was the last thing on my mind and ive never done one I just need to know how to get my Start menu and Admin system to work at the same time thats all I ask you dont really have to critices my coding...




I forgot your name so I said buuble sorry lol bob
In response to K0rn
That is no excuse for coping and pasting. The only way figure it out is to know how the code works...

Anyway, as I said in my previous post, if you want help, you have to provide us with the details. We do not know what your login system and screen look like. (Though we can probably find the code in some library or forum post since you copy and paste everything.)

Also, you know you can edit your posts, right?
In response to Bobthehobo
mob
var
muted = 0
verb
Boot(mob/M in world)
M << "You were booted by [usr]!"
del M
Mute(mob/M in world)
set category = "Admin"
if(!M.muted)
M.muted = 1
else
return
Annonce(msg as message)
world << msg
Say(msg as text)
if(usr.muted == 1)
usr << "You are muted"
return
else
view() << "[usr] says, [msg]"


Make sure you use my say code
- Miran94
In response to Revojake
Just to point out for clarity, he originally asked for GM code, not admin code. He did say admin down the road, and of course the verbs he was asking for were admin verbs, but there is a difference. In this case you didn't do anything to limit this verb to just admins in the game, though.

Also, when posting code, never use a // comment without putting some space in front of it, unless it's on its own line. If it follows some code, always put in a spacer (preferably several spaces, like a tab) for clarity.

Lummox JR