AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with Amx_Exec (https://forums.alliedmods.net/showthread.php?t=29642)

V I R U S 06-09-2006 14:18

Help with Amx_Exec
 
Hi all!
I have one please to guru's here, who can possibly help me.
All of you of cource know plugin amx_exec.

How can i make e.g amx_punish or amx_blahblah to execute some commands which i define on some client.

E.g if i write in console amx_blahblah it will execute rid of commands which i of cource define in config or plugin on one client.

Thx all!

beezkneez2006 06-09-2006 14:33

well if you want to exec a config, you can have a .cfg in your czero folder of the server and have it named "blahblah.cfg"

then in consol you could type amx_rcon exec blahblah.cfg and it will do the config..

V I R U S 06-10-2006 22:33

Nope. That isn't what i need.

Throstur 06-11-2006 08:54

I think he means either:

A.

amx_punish player
Punishes player

or

B.

amx_exec player "bind mouse1 punishme"
When player presses the mouse button, (s)he is punished,

V I R U S 06-11-2006 10:09

B is right.

I just want to type amx_punish NAME instead of typing "amx_exec player "bind mouse1 punishme" " every time...

k007 06-11-2006 14:21

have you ever read the rules? no slow hackin or anything about slowhackin

Throstur 06-12-2006 12:14

then make a plugin which does that :P, kinda gay but oh well... You can rip the code from the amx_super Quit Assholes code

V I R U S 06-13-2006 11:40

Thats not the slowhackin, thats punishment against the foolasses...

V I R U S 06-13-2006 11:50

So can anyone help me plz?

Throstur 06-13-2006 12:51

just steal code from here and there that does your punish when you do amx_punish asshole which executes this on their local cilent "bind mouse1 punishme"

and which registers that when punishme is said you're slayed or whatever...

amx_exec dude "bind mouse1 +kill" is even possible... but I wouldnt advise it


All times are GMT -4. The time now is 08:07.

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