Raised This Month: $ Target: $400
 0% 

[HELP] limit buy HP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 11-25-2015 , 21:07   Re: [HELP] limit buy HP
Reply With Quote #1

Quote:
public client_connect( id )
{
g_iTem[ id ] = false // set the bool to false when the player connect
}
I thought booleans are set to false by default?
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-25-2015 , 21:50   Re: [HELP] limit buy HP
Reply With Quote #2

Quote:
Originally Posted by Chihuahuax View Post
I thought booleans are set to false by default?
They are but it has to be done during gameplay.

Here's why:
1. bugsy connects on slot 3, boolean is set to true
2. bugsy disconnects from the server, value is still true
3. Chihuahuax connects on slot 3, value is still true. It is set to false to reset it for players joining on that same slot.
__________________

Last edited by Bugsy; 11-25-2015 at 21:52.
Bugsy 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:13.


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