Raised This Month: $ Target: $400
 0% 

Rank does not work with my plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Pinatz
Member
Join Date: Dec 2008
Old 01-05-2011 , 12:07   Rank does not work with my plugin
Reply With Quote #1

Hey all :)
I have this code which is called when a player touchs another.
PHP Code:
                set_msg_block(deathMsg,BLOCK_ONCE
                
set_msg_block(scoreMsg,BLOCK_ONCE)
                
user_silentkill(pTouched)
                
make_deathmsg(pToucher,pTouched,0,"knife")
                
cs_set_user_deaths(pTouched,cs_get_user_deaths (pTouched)+1)  
                
set_user_frags(pToucher,get_user_frags(pToucher) + 1
But the rank plugin of amxx does not count this. :(

And another question I have. Is there a faster way to check 2 players distance to each other than the following method?

PHP Code:
public distance_check() {
    if(
get_pcvar_num(g_distancecheck) && !wait) {
        for(new 
i=1;i<33;i++) {
            if(
is_user_alive(i)) {
                for(new 
x=1;x<33;x++) {
                    if(
is_user_alive(x) && is_visible(x,i) && != && team[i-1] != team[x-1]) {
                        new 
iOrigin[3], xOrigin[3]
                        
get_user_origin(i,iOrigin)
                        
get_user_origin(x,xOrigin)
                        if(
get_distance(iOrigin,xOrigin) <= get_pcvar_num(g_distance)) {
                            if(
team[i-1] == && team[x-1] == 0)
                                
touch(i,x)
                            else
                                
touch(x,i)
                        }
                    }
                }
            }
        }
    }

__________________
Pinatz 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 02:10.


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