AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Sync Hudmessage Problem (https://forums.alliedmods.net/showthread.php?t=282118)

Awesome_man 04-29-2016 08:16

Sync Hudmessage Problem
 
I'm hooking statsvalue even to show hud message on aiming player but the problem is whenever i aim 2-3 at once hud message overwrites, How to prevent this

Code:

set_hudmessage(0, 255, 255, -1.0, 0.60, 1, 0.01, 3.0, 0.01, 0.01, -1)

Artifact 04-29-2016 12:35

Re: Sync Hudmessage Problem
 
Without code we can not help you :)

siriusmd99 04-29-2016 13:37

Re: Sync Hudmessage Problem
 
PHP Code:

//At the top of your plugin add:
new g_Message[33]

//And change to this where you show message
new temp get_systime()
if(
temp >= g_Message[id]){
g_Message[id]= temp 3;
set_hudmessage(0255255, -1.00.6010.013.00.010.01, -1)
//show_hudmessage(blablalba.......)




All times are GMT -4. The time now is 18:40.

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