Question about money - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Question about money (
/showthread.php?tid=293736)
Question about money -
Wesley221 - 29.10.2011
Hey guys,
Is it possible to detect when a player performs a stunt and getting money from that stunt?
I know there isnt a default function for this, but is there a way to do it?
~Wesly
Re: Question about money -
NessaHD - 29.10.2011
You can enable stunt bonus'es with the "EnableStuntBonusForPlayer", im doing that in my server.
pawn Код:
EnableStuntBonusForAll(enable)
or
EnableStuntBonusForPlayer(playerid, enable)
Re: Question about money -
Gamer_Z - 29.10.2011
Quote:
Originally Posted by Wesley221
Hey guys,
Is it possible to detect when a player performs a stunt and getting money from that stunt?
I know there isnt a default function for this, but is there a way to do it?
~Wesly
|
no you can't detect it unless you make a script which will lagg your server, it would use GetVehicleZAngle, GetVehicleRottionQuat, GetVehicleModelID, GetPlayerVehicleID and complex math, which is hardcoded into GTA and can't be retrieved by us (end-users)
Re: Question about money -
Wesley221 - 30.10.2011
Quote:
Originally Posted by cruteX_modshop
You can enable stunt bonus'es with the "EnableStuntBonusForPlayer", im doing that in my server.
pawn Код:
EnableStuntBonusForAll(enable)
or
EnableStuntBonusForPlayer(playerid, enable)
|
Wasnt really asking for this.. hehe
Quote:
Originally Posted by Gamer_Z
no you can't detect it unless you make a script which will lagg your server, it would use GetVehicleZAngle, GetVehicleRottionQuat, GetVehicleModelID, GetPlayerVehicleID and complex math, which is hardcoded into GTA and can't be retrieved by us (end-users)
|
Alright :\
Had a cool idea if it was possible