Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function CITStunt( stuntType, stuntTime, distance )
- if getPlayerTeam(source, getTeamFromName("Staff")) then
- return false
- end
- local vehicle = getPedOccupiedVehicle(source)
- local speed = ( function( x, y, z ) return math.floor( math.sqrt( x*x + y*y + z*z ) * 155 ) end )( getElementVelocity( vehicle ) )
- if (distance < 1) then
- return false
- end
- money = 100*tonumber(stuntTime)+tonumber(distance)
- givePlayerMoney(tonumber(money))
- outputChatBox("Earned "..tonumber(money).." because of doing a stunt!", 0, 200, 0)
- end
- addEventHandler( "onClientPlayerStuntFinish", getRootElement( ), CITStunt)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement