'Defines' and 'if()'
I can't get this to work.
Code:
Now i want to use them like this: Code:
And where the %s is, i want it to show the number i defined up there. EDIT: forgot small tags :roll: |
Code:
|
Thank you. The frag-telling-thing works now.
Next question :o How do i get the teams for IE. Vampire Slayer? I thought i could do like this: Code:
... That just doesn't work. |
what mod are you trying to write this for?
The code i just gave you is wrong.. So on every kill you want it to tell them you need xNumber of kills before you get blah. |
No. They should only get the number of kills they need if they're having under the limit.
I'm writing this for VS (Vampire Slayer). The problem is that it won't check the teams... |
the thing about get_user_team is you got to know what the constant for each team is. Once you know you can write the if statements for it. The thing is i don't know what you trying to do.
if you trying to catch this during a DeathMsg event. Code:
Quote:
|
ok...
----------------------------------------------- I have two problems now. 1) it won't check which team the player is on. (tried yours, but i messed it up 8) just look...) 2) it doesn't make the player 100% invisible. Code:
Notice the team constants is 1 & 2, because i got errors with the others. |
Code:
try this. |
Just tested it, here's what happened...
When i got 15 kills, it kept saying that i needed 15 kills, and also i would like it to say when you're on the wrong teams. Slayers can't get invisible, vampires can't get weapons. |
Code:
client_print(0, 3, "DEBUG: weapon Team %i", kTeam) client_print(0, 3, "DEBUG: invis Team %i", kTeam) I have add this to both of the commands. See if the team constants are correct. Only reason it not working is because it not right constants for the teams. If you need any more help, just IM using one of my IM. I'll be working on a ATAC for NS. Edit: ps also in NS mod get_user_team doesn't work i had to do a different way so for VS mod might has to be do the same thing. |
| All times are GMT -4. The time now is 16:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.