AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Editing CreateDialog after send (https://forums.alliedmods.net/showthread.php?t=315504)

farawayf 04-11-2019 09:42

Editing CreateDialog after send
 
I can not understand why the time of CreateDialog is not set less than 10 seconds.
I tried many options, including "CancelClientMenu: MenuStyle_Valve" but nothing work.

I would like to know if it is possible to edit an already running one instead of closing it?
upd. I know that this is possible, I have seen on some servers, but they don’t tell me how to do it

PHP Code:


          decl String
:amount[70];
          
Format(amountsizeof(amount), "... Jumps %i"jumps[client]);
          new 
Handle:kva CreateKeyValues("Stuff");
          
KvSetFloat(kva"time",  0.8);
          
KvSetNum(kva"level"2);  
          
KvSetString(kva"title"amount);
          
CreateDialog(clientkvaDialogType_Msg);
          
CloseHandle(kva); 

the function is triggers after the jump, and it should count and send in CreateDialog for 0.8 seconds, but the problem is: time is always 10 seconds, and the new message after the jump does not interrupt the old one.


All times are GMT -4. The time now is 17:03.

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