• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Admin System

Status
Not open for further replies.
Level 6
Joined
Jun 11, 2009
Messages
151
I need a Admin System that detects if a certain player is admin

Allows the admin to type -Gold "xxxx" (Gives them gold)

Allows the admin to type -no food (Allows them to build without using food)

Allows the admin to type -kick (Color) Cannot kick other admins

Allows the admin to move around the map freely (in my map you cant leave you
region witch I'm meaning the admin can leave if they want.)

Allows the admin to type -fast exp (Turns exp rate to 300%)

Allows the admin to type -BuildFast (Makes all buildings take 1 second to build)

Allows the admin to type -change difficult (Easy, Medium, Hard, Expert)

When a admin is detected, it adds "(Admin)" after their name without the "
 
Level 16
Joined
Jan 5, 2008
Messages
1,805
It's not that hard to set that only a certain person can use a command...

Just add this condition to your command.

Conditions:
(Name of (Triggering player)) Equal to AdminsName

It depends on who's gonna be the admin, in this case, the host. And, he will problaby not list all hosts to the map. And, what happends if it's two of them in the same game? He need a host detection system.
 
Level 12
Joined
Mar 25, 2009
Messages
366
y if u want i can make it i will just use or conditions :thumbs_up:
Edit: Butt host checker has (small, not made by me) jass code in map custom script
Edit 2: Do u want commands to have effect only on admin or host or all players?
Edit 3: That will be plenty If/Then/Else
Edit 4: Dont worry they wont
 
Last edited:
Level 12
Joined
Mar 25, 2009
Messages
366
I checked your map BoneKnight and i saw that in the attached map the host was the admin.Is this the host checker?or the version in which it includes the host as an admin?cause i asked you to make one trigger in which i will be able to write the names of the admins.

Both host checker and version with host as admin.
Edit1 :done butt u muss set admin names in every function using a substring (if u dont know just type name and set numbers 1,9 for worldedit, 1,5 death, 1,10 Boneknight ( first and last letter number))

Edit2:Fixed crashing problem
Edit3:Fixed Admin Leak
 

Attachments

  • Admin System v2.w3x
    28.2 KB · Views: 44
Last edited:
Status
Not open for further replies.
Top