Raised This Month: $ Target: $400
 0% 

bool not working properly


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xakintosh
I run no-steam servers!
Join Date: Feb 2010
Location: Edge of nowhere
Old 11-29-2010 , 11:34   Re: bool not working properly
Reply With Quote #1

Can it be combie with this
Code:
if(!is_user_alive(id)) {         ColorChat(id, RED, "[kz#] ^x01You must be alive to use this command...")         return PLUGIN_HANDLED     } else { /*alive*/ }
xakintosh is offline
Send a message via Yahoo to xakintosh Send a message via Skype™ to xakintosh
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-29-2010 , 11:39   Re: bool not working properly
Reply With Quote #2

PHP Code:
bool:CheckPlayer(idFloat:flDelay 1.0bool:bHasToBeAlive true)
{
    if( 
bHasToBeAlive && !is_user_alive(id) )
    { 
        
ColorChat(idRED"[kz#] ^x01You must be alive to use this command...")
        return 
false
    
}

    new 
Float:flTime get_gametime()
    new 
Float:flDifference flTime g_flNextCmd[id]

    if(
flDifference 0)
    {
        
ColorChat(idRED"[kz#] ^x01You have to wait %.1s to use this command..."flDifference)
        return 
false
    
}

    
g_flNextCmd[id] = flTime flDelay

    
return true

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 11-29-2010 at 11:42.
ConnorMcLeod 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 11:25.


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