[very useful suggestion] OnPlayerDamagePlayer callback.
#1

OnPlayerDamagePlayer(playerid, targetid, hpdamage, armordamage)

^> This is the most useful & most needy callback ever.

With this callback health/armor hacks would FINALLY dissapear.

Think about SA:MP finally rid of those hacks, it would be so much better.

The code for this already exists the only thing that has to be done is to make this callback.

So please SA:MP team add it, make it as a gift for us scripters for Christmas.
Reply
#2

Quote:
Originally Posted by Whizion
Посмотреть сообщение
The code for this already exists the only thing that has to be done is to make this callback.
You did it?
Reply
#3

This callback is my dream from sa-mp 0.2
Reply
#4

this has already been made.
Reply
#5

Quote:
Originally Posted by Stefan_Toretto
Посмотреть сообщение
You did it?
No, the SA:MP team did it.

How else do we shoot each other in SA:MP?

Quote:
Originally Posted by The_Gangstas
Посмотреть сообщение
this has already been made.
It was done by camera vector functions, which isn't so accurate.
Reply
#6

OnPlayerDamagePlayer(playerid, targetid, hpdamage, armordamage, bodypart)

or

OnPlayerDamagePlayer(playerid, targetid, bodypart)
Reply
#7

I think you're forgetting that bullets aren't server side
Reply
#8

Quote:
Originally Posted by Whizion
Посмотреть сообщение
No, the SA:MP team did it.

How else do we shoot each other in SA:MP?
That's not true, how it works is the server only knows that a player is shooting and is looking in a direction, this information is then given to players. So that player B sees player A shooting and happens to get hit by the bullets. Then Player A tells the server how much health he has. That's all that is happening.

What should be done is a callback that tells the server when a player is hurt and by who, not neccesarily a player damaging another.

OnPlayerDamage(playerid,assailant)
Reply
#9

Well OnPlayerDeath works, so bullets must be server side.
Reply
#10

Quote:
Originally Posted by SilentHuntR
Посмотреть сообщение
That's not true, how it works is the server only knows that a player is shooting and is looking in a direction, this information is then given to players. So that player B sees player A shooting and happens to get hit by the bullets. Then Player A tells the server how much health he has. That's all that is happening.

What should be done is a callback that tells the server when a player is hurt and by who, not neccesarily a player damaging another.

OnPlayerDamage(playerid,assailant)
Well, actually what the client "knows" can be transfered to the server. That's what this mod does. If your game engine "knows" you got hit, lowers your health, applies animation etc. then this call can be hooked by SA-MP client, and client transfers that knowledge to server. It would probably be kind of easy* to hook thing like what caused how much damage. Might be harder to get the players ID who caused it though. Still it would be useful either ways.
*by "easy" I mean it shouldn't be much harder than hooking anything else SA-MP has already done. Not saying its easy, so everyone could do it. it's probably still a lot of work.
Also, I don't understand why this thread is under 0.3C category?
0.3C is under RC, or "Release Candidate" status. Which by definition means that the probably won't be any added functionality, only insect control. (finding&destroying bugs)
It really should be added under "Suggestions For Future Sa:MP Versions."
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)