verdao Posted May 5, 2014 Posted May 5, 2014 how can I do to when the player enters certain area appear onscreen text such as this printscreen
Castillo Posted May 5, 2014 Posted May 5, 2014 You can create a colshape, and when hit it, you can either create a GUI label or draw a DX text. createColRectangle guiCreateLabel dxDrawText San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
-.Paradox.- Posted May 5, 2014 Posted May 5, 2014 hey help me did not work dxdrawtext local hillArea = createColRectangle ( -1050, -1187,100,100 ) local hillRadar = createRadarArea ( -1050, -1187,100,100,0,255,0, 100 ) ------------------ BASE Do Resource function hill_Enter ( thePlayer, matchingDimension ) if (getElementType(thePlayer) == "player") then outputChatBox( getPlayerName(thePlayer) .. " Enter to SAFEZONE!", getRootElement(), 255, 255, 109 ) toggleControl ( thePlayer, "fire", false ) setElementData( thePlayer, "blood", false) setElementData( thePlayer, "isExploded", false) toggleControl ( thePlayer, "fire", false) toggleControl ( thePlayer, "next_weapon", false) toggleControl ( thePlayer, "previous_weapon", false) toggleControl ( thePlayer, "aim_weapon", false) toggleControl ( thePlayer, "vehicle_fire", false) dxDrawText("SAFEZONE!",557.0,318.0,872.0,368.0,tocolor(255,0,0,255),2.0,"default","left","top",false,false,false) setRadarAreaFlashing ( hillRadar, true ) end end dxDrawText is client side, your code is server side so you should use textCreateTextItem textCreateDisplay textDisplayAddText textDisplayAddObserver Or trigger onClientRender from client side to server side and create a client side timer to make it disappear after each second with triggerClientEvent setTimer removeEventHandler If you're looking for a cheap paid scripter, don't hesitate to contact me. Great minds discuss ideas, Average minds discuss events and small minds discuss people.
-.Paradox.- Posted May 5, 2014 Posted May 5, 2014 Oh yeah sorry my bad, thought setElementData is server side :3 because I used it only in my server sided codes If you're looking for a cheap paid scripter, don't hesitate to contact me. Great minds discuss ideas, Average minds discuss events and small minds discuss people.
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