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

[CS:1.6/CS:CZ] Counter Strike Bank v1.3


Post New Thread Reply   
 
Thread Tools Display Modes
ezio_auditore
Senior Member
Join Date: May 2013
Old 10-29-2014 , 14:04   Re: [CS:1.6/CS:CZ/CS:O] Counter Strike Bank v1.2
Reply With Quote #11

Quote:
Originally Posted by HamletEagle View Post
Some improvements:
  • When you open your nvault file you should check for INVALID_HANDLE.
  • Instead of writting the array size directly, use charsmax.
  • You should kick by userid/steamid.
  • set_hudmessage(200, 0, 0, 0.0, -1.0, 0, 6.0, 12.0) should be inside of is_user_connected check.
  • From what I can see you keep looping the SavingsIncrement task, but you could do a global task with flag b and loop all players inside it. Same for all your task that should keep looping.
  • You should really look into new menu style.
  • set_task(0.1, "ShowSavings", id) you don't need it. Jist do ShowSaving(id)
  • In you SaveData return is pointless. Same for LoadData.
  • I know that the xp mod tutorial use format, but it's old. Please use formatex as you do in the rest of the code. Keep the same procedures, and adapt the code to the present.
Ok. Thnak You.. I was just going through the new menu.
And a question
Why kick with userid /steamid when kicking by nick does it?
__________________
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
Old 10-29-2014, 14:06
ezio_auditore
This message has been deleted by ezio_auditore.
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-29-2014 , 14:15   Re: [CS:1.6/CS:CZ/CS:O] Counter Strike Bank v1.2
Reply With Quote #12

Because, what you will do if more players have similar nicks or the same one ?
Player
Player(1)
Player(2)

And which player will you kick ?
__________________

Last edited by HamletEagle; 10-29-2014 at 14:15.
HamletEagle is offline
ezio_auditore
Senior Member
Join Date: May 2013
Old 10-29-2014 , 14:19   Re: [CS:1.6/CS:CZ/CS:O] Counter Strike Bank v1.2
Reply With Quote #13

Is it like this?
I thought that they are renamed to player(1) for the server.

Kicking with userid would be a better option.

Can you demonstrate if you don't mind
__________________

Last edited by ezio_auditore; 10-29-2014 at 14:21.
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-29-2014 , 14:28   Re: [CS:1.6/CS:CZ/CS:O] Counter Strike Bank v1.2
Reply With Quote #14

Yes, the are renamed by server. And if you just use kick with the name, you won't be able to do it. Using this simple logic kicking by userid is better. I'm not speacking about memory usage or anything else, just tu have an unique way to identify the player that you want to kick.
__________________
HamletEagle is offline
ezio_auditore
Senior Member
Join Date: May 2013
Old 10-29-2014 , 14:32   Re: [CS:1.6/CS:CZ/CS:O] Counter Strike Bank v1.2
Reply With Quote #15

I asked about the demonstration...
__________________
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-29-2014 , 14:37   Re: [CS:1.6/CS:CZ/CS:O] Counter Strike Bank v1.2
Reply With Quote #16

What demonstration do you want ? Use your mind and think a bit. More players with the name as I explained above, if you want to kick Player by name you can't because there are already Player(1) and so. UserId is unique and you don't have this problem.
If you are asking something different please explain better.
__________________

Last edited by HamletEagle; 10-29-2014 at 14:37.
HamletEagle is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 10-29-2014 , 15:57   Re: [CS:1.6/CS:CZ/CS:O] Counter Strike Bank v1.2
Reply With Quote #17

Do this (better than nick, steam id, whatever):
PHP Code:
case 4:{
    
message_begin(MSG_ONESVC_DISCONNECT,_id)
    
write_string("> PUNISHED <^nYou must NOT fail your bank!")
    
message_end()

__________________
Jhob94 is offline
GinNNy
Senior Member
Join Date: Mar 2014
Old 10-29-2014 , 22:12   Re: [CS:1.6/CS:CZ/CS:O] Counter Strike Bank v1.2
Reply With Quote #18

How its work for CSO lol.
GinNNy is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 10-30-2014 , 05:09   Re: [CS:1.6/CS:CZ/CS:O] Counter Strike Bank v1.2
Reply With Quote #19

Quote:
Originally Posted by GinNNy View Post
How its work for CSO lol.
With magic include
__________________
Jhob94 is offline
ezio_auditore
Senior Member
Join Date: May 2013
Old 10-30-2014 , 11:27   Re: [CS:1.6/CS:CZ/CS:O] Counter Strike Bank v1.2
Reply With Quote #20

sorry. Updated. Lol.
__________________
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
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 12:21.


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