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

[CSGO] IsCookieTrue !!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Dr.Mohammad
Senior Member
Join Date: Jan 2016
Location: CSGO Servers
Old 04-01-2019 , 23:45   [CSGO] IsCookieTrue !!
Reply With Quote #1

hi guys!!

i set cookie "0" or "1" before, i want check cookie for return true or false!!
this is true??
PHP Code:
stock bool IsCookieTrue(Handle CookieName)
{
    
char Char_Value[8];
    
GetClientCookie(clientCookieNameChar_Valuesizeof(Char_Value));
    
int Int_Value StringToInt(Char_Value);
    
    if(
Int_Value == 1)
    {
        return 
true;
    }
    else if(
Int_Value <= || Int_Value 1)
    {
        return 
false;
    }

edit: How i can save cookie only for server??
PHP Code:
SetServerCookie(CookieNameChar_Value);
GetServerCookie(CookieNameChar_Valuesizeof(Char_Value)); 

Last edited by Dr.Mohammad; 04-02-2019 at 00:03.
Dr.Mohammad 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 13:42.


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