codeluaeveryday Posted October 9, 2011 Share Posted October 9, 2011 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
Cadu12 Posted October 9, 2011 Share Posted October 9, 2011 Event is wrong. You can get more events for race, here: https://wiki.multitheftauto.com/wiki/Resource:Race Link to comment
Castillo Posted October 9, 2011 Share Posted October 9, 2011 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now