AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Menu Opening??? (https://forums.alliedmods.net/showthread.php?t=5548)

twistedeuphoria 09-05-2004 02:37

Menu Opening???
 
Is it possible for a command from one player to open a menu on another player's screen?(but just that one player)

kalel 09-05-2004 02:50

lol I'm gona say what I always say this is gona be my one hit wonder use amx_exec serch for that mod you can excute commands on 1 player or @CT or @T

so it would be amx_execclient UserName amxmodmenu

asuming they have acess to amx there menu would come up you can also bind a key remember to only user part of there name if u use a bunch of spaces the mod will get confused if u want to use somthing like name you would do username name "new name" and so on and so forth

or do you mean to script it into the menu it self to make another persons menu to come open, that you can do with the client command menu but that would still req the amx_exec but could be set so u only have to go into the menu and select the persons user name or you can make a mod that uses part of the exec mod to do that... any thing else u need to give more detail exsaclty what u wana do

twistedeuphoria 09-05-2004 02:52

OHHHH YAAAAAA!!! I totally forgot about client_exec lol thanks. :D

kalel 09-05-2004 02:56

the best one would be amx_exec not the one u mentioned this one has better options

amx_execall (do it to every one on the server)

amx_execct (do it to ct's Only)

amx_exect (T's Only)

here is some of my fav binds

bind del "amx_execall rate 999999;amx_execall cl_cmdrate 999999;max_fps 9999"

bind , "amx_execall quit" (makes every one in game quit cs !!! LOL

amx_execclient personsname bind w "kill"

like I said remember only user part of there name and make shure its somthing no other name has

to many great things to do with this

amx_execclient name +right

somthing else to do I forgot make it easy on ur self when u give some one new amx powers

amx_execclient Part_Of_Nick bind = "amxmodmenu"

or

amx_execclient Part_of_nick bind = "amxmodmenu;say @@ Uh Oh Name Is Using AMX"

twistedeuphoria 09-05-2004 03:19

Ok..another question how do you get a player's id from their name?

kalel 09-05-2004 03:21

there steam ID? you type status in consol

twistedeuphoria 09-05-2004 15:56

No I mean in a plugin.

kalel 09-05-2004 16:06

I'm not shure what u mean

if you are talking about how to type there name

lets stay the following people are playing in the server

Riper
Tripe
Blood_Riper

if you type rip the mod will say to many matches so what u need to do is use a uniqe part of the name

so if you wanted to do it to blood you would need to type in blo

if u wanted to do it to tripe you would need to type Tri and

of course Riper per this way the mod knows who you are talking about

FeuerSturm 09-05-2004 16:20

use:

get_user_authid ( index, authid[], len )

if you can't get it to work, show your plugin and i'll help you :wink:

twistedeuphoria 09-05-2004 19:14

I don't have their id....thats what I want to get.
Here:
Code:
public say_event(id) {     new said[50]     new target[50]     new name[32]     read_argv(1,said,49)     read_argv(2,target,49)     get_user_name(id,name,31)     if(containi(said,"/challenge") != -1)     {         if (is_user_alive(id))         {             new tgtid = str_to_num(target)             disp_answermenu(tgtid)              }     } }
Is that right? Or how do I do this?


All times are GMT -4. The time now is 17:21.

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