Raised This Month: $ Target: $400
 0% 

help with origin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SCHWEDEN
Member
Join Date: Dec 2007
Location: 127.0.0.1
Old 10-20-2009 , 17:12   help with origin
Reply With Quote #1

PHP Code:
public hook_ResetHUD(iClient)
{
    if(
task_exists(iClient))
        
remove_task(iClient);
    static 
newangle[3]
    
get_user_originiClientnewangle )
    
gSpawnPosition[iClient][0] = newangle[0];
    
gSpawnPosition[iClient][1] = newangle[1];
    
gSpawnPosition[iClient][2] = newangle[2];
}

public 
hook_DeathMsg()
{
    new 
iVictim read_data(2);
    
lol(iVictim);
   
}

public 
lol(iClient)
{
    static 
newangle[3];
    
get_user_originiClientnewangle );
    
gDeathPosition[iClient][0] = newangle[0];
    
gDeathPosition[iClient][1] = newangle[1];
    
gDeathPosition[iClient][2] = newangle[2];
    
    if(
abs(gDeathPosition[iClient][0] != gSpawnPosition[iClient][0]) && abs(gDeathPosition[iClient][1] != gSpawnPosition[iClient][1])){
something here

Can you find anything wrong here? Its not working for me. It's a private plugin so I would like to not share the whole code.
Thank you for your time!
__________________


Last edited by SCHWEDEN; 10-20-2009 at 17:14. Reason: Sorry, wrong thread, can you please move it?
SCHWEDEN is offline
Send a message via MSN to SCHWEDEN
 



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 17:40.


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