View Single Post
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