Jump to content
Sign in to follow this  
Smoot178

Looking for an admin spawner

Recommended Posts

Hello everyone. I am looking for a script that will allow an admin on a server spawn something in front of them using a class name in chat. I'm not sure how to create something like this, so that would be why I am asking.

Basically if an admin does a chat command (IE: #spawn UH1Y) it would spawn it somewhere near them.

Thanks.

Share this post


Link to post
Share on other sites

you need a command that can identify an admin from any old client (I suspect that taking apart one of those bloody irritating 1337 h@x0r cheats which can be found on dodgy russian websites might help with this)

Alternatively, look through the comref.

Once you've found your command, you could just dump a trigger into your mission that will only activate for admin via a radio command perhaps.

Just thinking out loud here btw.

Share this post


Link to post
Share on other sites

Even if there was an "isAdmin" command, that could easily be removed from such a script. Therefor I'm not going to post any scripts like that, nor should anyone else.

Share this post


Link to post
Share on other sites

You can make a script that checks for the name of the player. And if the name is == to the pre-determined admin name, it can execute the special commands you want.

But you'd better keep that detail a well-guarded secret--or else people will connect to the server with the admin's name.

Share this post


Link to post
Share on other sites

Or better, you can try to get the admins UID which should be unique.

Share this post


Link to post
Share on other sites

I'd say identifying the admin is the smaller problem about this.

Share this post


Link to post
Share on other sites

Tajin, you are obviously trying to say something but it's very unclear what.... The OP (and others) are requesting a way to detect whether the local client belongs to the game admin. If so, the mission designer can then opt to allow the admin to change game parameters through normal client-server comms using publicVariable. What is your objection to this ?

Share this post


Link to post
Share on other sites

By simply removing the bit of code that identifies the admin, a client-side script could be used to spawn anything in MP. Do you honestly not see the implications of this?

Share this post


Link to post
Share on other sites

Well, you guys imply this would be built into a mission. If its indeed done that way, everything is fine. However it didnt sound like that to me:

I am looking for a script that will allow an admin on a server spawn something in front of them using a class name in chat.

Sounds more like he wants that for his server, not for his mission.

There are ways to do that. But those work for everyone and the only thing that stands between a useful tool and an dangerous cheat in this case would be a few lines of code which everyone with the tiniest bit of knowledge could remove.

Well, back to that detect an admin thing. The server could let an client execute a script in his arma2 directory and wait for the results. The server then sends these results to a script in its own arma2 dir to verify the returned value.

By placing these two scripts, on the client and on the server outside of the missiondirectory, they wont be transfered to other clients and can therefor contain things like login-data.

This would allow for an pretty secure way of recognizing an admin.

Share this post


Link to post
Share on other sites

>By simply removing the bit of code that identifies the admin, a client-side script could be used to spawn anything in MP. Do you honestly not see the implications of this?

We're talking at cross-purposes. I'm simply requesting the isAdmin command from VBS2. What you do on the client after that is down to the mission framework - you have no more ability to spawn things after detecting that you are admin than afterwards.

Share this post


Link to post
Share on other sites

As mentioned, an admin-check can be done rather easily with just a tiny bit of creativity.

You could even put an sqf-file on the server that serves as a config, containing a list of UIDs to which admin-access should be granted. Just call that file every time an "isAdmin" check is performed, to ensure no third-party data can slip in when doing the check.

Share this post


Link to post
Share on other sites

It occurs to me that we may be talking at cross purposes again. I'm interested in the isAdmin command because it lets you determine who the current _game_ admin is. Either because they've been voted in or have used #login. In the scenario I care about, I don't have control over the server or the eventual admin's client so this is purely a way for a mission to offer extra configurability to the admin at run-time.

Share this post


Link to post
Share on other sites

Sorry for gravedigging this YEARS old post, but I am looking for the same thing and I was wondering if it's at all possible to do, and how?

Share this post


Link to post
Share on other sites

Wow. thanks for digging this up, I'm actually having a good laugh at some of these replies. In any case, there are always threads asking about admin/uids, so you should be able to find a solution.

Share this post


Link to post
Share on other sites

I believe that tajin is concerned about the same things I am.

#spawn UH1Y, I'm sure this will be used for constructive purposes...

Use the GUID rout with an if statement.

if getUID = ########

then

run Iswearitsnotanabusivecheat.sqf

You can find all the relevant commands in the scripting command wiki

Share this post


Link to post
Share on other sites

... People use admin dialogues all of the time to spawn vehicles in MP, for their squad / missions. It's not a big deal. Cheaters are going to cheat no matter what. So, if the admin has any ability to spawn a vehicle, this has anything to do with cheaters or potential cheaters. other than the fact of maybe an abusive admin.In that case, that's on him and his unit/clan if he wants to power trip.

Share this post


Link to post
Share on other sites
AAS_IsPlayerAdmin = serverCommandAvailable "#kick";

Share this post


Link to post
Share on other sites

So.. could somebody explain to me how to do it, sorry, I'm a noob at ArmA scripting :D

Share this post


Link to post
Share on other sites

It amuses me that some posters, albeit a couple of years ago, think that an admin spawner script is a pandora's box.

Share this post


Link to post
Share on other sites
It amuses me that some posters, albeit a couple of years ago, think that an admin spawner script is a pandora's box.

If you dabble in Dayz you'll see why :P

I understand that they are useful tools eg. clan training. 1 vs many MP, domination, ect but I still feel apprehensive about that sort of question as you know %95 of the time it'll be used in a way that's detrimental to ARMA. I also understand that the remaining %5 use them to great positive extent.

Share this post


Link to post
Share on other sites

dabble in DayZ? We've been dabbling in the armaverse for years and I think we understand fully. An admin spawner doesn't mean shit. Hackers aren't trying to gain control over admin utilities while they're in a server, they bring their own tools... So yeah, admin UI/dialogue or any sort of "admin spawner" doesn't mean anything. Unless ofcourse you vote the hacker for admin.:annoy: It's just a tool or admins... abusive admin? That's another story.

---------- Post added at 00:31 ---------- Previous post was at 23:51 ----------

Note: I did laugh when I heard some of the dayz servers are actually selling the rights to fly helos (that they no doubt spawn with some utility).

Edited by Iceman77

Share this post


Link to post
Share on other sites
dabble in DayZ? We've been dabbling in the armaverse for years and I think we understand fully. An admin spawner doesn't mean shit. Hackers aren't trying to gain control over admin utilities while they're in a server, they bring their own tools... So yeah, admin UI/dialogue or any sort of "admin spawner" doesn't mean anything. Unless ofcourse you vote the hacker for admin.:annoy: It's just a tool or admins... abusive admin? That's another story.

---------- Post added at 00:31 ---------- Previous post was at 23:51 ----------

Note: I did laugh when I heard some of the dayz servers are actually selling the rights to fly helos (that they no doubt spawn with some utility).

Oh it gets worse. Some servers are now offering what you said + certain amount of loot you can spawn per week if you donate. Higher you donate, more items you get to pick in X amount each week. There is also a hosting company now that offers a "admin spawner". That they can track player movement, where loot spawns, cars spawn, and able to spawn items & put them in peoples backpack all on the fly with a handy UI that is outside the game.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×