Raised This Month: $51 Target: $400
 12% 

bool return


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
daniel46
Senior Member
Join Date: Dec 2011
Old 11-22-2012 , 09:04   bool return
Reply With Quote #1

how can i return bool and then in the other plugin make it true/false?

also i have point system so my question is do i need to save it each time he do somthing with points?

or vest is to save when he disconnect the server?

Last edited by daniel46; 11-22-2012 at 09:06.
daniel46 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-22-2012 , 12:08   Re: bool return
Reply With Quote #2

You can use xvars, see xolent snippet in snippet forum
It's enough to save on client_disconnect, and to load on client_authorized, you can use nvault or mysql.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
daniel46
Senior Member
Join Date: Dec 2011
Old 11-23-2012 , 06:45   Re: bool return
Reply With Quote #3

already did somthing with it but now how can i return bool and make it true/false in the other plugin?
daniel46 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-23-2012 , 11:33   Re: bool return
Reply With Quote #4

Just use get_xvar_ native and see if it's 0 or 1 ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
daniel46
Senior Member
Join Date: Dec 2011
Old 11-24-2012 , 09:07   Re: bool return
Reply With Quote #5

can you give me an small code example?
daniel46 is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 11-24-2012 , 13:05   Re: bool return
Reply With Quote #6

https://forums.alliedmods.net/showth...highlight=xvar

Exolent has examples in his tutorial. Use those.
__________________
Hi.
Kreation 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:50.


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