AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S] Jail Awards with credits system (https://forums.alliedmods.net/showthread.php?t=174843)

PreFix 06-27-2012 15:13

Re: [CS:S] Jail Awards with credits system
 
Sure make some more options and configurations.And those credits are for one map or they are saving in some database?

EGood 06-27-2012 23:28

Re: [CS:S] Jail Awards with credits system
 
hi, do it only for the T ..
i think its good only for the T

PreFix 06-28-2012 09:33

Re: [CS:S] Jail Awards with credits system
 
And sure it's should to be for T only...

Franc1sco 06-28-2012 10:54

Re: [CS:S] Jail Awards with credits system
 
Quote:

Originally Posted by EGood (Post 1737760)
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

EGood 06-28-2012 22:04

Re: [CS:S] Jail Awards with credits system
 
Quote:

Originally Posted by Franc1sco (Post 1738153)
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

lordloss 07-09-2012 14:47

Re: [CS:S] Jail Awards with credits system
 
fail to compile

030Maric 07-10-2012 04:51

Re: [CS:S] Jail Awards with credits system
 
NIce plugin..

Thank you!!

thecrew 11-18-2012 23:50

Re: [CS:S] Jail Awards with credits system
 
Quote:

Originally Posted by Franc1sco (Post 1738153)
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 >.<

Franc1sco 11-19-2012 13:16

Re: [CS:S] Jail Awards with credits system
 
Quote:

Originally Posted by thecrew (Post 1840311)
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

Franc1sco 01-03-2013 13:14

Re: [CS:S] Jail Awards with credits system v1.1
 
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


All times are GMT -4. The time now is 01:40.

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