Round Start Error
Ok Im trying t fix this plugin to get approved. I changed alot of it . But on round start , everyone dies including me then it does the lightning. Can you tell me whas wrong here ?
Thanks Code:
|
Re: Round Start Error
try register_event("Damage" , "SamariDamage" , "be", "2!0", "4!0"), i'm not sure why coordinate x must not equal to 0. Or try just "2!0".
Damage msg can be called when there is no actual damage. ADDED: Heh, I wrote in one of my tests a comment: Quote:
|
Re: Round Start Error
thats not the problem . The damage event worked on version 0.2 . I didnt change that .
|
Re: Round Start Error
first:
dont precache stuff in plugin_init() i dont think itll precache it anyway (itll give a warning: Precaching not allowed) instead of this: set_pev(id,pev_model,"models/ninja.mdl"); use engfunc(EngFunc_SetModel, id, "models/ninja.mdl"); but if id is a player you need to put ninja in the models/player directory and use cs_set_user_model() (for cs) or other native |
Re: Round Start Error
hi Peanut :)
the engfunc precache in the registery , does work , in fact I got that from Jim Yang . As for the model , I tried that before , But it kills me right at the begining of the round , right as soon as I spawn , so it doesnt give it a chance to set the model , everyone dies . :cry: |
Re: Round Start Error
Quote:
|
Re: Round Start Error
I like it that way though . I wonder why Jim Yang does it like that ?:cry:
Can you see why it kills everyone on round start ? |
Re: Round Start Error
i cant find it so fast.. but there are sooooo many mistakes in that piece of code
examples: missing { and } (a lot); frags is a float; ORIGIN IS A FLOAT (me and VEN already said that to you a few times); precache in plugin_precache() Fix this and ill look again |
Re: Round Start Error
the reason I dont make origin a flaot is because it works when i did it as a interger . I ve never seen frags as a flaot .oops your right about frags just noticed that . let me add some brackets and see if the conditions
work . Heres What I have now , but it doesnt set the player model . Code:
|
Re: Round Start Error
If I had told you that before, I was definitely having drugs that time.
|
| All times are GMT -4. The time now is 22:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.