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" /> 
     
    

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

I already did, create a new folder and then create two files with the names I said above, then copy each content to each file.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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?

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

Posted

It isn't, must be put it from habit.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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 ;)

430x73.png
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...