Raised This Month: $ Target: $400
 0% 

Spray and user origins


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
t3hNox
Senior Member
Join Date: Oct 2009
Old 08-16-2010 , 17:08   Spray and user origins
Reply With Quote #1

Well I don't understand what is wrong:
PHP Code:
new sprayorigins[3]
public 
plugin_init() {
    
register_event("23""NewSpray""a""1=112")
}

public 
NewSpray()
{
    
sprayorigins[0] = read_data(3)    // Spray coord x
    
sprayorigins[1] = read_data(4)    // Spray coord y
    
sprayorigins[2] = read_data(5)    // Spray coord z
    
    
client_print(0print_chat"Spray position: X %f | Y %f | Z %f"sprayorigins[0], sprayorigins[1],sprayorigins[2])

All origins will be 0.0000
And also if I use:
PHP Code:
new userorigin[3]
get_user_origin(iduserorigin
It will return 0.000
However,
PHP Code:
pev(idpev_originuserorigin
will return the actual origin of a player in a map.

In this case I'm more interesated why the origin of a spray is 0.000 ?
t3hNox is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode