[sovled] using the same events twice?
is it possible?
i have register_logevent and register_event and count_votes and all that crap for voting in my script. can i use it twice? if i can't then how do i make it so that i can use it twice? cause when i compile my plugin with those commands repeated twice....i have a problem Quote:
|
You cant make 2 same events...
But one way is to chop a event in two with a bool :P like: Code:
So now just change between true and false in your script depending on what part of the event you want to use... |
You can't declare the same function twice but you can have multiple register_events and the such all point to the same function.
|
lol, nice variable.. i prefer the chopping bit, but you should probably declare a parameter instead of having it defined locally :o
|
Quote:
but is it possible not to use count_votes ? even if i want to count it? cause my register_menu(question), <some numbers>, count_votes is like that. sry i cannot give the full sentence. i'm in school now, sneaked upon the PC while i'm in de lab :). |
Quote:
|
Quote:
anyway, my register menus are this Code:
so if i just change the "count_votes" , it will still count the vote right? btw, i couldn't do what XunTric taught me :(. its supposed to do this Code:
for every single weapon mode. so i need that. BTW, i did not use that cs_set_bpammo (something like that) on purpose :D. but if there is no other way..i'll use it. |
Quote:
Code:
You don't need to check if the user is alive or not, it won't return dead players. [EDITED] |
All players may very well be dead on "round start", and might not have even been given their weapons yet. Try delaying your weapon giving for a second or two after "round start".
|
another question.
if i change "count_votes" and "check_the_votes" to something else, will it still work? BTW v3x, that didn't work. |
| All times are GMT -4. The time now is 10:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.