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

Bool different status on different maps


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Crackhead69
Member
Join Date: Feb 2021
Old 05-05-2021 , 17:54   Bool different status on different maps
Reply With Quote #1

Hello!
Can somebody help me out on how i can save bool's status on the map i am currently in.

I want to be able to change the bool status while in game, and when i rejoin that map that bool to be the value i left it on
PHP Code:
new bool:TestStatus

public plugin_init()
    
register_clcmd("say /changebool","BoolAlter")
    
public 
BoolAlter()
{
    if(
TestStatus == true){
        
TestStatus false
    
}else{
        
TestStatus true
    
}
    
    
save_map_info()
}

public 
client_connect(id)
{
    
load_map_info()


Last edited by Crackhead69; 05-05-2021 at 17:57.
Crackhead69 is offline
 



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 23:52.


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