c4striker Posted June 11, 2024 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 5 Reputation: 0 Joined: 12/12/18 Last Seen: June 18, 2024 Share Posted June 11, 2024 How can I add 20 seconds before I can send a message again in this code? - script map -1,{ OnWhisperglobal: if( getgroupid() < 5 ) end; announce ""+strcharinfo(0)+": "+@whispervar0$,bc_map; end; } - script global -1,{ OnWhisperglobal: if( getgroupid() < 5 ) end; announce ""+strcharinfo(0)+": "+@whispervar0$,bc_all; end; } Quote Link to comment Share on other sites More sharing options...
0 Winterfox Posted June 11, 2024 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 245 Reputation: 93 Joined: 06/30/18 Last Seen: November 27, 2024 Share Posted June 11, 2024 - script GLOBAL -1,{ OnWhisperglobal: if(getgroupid() < 5 || MESSAGE_COOLDOWN > gettimetick(2)) end; announce(strcharinfo(0) + ": " + @whispervar0$, bc_all); MESSAGE_COOLDOWN = gettimetick(2) + 20; } 1 Quote Link to comment Share on other sites More sharing options...
0 c4striker Posted June 12, 2024 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 5 Reputation: 0 Joined: 12/12/18 Last Seen: June 18, 2024 Author Share Posted June 12, 2024 2 hours ago, Winterfox said: - script GLOBAL -1,{ OnWhisperglobal: if(getgroupid() < 5 || MESSAGE_COOLDOWN > gettimetick(2)) end; announce(strcharinfo(0) + ": " + @whispervar0$, bc_all); MESSAGE_COOLDOWN = gettimetick(2) + 20; } Thanks guy, it's working. Quote Link to comment Share on other sites More sharing options...
Question
c4striker
How can I add 20 seconds before I can send a message again in this code?
- script map -1,{ OnWhisperglobal: if( getgroupid() < 5 ) end; announce ""+strcharinfo(0)+": "+@whispervar0$,bc_map; end; } - script global -1,{ OnWhisperglobal: if( getgroupid() < 5 ) end; announce ""+strcharinfo(0)+": "+@whispervar0$,bc_all; end; }
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.