Raised This Month: $7 Target: $400
 1% 

Nice player trail


Post New Thread Reply   
 
Thread Tools Display Modes
botz
AlliedModders Donor
Join Date: Jan 2015
Old 02-22-2015 , 04:39   Re: Nice player trail
Reply With Quote #141

How can i make this admin only?
botz is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 02-22-2015 , 05:19   Re: Nice player trail
Reply With Quote #142

By reading the main post !

Ps. Put your edited commands/cvars in amxx.cfg.
__________________
ANTICHRISTUS is offline
botz
AlliedModders Donor
Join Date: Jan 2015
Old 02-23-2015 , 19:18   Re: Nice player trail
Reply With Quote #143

need some little help here, when people say trail in chat, its for all players, i want it to be removed. i cant find anything in amxx.cfg need some help here. i just want trail to be working by amx_trail so no chat trail, it would be then just for admins. Thanks for responding to my last question.

Thanks,
Have a Nice Day.

Sincerely,
BotZ
botz is offline
deadman909
Veteran Member
Join Date: Oct 2008
Old 02-24-2015 , 05:16   Re: Nice player trail
Reply With Quote #144

Have you tried setting amx_trail 0
And than tried using the amx_trail_user Command to see what happens?

If that does not work than my suggestion would be to replace line 92
PHP Code:
    register_clcmd("say""SayCmd"0""
With This (Just put 2 // In front of line 92)
PHP Code:
    // register_clcmd("say", "SayCmd", 0, "") 
__________________

deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
botz
AlliedModders Donor
Join Date: Jan 2015
Old 02-24-2015 , 17:37   Re: Nice player trail
Reply With Quote #145

Thanks

Last edited by botz; 02-24-2015 at 17:42. Reason: I got the answer of my recent question i asked.
botz is offline
botz
AlliedModders Donor
Join Date: Jan 2015
Old 02-24-2015 , 18:13   Re: Nice player trail
Reply With Quote #146

That // thing turned off trail it doesnt work for admins either now :/
botz is offline
deadman909
Veteran Member
Join Date: Oct 2008
Old 02-25-2015 , 15:28   Re: Nice player trail
Reply With Quote #147

Quote:
Originally Posted by botz View Post
That // thing turned off trail it doesnt work for admins either now :/
Admins should still be able to use the amx_trail_user

Did you want it so only admins can use the Chat Command?

I have not coded in a long time but I think the bottom should work. So only admins with KICK LEVEL can only use trail chat command.

Find this code below in the plugin Specifically line 405
PHP Code:
public SayCmd(idlevelcid) {
    new 
args[128], msg[200], plName[MAX_NAME_LENGTH], colname[MAX_NAME_LENGTH], arg2[MAX_NAME_LENGTH], arg3[MAX_NAME_LENGTH], typenum
    
    read_args
(args128)
    
remove_quotes(args// THIS IS LINE 405 
After line 405 add this
PHP Code:
    if (!(get_user_flags(id) & ADMIN_KICK))
    {
        
client_print(idprint_chat"You don't have access to trails.");
        return 
PLUGIN_HANDLED;
    } 
Final Outcome would look like this
PHP Code:
public SayCmd(idlevelcid) {
    new 
args[128], msg[200], plName[MAX_NAME_LENGTH], colname[MAX_NAME_LENGTH], arg2[MAX_NAME_LENGTH], arg3[MAX_NAME_LENGTH], typenum
    
    read_args
(args128)
    
remove_quotes(args)
    
    if (!(
get_user_flags(id) & ADMIN_KICK))
    {
        
client_print(idprint_chat"You don't have access to trails.");
        return 
PLUGIN_HANDLED;
    } 
__________________


Last edited by deadman909; 02-25-2015 at 15:49.
deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
botz
AlliedModders Donor
Join Date: Jan 2015
Old 02-25-2015 , 17:35   Re: Nice player trail
Reply With Quote #148

No i just want only admin should use amx_trail and that way trail should work only. But when anyone in chat says trail his trail works, well we need no one to have trail, we only want admins to have trail by typing in console amx_trail. But here its for everyone who says trail in chat his trail works, but we dont need trail to be working for everyone by typing in chat "trail", we only want trail to work for admins by amx_trail, can you here post the whole coded .sma for this so i can copy and paste it would be much easier or please guide me.

Thank you for helping me.
Have a Nice day!

Last edited by botz; 02-25-2015 at 17:37.
botz is offline
deadman909
Veteran Member
Join Date: Oct 2008
Old 02-25-2015 , 23:49   Re: Nice player trail
Reply With Quote #149

I just tried the plugin with the 2 slashes in front of say command and the amx_trail_user command works fine.

PHP Code:
    // register_clcmd("say", "SayCmd", 0, "") 
__________________

deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
Iori
Junior Member
Join Date: Jan 2016
Old 01-30-2016 , 10:56   Re: Nice player trail
Reply With Quote #150

Hello Bro!!
when how to enable the trail.. because whenever i write trail red there is an error.... it come like trail enabled..Help me
Iori is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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