Raised This Month: $ Target: $400
 0% 

Solved Player bool


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 07-03-2018 , 10:41   Re: Player bool
Reply With Quote #1

Variant A:

new bool:race_creator => new bool:race_creator[33]

how to get specified players race_creator?
use race_creator[id] and not race_creator
how to set specified players race_creator?
race_creator[id] = X

Variant B (Because its bool, you can also use bit sums):

new race_creator

how to get specified players race_creator?
if (race_creator & (1 << id))
how to set specified players race_creator?
race_creator |= (1 << id)
how to remove specified players race_creator?
race_creator &= ~(1 << id)

(Believe me, first one is easier)
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 07-03-2018 at 10:46.
Ghosted 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 12:25.


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