Raised This Month: $ Target: $400
 0% 

[REQ] Free Credits To Vip In Zeph Store


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Pilo
AlliedModders Donor
Join Date: Jan 2019
Location: Israel
Old 05-07-2020 , 11:35   Re: [REQ] Free Credits To Vip In Zeph Store
Reply With Quote #2

PHP Code:
#include <sourcemod>
#include <store>

ConVar g_cvCredits;
ConVar g_cvTimer;

public 
Plugin myinfo 
{
    
name "VIP Credits",
    
author "Pilo",
    
description "",
    
version "1.0",
    
url ""
};

public 
void OnPluginStart()
{
    
g_cvCredits CreateConVar("sm_timer_credits""50""How much credits VIP players get.");
    
g_cvTimer CreateConVar("sm_timer_time""120.0""Timer time (Float value)");
    
    
CreateTimer(g_cvTimer.FloatValueTimer_Credits_TIMER_REPEAT);
}

public 
Action Timer_Credits(Handle timer)
{
    for (
int i 1<= MaxClientsi++)
    {
        if (
IsClientInGame(i) && !IsFakeClient(i))
        {
            if (
CheckCommandAccess(i"sm_vip"ADMFLAG_RESERVATION|ADMFLAG_CUSTOM1|ADMFLAG_CUSTOM5|ADMFLAG_CUSTOM6))
            {
                
Store_SetClientCredits(iStore_GetClientCredits(i) + g_cvCredits.IntValue);
                
PrintToChat(i"[SM] All \x04VIP\x01 players received \x04%i\x01 credits"g_cvCredits.IntValue);
            }
        }
    }

__________________

Taking Private(PAID) Plugins In PM
Feel free to Donate with PayPal
Feel free to message me in Discord Pilo#8253
Total donated : 25$

Last edited by Pilo; 05-07-2020 at 11:35.
Pilo 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 04:40.


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