Raised This Month: $32 Target: $400
 8% 

[CS:S] Jail Awards with credits system


Post New Thread Reply   
 
Thread Tools Display Modes
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 01-03-2013 , 15:08   Re: [CS:S] Jail Awards with credits system v1.1
Reply With Quote #21

Hi there,

the following should be changed for approval :
  • Your code is prone to error. i.e. calling "sm_credits" from server console. It seems to be the case for almost all your commands.
  • While your "sm_awards" currently produce an error while trying to PrintToClient to the server, it does send a menu to the server just before (L213 / L297). While this doesn't produce a crash or an error, it is an unwanted behaviour (I did file a bug report on this).
  • You load "common.phrases", but there is no %t/%T in all your code !

Beside, you should also remove FCVAR_REPLICATED, as this can produce console error for the client.

Other than that, I don't see any real problem.
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 01-03-2013 at 15:10.
RedSword is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-03-2013 , 16:17   Re: [CS:S] Jail Awards with credits system v1.1
Reply With Quote #22

Quote:
Originally Posted by RedSword View Post
Hi there,

the following should be changed for approval :
  • Your code is prone to error. i.e. calling "sm_credits" from server console. It seems to be the case for almost all your commands.
  • While your "sm_awards" currently produce an error while trying to PrintToClient to the server, it does send a menu to the server just before (L213 / L297). While this doesn't produce a crash or an error, it is an unwanted behaviour (I did file a bug report on this).
  • You load "common.phrases", but there is no %t/%T in all your code !

Beside, you should also remove FCVAR_REPLICATED, as this can produce console error for the client.

Other than that, I don't see any real problem.
1. fixed
2. fixed
I added:
PHP Code:
    if(client == 0// if is console
    
{
        
PrintToServer("you need to be ingame for use this"); // reply to console
        
return; // dont continue
    

3. removed
4. removed



--------------------------------------------------------------------

new version 1.2

-bugfixed for approval
__________________
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.


Last edited by Franc1sco; 01-03-2013 at 16:20.
Franc1sco is offline
Send a message via MSN to Franc1sco
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 01-03-2013 , 16:48   Re: [CS:S] Jail Awards with credits system v1.2
Reply With Quote #23

It is still possible to get an error using sm_setcredits from server console.

EDIT : It would possible by the way to use "Command is in-game only" from common.phrases, rather than creating your own phrase, that way your plugin is (partially) multilingual.
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 01-03-2013 at 16:50.
RedSword is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-03-2013 , 16:52   Re: [CS:S] Jail Awards with credits system v1.2
Reply With Quote #24

Quote:
Originally Posted by RedSword View Post
It is still possible to get an error using sm_setcredits from server console.
ups ok fixed
__________________
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
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 01-03-2013 , 16:54   Re: [CS:S] Jail Awards with credits system v1.2
Reply With Quote #25

Approved.
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work
RedSword is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-03-2013 , 17:05   Re: [CS:S] Jail Awards with credits system v1.2
Reply With Quote #26

Quote:
Originally Posted by RedSword View Post
EDIT : It would possible by the way to use "Command is in-game only" from common.phrases, rather than creating your own phrase, that way your plugin is (partially) multilingual.
Added.


Quote:
Originally Posted by RedSword View Post
Approved.
ok thanks
__________________
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
healasuk
Member
Join Date: Dec 2012
Old 01-04-2013 , 21:28   Re: [CS:S] Jail Awards with credits system v1.2
Reply With Quote #27

How do you edit the amount of credits that is required to buy a certain award?
healasuk is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-04-2013 , 21:29   Re: [CS:S] Jail Awards with credits system v1.2
Reply With Quote #28

Quote:
Originally Posted by healasuk View Post
How do you edit the amount of credits that is required to buy a certain award?
Soon I will add cvars for it
__________________
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
healasuk
Member
Join Date: Dec 2012
Old 01-05-2013 , 23:44   Re: [CS:S] Jail Awards with credits system v1.2
Reply With Quote #29

I'll be waiting for the cvars to be added
healasuk is offline
sjvcs
Junior Member
Join Date: Oct 2009
Old 01-06-2013 , 11:19   Re: [CS:S] Jail Awards with credits system v1.2
Reply With Quote #30

hello, do it to the T and CT are different credits ..
I think it would be good
sjvcs is offline
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 02:13.


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