what event keeps regestering
1 Attachment(s)
what event keeps regestering, like a event the keeps calling a function no matter what the player is doing
|
Re: what event keeps regestering
set_task ?
|
Re: what event keeps regestering
server_frame, client_PreThink, client_PostThink, and possibly others. However, there are usually better alternatives, depending on what you are trying to accomplish.
|
Re: what event keeps regestering
im trying to have the plugin above keep checking players for if they have nade out, what event sould i use?
|
Re: what event keeps regestering
sorry, but what does "have nade out" mean ?
|
Re: what event keeps regestering
I would register the CurWeapon event, since it is called when a player changes weapons (or shoots). The first argument sent with it is 1 if this is the weapon they are currently using, 0 if they are switching from this weapon. The second argument is the weapon in question (weapon they are using if first arg is 1, weapon they are switching from is first arg is 0). The last argument is the ammo in the weapon. So, for example:
Code:
|
Re: what event keeps regestering
here is my no vote version knife arena.
Code:
|
Re: what event keeps regestering
i currently use curweapon but if client keeps pressing 4 44444 4 4 4 44444 then they can hold the nade and throw it
|
Re: what event keeps regestering
use engclient_cmd instead of client_cmd.
|
| All times are GMT -4. The time now is 06:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.