Jump to content

[HELP] Hunter DM


SuleymanM

Recommended Posts

Posted

Is a really simple script, so I'll give it to you:

-- script.lua:

local reward = 2000 
  
addEventHandler ( "onPlayerPickUpRacePickup", root, 
    function ( pickupID, pickupType, vehicleModel ) 
        if ( pickupType == "vehiclechange" ) and ( vehicleModel == 425 ) then 
            givePlayerMoney ( source, reward ) 
            outputChatBox ( getPlayerName ( source ) .." has got the hunter and obtained $".. tostring ( reward ), root, 0, 255, 0 ) 
        end 
    end 
) 

-- meta.xml:

    "Castillo" version="1.0" name="Hunter Reward" type="script" /> 
     
    

Posted
Is a really simple script, so I'll give it to you:

-- script.lua:

local reward = 2000 
  
addEventHandler ( "onPlayerPickUpRacePickup", root, 
    function ( pickupID, pickupType, vehicleModel ) 
        if ( pickupType == "vehiclechange" ) and ( vehicleModel == 425 ) then 
            givePlayerMoney ( source, reward ) 
            outputChatBox ( getPlayerName ( source ) .." has got the hunter and obtained $".. tostring ( reward ), root, 0, 255, 0 ) 
        end 
    end 
) 

-- meta.xml:

    "Castillo" version="1.0" name="Hunter Reward" type="script" /> 
     
    

I'm pretty sure tostring isn't needed in outputChatBox, is it?

Posted

Solidsnake14 can you create plss when you finish race to get money

plss

no when you rich Hunter in DM

in [Race] [Trials] [Run]

plss

it is so simple but i am no scripter i dont know how to create this

plss help me

and thank you for this simple script

work perfect ;)

Posted

You Are Just A thief Man! Castillo Script This For You And You Don,t Give Him credit :

https://community.multitheftauto.com/ind ... ls&id=6388

    local reward = 5000 
      
    addEventHandler ( "onPlayerPickUpRacePickup", root, 
        function ( pickupID, pickupType, vehicleModel ) 
            if ( pickupType == "vehiclechange" ) and ( vehicleModel == 425 ) then 
                givePlayerMoney ( source, reward ) 
                outputChatBox ( getPlayerName ( source ) .." has got the hunter and obtained $".. tostring ( reward ), root, 0, 255, 0 ) 
            end 
        end 
    ) 
  

    
        "Suleyman" version="1.0" name="HunterReward" type="script" /> 
        
        

http://store2.up-00.com/Nov12/Rbi73863.png

Damn it!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...