How do I call a registered event?
[SOLVED]
Code:
I want the round timer to be removed, and the c4 timer to appear. I think this event will do that, but I don't know how to call it. (Beginner) I use a script that auto plants the bomb, but it does not remove the timer. Thank you! |
Re: How do I call a registered event?
You do not call events, you hook events. This even is simply called when the bomb is planted, far from what you want to do. To change the timer you need to send a RoundTime message: https://wiki.alliedmods.net/Half-Lif...ents#RoundTime
If you want to hide the timer, then send a BombDrop https://wiki.alliedmods.net/Half-Lif...vents#BombDrop message with Flag = 1. How to send messages? message_begin + ... + message_end. |
Re: How do I call a registered event?
Quote:
Thanks for pointing me in the right direction again. Its working, but on the radar the bomb is planted in a different place.. Oh well :) |
Re: How do I call a registered event?
Send the correct bomb origin in BombDrop message to update the radar.
|
Re: How do I call a registered event?
Quote:
Whatever, it is not important in this retake scenario :) |
Re: How do I call a registered event?
get_user_origin
|
Re: How do I call a registered event?
Quote:
Code:
This cant be right.. lol |
Re: How do I call a registered event?
Quote:
Code:
|
Re: How do I call a registered event?
Quote:
Code:
|
Re: How do I call a registered event?
You have to define it(new ...)
|
Re: How do I call a registered event?
Quote:
new c4origin[3]? new c4origin get_user_origin(id, c4origin[3], mode = 0);? I don't understand, sorry. |
Re: How do I call a registered event?
PHP Code:
|
Re: How do I call a registered event?
Quote:
line 40: get_user_origin(id, c4origin[3], mode = 0); |
Re: How do I call a registered event?
Post your code
|
Re: How do I call a registered event?
Quote:
Code:
Thanks for helping out! |
Re: How do I call a registered event?
PHP Code:
PHP Code:
|
Re: How do I call a registered event?
new Float:name[3];
Pawn is not that clever to create variable instead of you. :D |
Re: How do I call a registered event?
Quote:
Looks like this now: Code:
Thanks. |
Re: How do I call a registered event?
It should not be Float:. get_user_origin works woth integers.
Also in message_begik why do you use the 1 at the end? |
Re: How do I call a registered event?
Quote:
Quote:
|
Re: How do I call a registered event?
write_byte was correct. I'm talking about the 1 from message_begin.
Are you sure you are actually compiling and changing the plugin? Since you removed the last write_byte the server should crash. |
Re: How do I call a registered event?
Quote:
Right now the clock is still there and nothing on radar: Code:
|
Re: How do I call a registered event?
Quote:
If I only could set mp_roundtime below 1 minute, it would at least match the c4 timer. Thanks HamletEagle for wanting to help, and sorry if I'm a slow learner. |
Re: How do I call a registered event?
What is delete_clock? How is it called?
|
Re: How do I call a registered event?
Quote:
Code:
|
Re: How do I call a registered event?
delete_clock is not passing any player index.
set_task(0.5,"delete_clock"); -> set_task(0.5,"delete_clock", players[i]); |
Re: How do I call a registered event?
Edit: I got it working with:
Code:
Thanks for helping me out HamletEagle! |
All times are GMT -4. The time now is 07:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.