Jump to content

Question locate player


Best-Killer

Recommended Posts

Posted

i want make locate player system :

It should draw dx text with the located player location info, the orientation and the meters. draws too an arrow above the player who is locating pointing to the located one.

any example ?

Posted

Are You Fucking Kidding me ? -.-

how i can start it and i don't know what i need from Functions/events ??? can answer ??

tell me what i need Functions/Event or don't post anything -.-

Not you karim i'm talking with that guy -.- Bonsai

Posted
Are You :o Kidding me ? -.-

how i can start it and i don't know what i need from Functions/events ??? can answer ??

tell me what i need Functions/Event or don't post anything -.-

Calm down, he just asked you to try something go to wiki read abit... and after all none here is your personal scripting assistant. so be nice

Posted
Are You :o Kidding me ? -.-

how i can start it and i don't know what i need from Functions/events ??? can answer ??

tell me what i need Functions/Event or don't post anything -.-

Calm down, he just asked you to try something go to wiki read abit... and after all none here is your personal scripting assistant. so be nice

i know Kariiim but i said in post example i don't tell anyone for do it for me somthing i said just i want example (what i need EVENTS/Functions -Client-Server Side)

that what i want

but it's ok thanks all

Posted

If you want to create a script, its your job to do some research what you might need.

Then you can come here and ask the people if e.g. those are the right functions/events to use.

Asking for an "example" happens to much around here.

You would only copy and paste it anyway.

Start with drawing a simple text, then think about other stuff.

Posted

i know how to draw a text :) but i want know right functions/events to make the loc system

and the important thing is : draw an arrow above the player who is locating pointing to the located one.

at least tell me how to draw an arrow above the player who is locatining pointing to the located one .

or give me the right events/function of all script if you can and thanks u

Posted

Wiki. To answer few questions // Use wiki for more info // Assuming you are going to use dxDrawText or what not, first you need to find the players location X,Y on your screen, //

getScreenFromWorldPosition 

// Then use

dxDrawText ( Text Jah Want,X From getScreenFromWorldPosition,Y+ 5 from getScreenFromWorldPosition ) 

then you want to update every few secounds, or every frame //Not quite sure of function for that// And so on and so forth.

Small example///

function drawsomething () 
 X, Y = getScreenFromWorldPosition (0,0) 
text = dxDrawText (HERES 0, X, Y ) 
end 
  
setTimer ( drawsomething, 1000, 0 ) 

Now of course there's more to it, but basic stuff for your brain should help.

Oh and for the arrrow, get a png picture, make background invisible and here's an easy one for you

  
X,Y = getScreenFromWorldPosition (THEX,THEY+3,THEZ) 
Picture = dxCreateTexture("arrow.png") 
dxDrawImage (X,Y, Width,Hight, Picture) 

Then to make the text float above it

text = dxDrawText (Text, X, Y+3 ) 

I hope you can understand this.

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