[SUG] more precise scripting
#1

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
Reply


Messages In This Thread
[SUG] more precise scripting - by [NeS]Justin - 13.12.2010, 14:43
Re: [SUG] more precise scripting - by [MWR]Blood - 13.12.2010, 14:44
Re: [SUG] more precise scripting - by Raul_Ro - 13.12.2010, 15:01
Re: [SUG] more precise scripting - by Blantas - 13.12.2010, 15:37
Re: [SUG] more precise scripting - by [NeS]Justin - 13.12.2010, 15:42
Re: [SUG] more precise scripting - by Sergei - 13.12.2010, 16:00
Re: [SUG] more precise scripting - by [NeS]Justin - 13.12.2010, 16:08
Re: [SUG] more precise scripting - by _Necro_ - 13.12.2010, 16:17
Re: [SUG] more precise scripting - by playbox12 - 13.12.2010, 16:39
Re: [SUG] more precise scripting - by boelie - 13.12.2010, 16:48

Forum Jump:


Users browsing this thread: 1 Guest(s)