Raised This Month: $ Target: $400
 0% 

Solved [ H3LP ] Message BarTime ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-09-2017 , 15:16   [ H3LP ] Message BarTime ?
Reply With Quote #1

Its possible to do a bar that will be empty when player is pressing E key ?
__________________









Last edited by CrazY.; 04-10-2017 at 06:57.
CrazY. is offline
semihkerim31
Member
Join Date: Feb 2017
Old 04-09-2017 , 15:18   Re: [ H3LP ] Message BarTime ?
Reply With Quote #2

Code:
public showbar(id)
{
bargoster(id,2)
}
stock bargoster(iPlayer, iBarScale) {
	message_begin(MSG_ONE, g_iMsgIdBarTime, _, iPlayer)
	write_short(iBarScale)
	message_end()
}
semihkerim31 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-09-2017 , 16:01   Re: [ H3LP ] Message BarTime ?
Reply With Quote #3

Tryed this but dont work correctly.

Code:
#include <amxmodx> #include <fakemeta> public plugin_init() {     register_plugin("Test", "Crazy", "test");     register_forward(FM_PlayerPreThink, "fw_PlayerPreThink"); } public fw_PlayerPreThink(id) {     if (!is_user_alive(id)) return;     new button = pev(id, pev_button);     if (button & IN_USE)     {         create_bar(id, 2);     } } stock create_bar(id, scale) {     message_begin(MSG_ONE, get_user_msgid("BarTime"), _, id)     write_short(scale)     message_end() }
__________________








CrazY. is offline
Old 04-09-2017, 16:25
EFFx
This message has been deleted by EFFx.
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-09-2017 , 16:57   Re: [ H3LP ] Message BarTime ?
Reply With Quote #5

[BP]
Acredito que dessa forma não vai funcionar porque estou tentando utilizar a tecla E, e o código ta funcionando, o problema é que a barrinha não enche, só enche quando eu solto a letra E.

[En]
I think with this way dont will work because I AM trying with key E, and this code its working but only load when I loose the key E.
__________________








CrazY. is offline
Old 04-09-2017, 17:29
EFFx
This message has been deleted by EFFx.
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 04-09-2017 , 23:50   Re: [ H3LP ] Message BarTime ?
Reply With Quote #7

Try this condition:
PHP Code:
if ((button IN_USE) != && (pev(idpev_oldbuttons) & IN_USE) == 0
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-10-2017 , 06:56   Re: [ H3LP ] Message BarTime ?
Reply With Quote #8

Solved.
__________________








CrazY. is offline
Reply


Thread Tools
Display Modes

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:55.


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