get_user_aiming, set view, maximum value
1. I made a script that would get what are you looking on. So, I made this:
Code:
Now, how can I check data of player on your looking on? I mean, on player thing. This is first time I'm using it, so can you show me, how to, let's say, check the health of player looking at ( check health only if he's looking on valid player ). 2. How can I set view to another player using only AMXX? I tried looking at Jedi Mind Control from Twilight Suzuka, but I couldn't figure it out.... 3. How can I set maximum value for something? Let's say, restrict that users can't get over 50 health, or something... Can any1 show this? Thanks. |
1.
Code:
2. Code:
3. make a infinite looping task that checks all players health and if any go above 50, change it to 50 |
First off, fun module? Whats with you people and using fun module?
second: from engine: Code:
|
Can you show me that kinda task loop?
Also, how could I disable that limit that's not integrated in mine plugin, its integrated in other? Or, is there another way to set limit for that? Thanks. And, 1 more thing, how can I make that if other player approaches to player which is using some function, on let's say 5 meters, it pushes him away 20 meters? So, that's basically push-away if closes on specified distance. |
um, first I think this will work but not sure since i did not test
Code:
I remember runemod had a rune(kinetics) that pushed away the person if u want to look at that. And there was a jedi grab plugin with pushing in it. |
Okay, I'll try it right now :)
Anybody for pushaway? |
Well, it doesn't work. I think set_task shouldn't be used in plugin_init() :lol:
Anyway, what I'm trying to do is remove cvar. Is there any way to remove a cvar or to block it? Still no pony or pushaway. |
it works, just tested but i left out a comma by accident, here.
Code:
|
Well, this works. But is there a way to set a limit on integer based thing?
Pushaway? Remove cvar? Thanks. |
| All times are GMT -4. The time now is 10:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.