13.12.2010, 14:43
Hello,
here some ideas to improve sa-mp scripting in general...
I think there are still some functions and callbacks missing for precise scripting.
function:
-IsPlayerInWater(playerid) and IsVehicleInWater(vehicleid) >> self-explanatory
Would be very useful for more precise scripting!
callback:
-OnPlayerDamage(playerid, damagetype, weapon, losthp)
damagetype: a player (returns playerid) or some other things like fall off bike (returns -1 for normal damage)
weapon: (returns gunid if damagetype was a player!)
losthp: the health lost when player hurts
There might be other functions and callbacks missing maybe you know some very important one
here some ideas to improve sa-mp scripting in general...
I think there are still some functions and callbacks missing for precise scripting.
function:
-IsPlayerInWater(playerid) and IsVehicleInWater(vehicleid) >> self-explanatory
Would be very useful for more precise scripting!
callback:
-OnPlayerDamage(playerid, damagetype, weapon, losthp)
damagetype: a player (returns playerid) or some other things like fall off bike (returns -1 for normal damage)
weapon: (returns gunid if damagetype was a player!)
losthp: the health lost when player hurts
There might be other functions and callbacks missing maybe you know some very important one