Raised This Month: $ Target: $400
 0% 

T-Virus Antidote


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 05-09-2009 , 07:53   Re: T-Virus Antidote
Reply With Quote #1

You have to return a value in that if statement. If you do that, the rest of the code won't be executed.

Code:
if(!is_user_alive(id)) 
    { 
        client_print(id, print_chat, "You can't buy an antidote while you are dead!");
        return PLUGIN_HANDLED;
    }



Biohazard uses fakemeta to retreive & set a player's amount of money. Cstrike is faster than fm, so your method is fine.

__________________

anakin_cstrike 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 01:31.


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