Jump to content

total win script


bandi94

Recommended Posts

function vehicleDetector(pickupID, pickupType, vehicleModel) 
if pickupType == "vehiclechange" and vehicleModel == 425 then 
increaseAccountData(source) 
outputChatBox("*HUNTER ALERT: "..getPlayerName(source).." has found the Hunter!",getRootElement(),25,125,225, true) 
   end 
end 
addEventHandler("onPlayerPickUpRacePickup",getRootElement(),vehicleDetector) 
  
function increaseAccountData(player) 
if not player then return end 
local account = getPlayerAccount(player) 
if not account or isGuestAccount(account) then return end 
local accountData = getAccountData(account,"hunterPoints") 
if not accountData then 
setAccountData(account,"hunterPoints",1) 
else 
setAccountData(account,"hunterPoints",tonumber(accountData)+1) 
  end 
end 

I think it should work (not tested).

Link to comment

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...