Raised This Month: $ Target: $400
 0% 

[CS:S] Jail Awards with credits system


Post New Thread Reply   
 
Thread Tools Display Modes
Author
EGood
Member
Join Date: Feb 2011
Location: Israel
Plugin ID:
2738
Plugin Version:
1.2 public version
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    3 
    Plugin Description:
    For buy awards in jail with a credits system
    Old 06-27-2012 , 23:28   Re: [CS:S] Jail Awards with credits system
    Reply With Quote #1

    hi, do it only for the T ..
    i think its good only for the T
    EGood is offline
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 06-28-2012 , 10:54   Re: [CS:S] Jail Awards with credits system
    Reply With Quote #2

    Quote:
    Originally Posted by EGood View Post
    hi, do it only for the T ..
    i think its good only for the T
    Change this

    Code:
    public Action:DOMenu(client,args)
    {
        DID(client);
        PrintToChat(client, "\x04[SM_JailAwards] \x05Your credits: %i", g_iCredits[client]);
    }
    For this

    Code:
    public Action:DOMenu(client,args)
    {
        if(GetClientTeam(client) != 2)
        {
             PrintToChat(client, "\x04[SM_JailAwards] \x05This is only for Ts");
             return;
        }
    
        DID(client);
        PrintToChat(client, "\x04[SM_JailAwards] \x05Your credits: %i", g_iCredits[client]);
    }
    And recompile
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.

    Franc1sco is offline
    Send a message via MSN to Franc1sco
    EGood
    Member
    Join Date: Feb 2011
    Location: Israel
    Old 06-28-2012 , 22:04   Re: [CS:S] Jail Awards with credits system
    Reply With Quote #3

    Quote:
    Originally Posted by Franc1sco View Post
    Change this

    Code:
    public Action:DOMenu(client,args)
    {
        DID(client);
        PrintToChat(client, "\x04[SM_JailAwards] \x05Your credits: %i", g_iCredits[client]);
    }
    For this

    Code:
    public Action:DOMenu(client,args)
    {
        if(GetClientTeam(client) != 2)
        {
             PrintToChat(client, "\x04[SM_JailAwards] \x05This is only for Ts");
             return;
        }
    
        DID(client);
        PrintToChat(client, "\x04[SM_JailAwards] \x05Your credits: %i", g_iCredits[client]);
    }
    And recompile
    ok thanks
    EGood is offline
    thecrew
    Junior Member
    Join Date: Nov 2012
    Old 11-18-2012 , 23:50   Re: [CS:S] Jail Awards with credits system
    Reply With Quote #4

    Quote:
    Originally Posted by Franc1sco View Post
    Change this

    Code:
    public Action:DOMenu(client,args)
    {
        DID(client);
        PrintToChat(client, "\x04[SM_JailAwards] \x05Your credits: %i", g_iCredits[client]);
    }
    For this

    Code:
    public Action:DOMenu(client,args)
    {
        if(GetClientTeam(client) != 2)
        {
             PrintToChat(client, "\x04[SM_JailAwards] \x05This is only for Ts");
             return;
        }
    
        DID(client);
        PrintToChat(client, "\x04[SM_JailAwards] \x05Your credits: %i", g_iCredits[client]);
    }
    And recompile
    I don't know where the .sp file is >.<
    thecrew is offline
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 11-19-2012 , 13:16   Re: [CS:S] Jail Awards with credits system
    Reply With Quote #5

    Quote:
    Originally Posted by thecrew View Post
    I don't know where the .sp file is >.<
    Get sp file and modify it
    https://forums.alliedmods.net/attach...4&d=1324920231


    Recompile, you can use this:
    https://forums.alliedmods.net/showth...52#post1799552
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.

    Franc1sco is offline
    Send a message via MSN to Franc1sco
    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 22:25.


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