AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CSS] Round Money v1.0.1 (16.06.2009) (https://forums.alliedmods.net/showthread.php?t=101040)

LIONz 08-20-2009 07:48

[CSS] Round Money v1.0.1 (16.06.2009)
 
2 Attachment(s)
My first public Plugin for SourceMod :)

What it does?
Give Extra Money At Round End. Amount of money to give can be set by cvar.

Available cvars
sm_round_money "3000" Amount of money to give, should be a number between 0 and 16000
sm_round_money_advert "1" Enables and Disables plugin advertisment for non registered players in chat (Disable 0 / Enable 1)
sm_round_money_enabled "1" Enables and Disables plugin (Disable 0 / Enable 1)
sm_round_money_notify "1" Enables and Disables plugin notices in chat (Disable 0 / Enable 1)
sm_round_money_reserved "1" Enables and Disables plugin for admin flag RESERVATION (Disable 0 / Enable 1)
sm_round_money_root "1" Enables and Disables plugin for admin flag ROOT (Disable 0 / Enable 1)

Updates
  • 1.0.0 Initial release
  • 1.0.1 Fixed Client X is not connected Error

berni 09-11-2009 08:32

Re: Round Money
 
Looks fine :) approved.

Greetings ~Berni

c01eman 09-13-2009 18:45

Re: Round Money
 
this sometimes doesnt give money, but others do get it

:arrow:
Code:

L 09/13/2009 - 00:00:14: SourceMod error session started
L 09/13/2009 - 00:00:14: Info (map "de_dust2") (file "errors_20090913.log")
L 09/13/2009 - 00:00:14: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
L 09/13/2009 - 00:00:14: [SM] Displaying call stack trace for plugin "round_money.smx":
L 09/13/2009 - 00:00:14: [SM]  [0]  Line 73, round_money.sp::Event_RoundEnd()
L 09/13/2009 - 00:01:29: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
L 09/13/2009 - 00:01:29: [SM] Displaying call stack trace for plugin "round_money.smx":
L 09/13/2009 - 00:01:29: [SM]  [0]  Line 73, round_money.sp::Event_RoundEnd()
L 09/13/2009 - 00:02:21: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
L 09/13/2009 - 00:02:21: [SM] Displaying call stack trace for plugin "round_money.smx":
L 09/13/2009 - 00:02:21: [SM]  [0]  Line 73, round_money.sp::Event_RoundEnd()
L 09/13/2009 - 00:03:57: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
L 09/13/2009 - 00:03:57: [SM] Displaying call stack trace for plugin "round_money.smx":
L 09/13/2009 - 00:03:57: [SM]  [0]  Line 73, round_money.sp::Event_RoundEnd()
L 09/13/2009 - 00:04:25: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
L 09/13/2009 - 00:04:25: [SM] Displaying call stack trace for plugin "round_money.smx":
L 09/13/2009 - 00:04:25: [SM]  [0]  Line 73, round_money.sp::Event_RoundEnd()
L 09/13/2009 - 00:04:57: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
L 09/13/2009 - 00:04:57: [SM] Displaying call stack trace for plugin "round_money.smx":
L 09/13/2009 - 00:04:57: [SM]  [0]  Line 73, round_money.sp::Event_RoundEnd()
L 09/13/2009 - 00:06:28: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
L 09/13/2009 - 00:06:28: [SM] Displaying call stack trace for plugin "round_money.smx":
L 09/13/2009 - 00:06:28: [SM]  [0]  Line 73, round_money.sp::Event_RoundEnd()
L 09/13/2009 - 00:07:22: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
L 09/13/2009 - 00:07:22: [SM] Displaying call stack trace for plugin "round_money.smx":
L 09/13/2009 - 00:07:22: [SM]  [0]  Line 73, round_money.sp::Event_RoundEnd()
L 09/13/2009 - 00:08:20: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
L 09/13/2009 - 00:08:20: [SM] Displaying call stack trace for plugin "round_money.smx":
L 09/13/2009 - 00:08:20: [SM]  [0]  Line 73, round_money.sp::Event_RoundEnd()
L 09/13/2009 - 00:09:37: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
L 09/13/2009 - 00:09:37: [SM] Displaying call stack trace for plugin "round_money.smx":
L 09/13/2009 - 00:09:37: [SM]  [0]  Line 73, round_money.sp::Event_RoundEnd()
L 09/13/2009 - 00:11:06: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
L 09/13/2009 - 00:11:06: [SM] Displaying call stack trace for plugin "round_money.smx":
L 09/13/2009 - 00:11:06: [SM]  [0]  Line 73, round_money.sp::Event_RoundEnd()
L 09/13/2009 - 00:12:26: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
L 09/13/2009 - 00:12:26: [SM] Displaying call stack trace for plugin "round_money.smx":
L 09/13/2009 - 00:12:26: [SM]  [0]  Line 73, round_money.sp::Event_RoundEnd()
L 09/13/2009 - 00:14:35: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
L 09/13/2009 - 00:14:35: [SM] Displaying call stack trace for plugin "round_money.smx":
L 09/13/2009 - 00:14:35: [SM]  [0]  Line 73, round_money.sp::Event_RoundEnd()
L 09/13/2009 - 00:15:09: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
L 09/13/2009 - 00:15:09: [SM] Displaying call stack trace for plugin "round_money.smx":
L 09/13/2009 - 00:15:09: [SM]  [0]  Line 73, round_money.sp::Event_RoundEnd()
L 09/13/2009 - 00:16:35: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
L 09/13/2009 - 00:16:35: [SM] Displaying call stack trace for plugin "round_money.smx":
L 09/13/2009 - 00:16:35: [SM]  [0]  Line 73, round_money.sp::Event_RoundEnd()
L 09/13/2009 - 00:18:07: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
L 09/13/2009 - 00:18:07: [SM] Displaying call stack trace for plugin "round_money.smx":
L 09/13/2009 - 00:18:07: [SM]  [0]  Line 73, round_money.sp::Event_RoundEnd()
L 09/13/2009 - 00:19:29: [SM] Native "GetUserFlagBits" reported: Client 8 is not connected
L 09/13/2009 - 00:19:29: [SM] Displaying call stack trace for plugin "round_money.smx":
L 09/13/2009 - 00:19:29: [SM]  [0]  Line 73, round_money.sp::Event_RoundEnd()
L 09/13/2009 - 00:19:58: [SM] Native "GetUserFlagBits" reported: Client 8 is not connected
L 09/13/2009 - 00:19:58: [SM] Displaying call stack trace for plugin "round_money.smx":
L 09/13/2009 - 00:19:58: [SM]  [0]  Line 73, round_money.sp::Event_RoundEnd()
L 09/13/2009 - 00:21:30: [SM] Native "GetUserFlagBits" reported: Client 8 is not connected
L 09/13/2009 - 00:21:30: [SM] Displaying call stack trace for plugin "round_money.smx":
L 09/13/2009 - 00:21:30: [SM]  [0]  Line 73, round_money.sp::Event_RoundEnd()
L 09/13/2009 - 00:22:33: [SM] Native "GetUserFlagBits" reported: Client 8 is not connected
L 09/13/2009 - 00:22:33: [SM] Displaying call stack trace for plugin "round_money.smx":
L 09/13/2009 - 00:22:33: [SM]  [0]  Line 73, round_money.sp::Event_RoundEnd()
L 09/13/2009 - 00:22:42: Error log file session closed.


c01eman 09-13-2009 19:20

Re: Round Money
 
ive been running this plugin for the last few days on my d2/office server and sometimes i dont get money at the end of every round, like for a whole map but other players do

Code:

L 09/14/2009 - 01:11:15: [SM] Native "GetUserFlagBits" reported: Client 8 is not connected
L 09/14/2009 - 01:11:15: [SM] Displaying call stack trace for plugin "round_money.smx":
L 09/14/2009 - 01:11:15: [SM]  [0]  Line 73, /home/groups/alliedmodders/forums/files/1/7/3/4/0/47925.attach::Event_RoundEnd()


berni 09-13-2009 20:21

Re: Round Money
 
LIONz

Search:

Code:

new iMaxClients = GetMaxClients();
       
    for (new i = 1; i <= iMaxClients; i++)
    {

Replace:

Code:

       
    for (new i = 1; i <= MaxClients; i++)
    {
        if (!IsClientInGame(i)) {
              continue;
        }


c01eman 09-13-2009 20:36

Re: Round Money
 
thanks berni ill give that a try on my server

LIONz 09-16-2009 08:49

Re: [CSS] Round Money v1.0.1 (16.06.2009)
 
berni thnx your fix is added to plugin

-epic- 09-18-2009 00:44

Re: [CSS] Round Money v1.0.1 (16.06.2009)
 
Hello,

i've a problem with this plugin namely all not registered public players without admin flags doesn't get money. What can I do, that all players becomes money I mean public players and admins. I tried to change the following cvars to 0: sm_round_money_reserved "1"
sm_round_money_root "1"
but without occur

Thanks and sorry for my bad english.

rautamiekka 09-22-2009 08:00

Re: [CSS] Round Money v1.0.1 (16.06.2009)
 
Did I understand correctly that you get the money no matter what happens that ends the round ? Like, you die but your team wins = you get the money, you and your team dies = you get the money ?

LIONz 09-22-2009 20:35

Re: [CSS] Round Money v1.0.1 (16.06.2009)
 
-epic- this plugin is for registered players and admins I will implement cvar for normal players in next release

rautamiekka yes you did understand it correctly all users with reservation flags will gen +3000 at round end no matter what happens.


All times are GMT -4. The time now is 05:38.

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