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

[CS:S/CSGO] Jail Shop !


Post New Thread Reply   
 
Thread Tools Display Modes
live4net
AlliedModders Donor
Join Date: Jul 2014
Old 10-19-2014 , 08:58   Re: [CS:S/CSGO] Jail Shop !
Reply With Quote #11

I found next bug

Quote:
if(GetClientTeam(attacker) == CS_TEAM_CT)
{
PrintToChat(client, "\x04[ SHOP ] \x05%t","KillCT", g_iCreditos[attacker],GetConVarInt(cvarCreditosKill_CT));
}

if(GetClientTeam(attacker) == CS_TEAM_T)
{
PrintToChat(client, "\x04[ SHOP ] \x05%t","KillT", g_iCreditos[attacker],GetConVarInt(cvarCreditosKill_T));
}
should be:

Quote:
if(GetClientTeam(attacker) == CS_TEAM_CT)
{
PrintToChat(client, "\x04[ SHOP ] \x05%t","KillCT", g_iCreditos[client],GetConVarInt(cvarCreditosKill_CT));
}

if(GetClientTeam(attacker) == CS_TEAM_T)
{
PrintToChat(client, "\x04[ SHOP ] \x05%t","KillT", g_iCreditos[client],GetConVarInt(cvarCreditosKill_T));
}
Attached Files
File Type: sp Get Plugin or Get Source (jail_shop.sp - 143 views - 42.3 KB)

Last edited by live4net; 10-19-2014 at 09:03.
live4net is offline
Dkmuniz
Senior Member
Join Date: Jun 2013
Old 10-19-2014 , 09:06   Re: [CS:S/CSGO] Jail Shop !
Reply With Quote #12

Quote:
Originally Posted by live4net View Post
I found next bug

should be:
This is no a bug, that's allright. But if you put [client] works too =D !
Dkmuniz is offline
Dkmuniz
Senior Member
Join Date: Jun 2013
Old 10-19-2014 , 09:06   Re: [CS:S/CSGO] Jail Shop !
Reply With Quote #13

********** NEW VERSION **********

Fixed bugs: Round end crashes with bird ! ( TESTED ), problem with translation file fixed!

ADD NEW ITEM: BunnyHop !
ADD NEW CVAR: shop_comando - here you put your command in chat for shop! (cfg/sourcemod/sm_jailshop) for configure the command
ADD NEW COMMAND: sm_showcredits - Here you can see all players credits, need flag root for this. ( thanks for live4net )

********************************

Enjoy!
Dkmuniz is offline
live4net
AlliedModders Donor
Join Date: Jul 2014
Old 10-19-2014 , 09:40   Re: [CS:S/CSGO] Jail Shop !
Reply With Quote #14

1. Bird still crash server. Now server is crashing, when CT shot to bird. Ther is not any errors in log files.

2. Maybe add function to disable gain credits on warmup?

3. Maybe add function to disable gain credits when on server is less than 4 players?

4.
Quote:
Originally Posted by Dkmuniz View Post
This is no a bug, that's allright. But if you put [client] works too =D !
Now plugin show attacker credits to killed player. I whink, better will be to show attacker credits to attacker.It should be:

Quote:
if(GetClientTeam(attacker) == CS_TEAM_CT)
{
PrintToChat(attacker, "\x04[ SHOP ] \x05%t","KillCT", g_iCreditos[attacker],GetConVarInt(cvarCreditosKill_CT));
}

if(GetClientTeam(attacker) == CS_TEAM_T)
{
PrintToChat(attacker, "\x04[ SHOP ] \x05%t","KillT", g_iCreditos[attacker],GetConVarInt(cvarCreditosKill_T));
}
More error in logs (from old version of plugin):

L 10/19/2014 - 13:12:05: [SM] Native "IsClientInGame" reported: Client index -1 is invalid
L 10/19/2014 - 13:12:05: [SM] Displaying call stack trace for plugin "jail_shop.smx":
L 10/19/2014 - 13:12:05: [SM] [0] Line 531, jail_shop.sp::Timer_CheckDamage()
L 10/19/2014 - 13:19:14: [SM] Native "IsClientInGame" reported: Client index -1 is invalid
L 10/19/2014 - 13:19:14: [SM] Displaying call stack trace for plugin "jail_shop.smx":
L 10/19/2014 - 13:19:14: [SM] [0] Line 531, jail_shop.sp::Timer_CheckDamage()

Last edited by live4net; 10-19-2014 at 10:15.
live4net is offline
Dkmuniz
Senior Member
Join Date: Jun 2013
Old 10-19-2014 , 10:17   Re: [CS:S/CSGO] Jail Shop !
Reply With Quote #15

Quote:
Originally Posted by live4net View Post
1. Bird still crash server. Now server is crashing, when CT shot to bird. Ther is not any errors in log files.

2. Maybe add function to disable gain credits on warmup?

3. Maybe add function to disable gain credits when on server is less than 4 players?

4.


Now plugin show attacker credits to killed player. I whink, better will be to show attacker credits to attacker.It should be:

More error in logs (from old version of plugin):

L 10/19/2014 - 13:12:05: [SM] Native "IsClientInGame" reported: Client index -1 is invalid
L 10/19/2014 - 13:12:05: [SM] Displaying call stack trace for plugin "jail_shop.smx":
L 10/19/2014 - 13:12:05: [SM] [0] Line 531, jail_shop.sp::Timer_CheckDamage()
L 10/19/2014 - 13:19:14: [SM] Native "IsClientInGame" reported: Client index -1 is invalid
L 10/19/2014 - 13:19:14: [SM] Displaying call stack trace for plugin "jail_shop.smx":
L 10/19/2014 - 13:19:14: [SM] [0] Line 531, jail_shop.sp::Timer_CheckDamage()
1 - Dude, in my server i dont have this erros, please download the original and new version of plugin and test again, i make some changes for fix this bugs !

2. Maybe

3. Yeah it possible

4. Try new version
Dkmuniz is offline
live4net
AlliedModders Donor
Join Date: Jul 2014
Old 10-19-2014 , 10:39   Re: [CS:S/CSGO] Jail Shop !
Reply With Quote #16

I use oryginal, new version and server is crashing, when chicken die

next bug:

1. If you buy speed+vampire, you can hit TT in your cell (friendly fire is OFF), and you receive HP. You can have 2000k HP+
2. In next round, you still have vampire on and hit frend from your cell to receive HP.
3. logs:
Quote:
L 10/19/2014 - 21:18:12: [SM] Plugin encountered error 8: Not enough space on the stack
L 10/19/2014 - 21:18:12: [SM] Displaying call stack trace for plugin "jail_shop.smx":
L 10/19/2014 - 21:18:12: [SM] [0] Line 1432, jail_shop.sp::OnTakeDamage()

Last edited by live4net; 10-19-2014 at 15:23.
live4net is offline
live4net
AlliedModders Donor
Join Date: Jul 2014
Old 10-20-2014 , 15:59   Re: [CS:S/CSGO] Jail Shop !
Reply With Quote #17

Here is function to send credits to other player. Can you add?

http://pastebin.com/pfY6PYp1
live4net is offline
Dkmuniz
Senior Member
Join Date: Jun 2013
Old 10-21-2014 , 08:17   Re: [CS:S/CSGO] Jail Shop !
Reply With Quote #18

Quote:
Originally Posted by live4net View Post
Here is function to send credits to other player. Can you add?

http://pastebin.com/pfY6PYp1
I was already working on it for next version, but thank you!

New version - Fixed some bugs, add sm_gift command (to send credits to other player)
Dkmuniz is offline
live4net
AlliedModders Donor
Join Date: Jul 2014
Old 10-21-2014 , 10:33   Re: [CS:S/CSGO] Jail Shop !
Reply With Quote #19

I add to your last version MySQL support.

New cvar:
shop_mysql "1" //1 -use mysql, 0 - use old method


If use mysql, you have to add to databases.cfg

"jail_shop"
{
"driver" "mysql"
"host" "db.host.ip"
"database" "db.name"
"user" "db.user"
"pass" "db.pass"
"timeout" "10"
"port" "3306"
}


I fix vampire skill (i think so)
Attached Files
File Type: sp Get Plugin or Get Source (jail_shop.sp - 123 views - 51.5 KB)
live4net is offline
Dkmuniz
Senior Member
Join Date: Jun 2013
Old 10-21-2014 , 11:33   Re: [CS:S/CSGO] Jail Shop !
Reply With Quote #20

Quote:
Originally Posted by live4net View Post
I add to your last version MySQL support.

New cvar:
shop_mysql "1" //1 -use mysql, 0 - use old method


If use mysql, you have to add to databases.cfg

"jail_shop"
{
"driver" "mysql"
"host" "db.host.ip"
"database" "db.name"
"user" "db.user"
"pass" "db.pass"
"timeout" "10"
"port" "3306"
}


I fix vampire skill (i think so)
Thanks for u help mean ! I'll update this .
Dkmuniz 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 17:01.


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