AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Bomb Defuse Predictions v1.2 (https://forums.alliedmods.net/showthread.php?t=116974)

matsi 01-28-2010 12:38

Re: Bomb Defuse Predictions v1.1
 
Quote:

Originally Posted by hleV (Post 1070738)
You should could use #define for strings since you're using these multiple times in your code.


Starsailor 01-28-2010 12:38

Re: Bomb Defuse Predictions v1.1
 
Quote:

Originally Posted by hleV (Post 1070738)
You should use #define for strings since you're using these multiple times in your code.

im working in a better version, please wait :(

Starsailor 01-28-2010 12:54

Re: Bomb Defuse Predictions v1.2
 
Code optimized, check main post

grimvh2 01-28-2010 12:56

Re: Bomb Defuse Predictions v1.2
 
Maybe add something that you can buy a prediction controle able by cvar.

so you can set it that you always have predections untill you die or when you used 1 predection you lost it.

crazyeffect 01-28-2010 13:11

Re: Bomb Defuse Predictions v1.2
 
Better English translation, and the Dutch one :D
Quote:

[en]
YOU_HAVE_TIME = Calm Down. You have enough time to defuse the bomb!
YOU_DONT_HAVE_TIME = Run! You dont have enough time to defuse the bomb!

[nl]
YOU_HAVE_TIME = Rustig. Je hebt genoeg tijd om de bom te ontmantelen!
YOU_DONT_HAVE_TIME = Loop! Je hebt niet genoeg tijd om de bom te ontmantelen!

Romper 01-28-2010 13:14

Re: Bomb Defuse Predictions v1.2
 
Russian translate:
Quote:

[ru]
YOU_HAVE_TIME = Tishe, u tebja dostatochno vremeni, dlja obezvrezhivanija bomby
YOU_DONT_HAVE_TIME = Begi!, u tebja ne dostatochno vremeni, chtoby obezvredit' bombu

Starsailor 01-28-2010 13:36

Re: Bomb Defuse Predictions v1.2
 
Quote:

Originally Posted by crazyeffect (Post 1070769)
Better English translation, and the Dutch one :D

Quote:

Originally Posted by Romper (Post 1070772)
Russian translate:

Thanks, added

ConnorMcLeod 01-28-2010 13:44

Re: Bomb Defuse Predictions v1.2
 
You are wrong, offset 99 is the time when the bomb gonna be defused, if you want the explode time use cstrike native cs_get_c4_expl...
You haven't understood why offset 99 can be usefull for you, check again the code i gave you ;)
About BarTime, the byte passed is the defuse time.

Starsailor 01-28-2010 13:56

Re: Bomb Defuse Predictions v1.2
 
Quote:

Originally Posted by ConnorMcLeod (Post 1070799)
You are wrong, offset 99 is the time when the bomb gonna be defused, if you want the explode time use cstrike native cs_get_c4_expl...
You haven't understood why offset 99 can be usefull for you, check again the code i gave you ;)

I use offset 99 to prevent check if u have defuse or not.

offset 99 - get_gametime() returns the time for defuse the bomb (if you have defuser returns 5 secs if u dont have defuser returns 10 sec)

To get c4 explode time, i used ur code (From your plugin "C4 Sprite Timer")
that code is bad?

Quote:

About BarTime, the byte passed is the defuse time.
Yes, i know that

and by the way, the plugin is working correctly

EDIT: I cannot test ur plugin, it crash my server :(

ConnorMcLeod 01-28-2010 14:22

Re: Bomb Defuse Predictions v1.1
 
Quote:

Originally Posted by hleV (Post 1070738)
You should use #define for strings since you're using these multiple times in your code.

When a string is used multiple times in a plugin, a define is not recommanded, const is better.


All times are GMT -4. The time now is 21:19.

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