1. I made a script that would get what are you looking on. So, I made this:
Code:
public get_aiming(id)
{
new player, bodypart
get_user_aiming(id, player, bodypart, 5)
return PLUGIN_HANDLED
}
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.
__________________