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

[CS:S] Jail Awards with credits system


Post New Thread Reply   
 
Thread Tools Display Modes
PreFix
BANNED
Join Date: Sep 2011
Old 06-27-2012 , 15:13   Re: [CS:S] Jail Awards with credits system
Reply With Quote #11

Sure make some more options and configurations.And those credits are for one map or they are saving in some database?
PreFix is offline
Send a message via Skype™ to PreFix
EGood
Member
Join Date: Feb 2011
Location: Israel
Old 06-27-2012 , 23:28   Re: [CS:S] Jail Awards with credits system
Reply With Quote #12

hi, do it only for the T ..
i think its good only for the T
EGood is offline
PreFix
BANNED
Join Date: Sep 2011
Old 06-28-2012 , 09:33   Re: [CS:S] Jail Awards with credits system
Reply With Quote #13

And sure it's should to be for T only...
PreFix is offline
Send a message via Skype™ to PreFix
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 #14

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 #15

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
lordloss
Junior Member
Join Date: Jun 2012
Old 07-09-2012 , 14:47   Re: [CS:S] Jail Awards with credits system
Reply With Quote #16

fail to compile
lordloss is offline
030Maric
Member
Join Date: Apr 2012
Location: Berlin
Old 07-10-2012 , 04:51   Re: [CS:S] Jail Awards with credits system
Reply With Quote #17

NIce plugin..

Thank you!!
030Maric 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 #18

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 #19

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
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-03-2013 , 13:14   Re: [CS:S] Jail Awards with credits system v1.1
Reply With Quote #20

New version 1.1

-Now credits can be saved
-New cvar:
Code:
awards_credits_save 1 // enable or disable that credits can be saved

Download in first post
__________________
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 15:48.


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