Raised This Month: $ Target: $400
 0% 

[Vote ban] [Rock The Vote]


Post New Thread Reply   
 
Thread Tools Display Modes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-18-2013 , 02:06   Re: [Vote ban] [Rock The Vote]
Reply With Quote #11

Quote:
Originally Posted by Kia View Post
I was just quick typing a solution, didn't test it.
That's not a good excuse for getting trivial things wrong and not updating when told corrections.
__________________
fysiks is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 08-18-2013 , 02:07   Re: [Vote ban] [Rock The Vote]
Reply With Quote #12

Tapatalk crashes when I try to edit..
__________________
Kia is offline
akash_guptacosmos
Senior Member
Join Date: May 2013
Location: India,Kolkata
Old 08-18-2013 , 11:11   Re: [Vote ban] [Rock The Vote]
Reply With Quote #13

Quote:
Originally Posted by Kia View Post
Use this stock I made

PHP Code:
stock bool:is_admin_on_server()
{
    new 
players[32], pnumtempid
    get_players
(playerspnum)
    
    for( new 
ii<pnumi++ ) 
    {
        
tempid players[i]
        if(
get_user_flags(tempid) && ADMIN_BAN)
            return 
true
    
}
    
    return 
false

And at the command you just add

PHP Code:
if(is_admin_on_server)
{
     
// client_print(id, print_chat, "There is an admin on the server, you can't use that command now.")
     
return PLUGIN_HANDLED

Bro updating codes? please? i am waiting

Last edited by akash_guptacosmos; 08-18-2013 at 11:11.
akash_guptacosmos is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 08-18-2013 , 11:22   Re: [Vote ban] [Rock The Vote]
Reply With Quote #14

Better?

PHP Code:
stock bool:is_admin_on_server()
{
    new 
players[32], pnumtempid
    get_players
(playerspnum)
    
    for( new 
ii<pnumi++ ) 
    {
        
tempid players[i]
        if(
get_user_flags(tempid) & ADMIN_BAN)
            return 
true
    
}
    
    return 
false

And at the command you just add

PHP Code:
if(is_admin_on_server())
{
     
// client_print(id, print_chat, "There is an admin on the server, you can't use that command now.")
     
return PLUGIN_HANDLED

__________________
Kia 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 00:04.


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