Raised This Month: $ Target: $400
 0% 

Hud Sprite Not Working


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 07-30-2017 , 08:35   Hud Sprite Not Working
Reply With Quote #1

Why hud sprite deosnt work. When i call function nothing happens, no error console/logs.
Sprite precaches but this function doesnt work. It's working only in CSO?

P.S.I used client print to debug and the lines in the function are parsed from start to end but there nothing appears on screen.
It doesnt even show in log or console some kind of error like "invalid message id .." or something. Just nothing happens like the lines are empty....

PHP Code:
public DisplaySprite(id, const iSprite) {    
    if(!
is_user_connected(id))
    return 
PLUGIN_CONTINUE;
    
    static 
origin[3];
    
get_user_origin(idorigin);
    
    
message_begin(MSG_PVSSVC_TEMPENTITYorigin);
    
write_byte(TE_SPRITE);
    
write_coord(origin[0]);
    
write_coord(origin[1]);
    
write_coord(origin[2]+65);
    
write_short(iSprite); 
    
write_byte(10);
    
write_byte(250);
    
message_end();
    
    return 
PLUGIN_CONTINUE;


Last edited by siriusmd99; 07-30-2017 at 08:47.
siriusmd99 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 22:44.


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