AlliedModders

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

MspoR 01-03-2016 12:24

Grab Menu problem
 
Hi everyone. So I'm having problem with my grab menu.
PHP Code:

switch(item)

case 
0:

client_cmd(id,"say @@ text")

case 
1:

client_cmd (id,"say @@ text...");


return 
PLUGIN_HANDLED;



So its admin grab menu. Case 0(Button 1) works. And stupid second case(button 2) doesn't work because stupid "anti slowhacking". But it's made for steam admins. So... how to avoid this ?

NikKOo31 01-03-2016 15:27

Re: Grab Menu problem
 
Have you tried?

PHP Code:

engclient_cmd(id,"say @@ text..."); 


MspoR 01-03-2016 15:51

Re: Grab Menu problem
 
I did, there wasn't any result... no answer, no error. Just nothing.

redivcram 01-03-2016 16:14

Re: Grab Menu problem
 
Client Cmd not supported

MspoR 01-03-2016 17:11

Re: Grab Menu problem
 
So you one is engclient_cmd, yes ?

NikKOo31 01-03-2016 23:10

Re: Grab Menu problem
 
Quote:

Originally Posted by MspoR (Post 2379662)
So you one is engclient_cmd, yes ?

Engclient_cmd doens't send the command to the client, afaik. I don't see why not :p

siriusmd99 01-04-2016 10:57

Re: Grab Menu problem
 
It's possible because i'm kind, kappa :
https://forums.alliedmods.net/showpo...5&postcount=10

Use that stock in place of client_cmd.

And man, use quotes!!


SV_SC (id,"say ^"@@ text...^"");

HamletEagle 01-04-2016 11:39

Re: Grab Menu problem
 
Quote:

Originally Posted by siriusmd99 (Post 2379878)
It's possible because i'm kind, kappa :

Because you took the code from github and now you claim that you invented the wheel.

siriusmd99 01-04-2016 11:44

Re: Grab Menu problem
 
It was a joke,i've put kappa. Anyway all are saying that this doesnt work and nobody comes with this stock , only me. Because it has been made by russian guy and I didnt take it from guthub,but from russian forum. This stock has been made by Ostrog.

HamletEagle 01-04-2016 11:48

Re: Grab Menu problem
 
You know that this stock can be used for evil things, right ?


All times are GMT -4. The time now is 09:32.

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