Jump to content

KillMessages Race Help


Recommended Posts

Hey guys, i need help with a script, i am trying to make the Flag appear and name in killmessages when a player reaches the hunter. Any ideas?

  
local car = getPedOccupiedVehicle(thePlayer) 
function flagwin(player) 
if car == Hunter then 
exports.killmessages:outputMessage (  {{"image",path="win.png",width=24},getPlayerName(player),},getRootElement(),255,0,0) 
end 
end 
addEvent("onPlayerFinish") 
addEventHandler("onPlayerFinish",getRootElement(), flagwin) 
  

meta:

    "-DTR-Chris" version="1.0.0" type="script" name="Flag Win" description="By Chris" /> 
    

Link to comment
function flagwin() 
local car = getPedOccupiedVehicle(source) 
if getElementModel(car) == 425 then 
exports.killmessages:outputMessage({{"image",path="win.png",width=24},getPlayerName(source),},getRootElement(),255,0,0) 
    end 
end 
addEvent("onPlayerFinish") 
addEventHandler("onPlayerFinish",getRootElement(), flagwin) 

I'm not sure, but shouldn't go the image in killmessages resource?

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