Raised This Month: $32 Target: $400
 8% 

simple join plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
generals
Senior Member
Join Date: Aug 2018
Old 02-19-2019 , 09:03   simple join plugin
Reply With Quote #1

hi guys

i want this plugin:

when admin join the server "sm plugins unload rockthevote"

when left the server "sm plugins load rockthevote"

thanks
generals is offline
Nexd
BANNED
Join Date: Dec 2013
Location: Hungary
Old 02-19-2019 , 09:30   Re: simple join plugin
Reply With Quote #2

Hello, u can try this, i haven't tested it

edit: SP reupload
Attached Files
File Type: sp Get Plugin or Get Source (rtvlock.sp - 49 views - 1.1 KB)

Last edited by Nexd; 02-19-2019 at 12:08.
Nexd is offline
Cruze
Veteran Member
Join Date: May 2017
Old 02-19-2019 , 11:19   Re: simple join plugin
Reply With Quote #3

PHP Code:
public OnClientPostAdminCheck(client){
    
    
AdminCount++;

Should be
PHP Code:
public OnClientPostAdminCheck(client){
    
    if(
CheckCommandAccess(client"sm_admin"ADMFLAG_GENERIC))
             
AdminCount++;

I guess?
__________________
Taking paid private requests! Contact me
Cruze is offline
Nexd
BANNED
Join Date: Dec 2013
Location: Hungary
Old 02-19-2019 , 11:58   Re: simple join plugin
Reply With Quote #4

Yeah, you're right
I've forgot that x_X

Last edited by Nexd; 02-19-2019 at 11:58.
Nexd is offline
Cruze
Veteran Member
Join Date: May 2017
Old 02-19-2019 , 13:47   Re: simple join plugin
Reply With Quote #5

Above one wasn't working when client typed "rockthevote" or "rtv". Was only working with "sm_rtv". So added this function in sourcemod's rockthevote plugin!
Untested.
Attached Files
File Type: sp Get Plugin or Get Source (rockthevote.sp - 126 views - 7.8 KB)
__________________
Taking paid private requests! Contact me

Last edited by Cruze; 02-19-2019 at 13:49.
Cruze is offline
generals
Senior Member
Join Date: Aug 2018
Old 02-19-2019 , 17:37   Re: simple join plugin
Reply With Quote #6

hi guys..really thanks to Nexd & Cruze..

i use this plugin :
https://forums.alliedmods.net/showthread.php?t=156974

can u add to rockthevote_extended?
generals is offline
Cruze
Veteran Member
Join Date: May 2017
Old 02-20-2019 , 10:03   Re: simple join plugin
Reply With Quote #7

Here you go! Untested.
Attached Files
File Type: sp Get Plugin or Get Source (rockthevote_extended.sp - 38 views - 9.1 KB)
File Type: smx rockthevote_extended.smx (17.5 KB, 40 views)
__________________
Taking paid private requests! Contact me
Cruze is offline
Cruze
Veteran Member
Join Date: May 2017
Old 02-20-2019 , 10:13   Re: simple join plugin
Reply With Quote #8

Edited Nexd's plugin so it should work now!
Attached Files
File Type: sp Get Plugin or Get Source (rtvlock.sp - 49 views - 1.4 KB)
File Type: smx rtvlock.smx (12.9 KB, 28 views)
__________________
Taking paid private requests! Contact me
Cruze is offline
generals
Senior Member
Join Date: Aug 2018
Old 02-22-2019 , 06:04   Re: simple join plugin
Reply With Quote #9

hi

don't works

cant use sm plugins load and unload? (when admin join and left)

check admins online (Because he may be the admin and leave the other admin)
generals is offline
Nexd
BANNED
Join Date: Dec 2013
Location: Hungary
Old 02-22-2019 , 08:01   Re: simple join plugin
Reply With Quote #10

Can you upload your rtv plugin? and i'll edit it

Last edited by Nexd; 02-22-2019 at 08:10.
Nexd is offline
Reply



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 18:41.


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