Raised This Month: $ Target: $400
 0% 

need some help with a line


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
card
Member
Join Date: Jun 2008
Old 12-22-2008 , 10:46   need some help with a line
Reply With Quote #1

PHP Code:
public clcmd_noclip(id)
{
    if(!
is_user_alive(id) || g_iBestClimber != id || g_fStartTime[id])
    {
        return 
1;
    }
    if(!
get_user_noclip(id))
    {
        
set_user_noclip(id,1)
        
set_hudmessage(025500.60.0127.08.00.11.0, -1);
        
show_hudmessage(id"Noclip Activated.");
    }
    else
    {
        
set_user_noclip(id,0)
        
set_hudmessage(025500.60.0127.08.00.11.0, -1);
        
show_hudmessage(id"Noclip Disabled.");
    }
    return 
PLUGIN_HANDLED

i need a little help with this line
if(!is_user_alive(id) || g_iBestClimber != id || g_fStartTime[id])

first, it`s verified if the user is alive, than if he is the 1337 climber (bestclimber) than if that player have the timer running. if he pass all conditions, he will recieve noclip reward. i want to use noclip if i am only admin, not necessarly bestclimber. i know that something should be added to that line, something like "&& is_user_admin(id)", i`ve tried, but nothing happened, except all players were allowed to use that reward.
card is offline
 



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:09.


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