AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   CSGO - Code system (https://forums.alliedmods.net/showthread.php?t=335580)

tommiczek 12-15-2021 12:02

CSGO - Code system
 
Hello, i got this idea and im not good at making plugins so im asking you

When somebody types /activate

It will say "Enter code" into chat and then they will need to send code that we have creater

I want to plugin read from "codes.txt" and there i will add some code that will activate flag ARST
Sorry for my bad english, thanks.

Bacardi 12-16-2021 13:52

Re: CSGO - Code system
 
3 Attachment(s)
- command: sm_activate
After this player have to enter code in chat in 15 seconds.

When 15 seconds have pass or player enter something in chat once, chat works normally.
To try code again, use command /activate again.

Player already listed in SM admin cache can't use this command, only for non-admins.

- create admin group "codes"
or plugin fail to load. You have example file in this post.
You can change admin group privilege without editing plugin code.

- Add your "codes.txt" in ...addons/sourcemod/configs/
or plugin fail to load.
Reloading this plugin you see codes printed in server console. If not, then your codes.txt file is not Windows or Linux format.
one max. length code is 128

-else
Plugin give temporary admin access. If player disconnect, map change or someone use command sm_reloadadmins, they lose admin access.


All times are GMT -4. The time now is 04:42.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.