Raised This Month: $ Target: $400
 0% 

[core] [NS] ns_get_build


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 10-04-2004 , 13:50   [core] [NS] ns_get_build
Reply With Quote #1

with amx i could use this in plugin_precache()
Code:
if ( is_combat() && ( get_ent("team_command",0) > 1 ) )
with amxx 0.16 and 0.2 only is_combat() worked/works

get_ent("team_command",0) = ns_get_build("team_command",1,0) in amxx 0.2

altough i used ns2amx with amxx 0.16 it has not worked but amx + ns2amx did
__________________
alias White Panther
karlos is offline
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 10-04-2004 , 15:40  
Reply With Quote #2

not fixed but found another way:
Code:
if ( is_combat() && check_cc_num() ) check_cc_num(){     new entid = find_ent_by_class(-1, "team_command") // get commcchair id     new num     while( entid > 0 ){         num++         if( num > 1 ) // more than 1 cc found             return 1         entid = find_ent_by_class(entid, "team_command") // get next commchair id     }     return 0 }
this works
__________________
alias White Panther
karlos is offline
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 10-05-2004 , 16:23  
Reply With Quote #3

the new way works at least for plugin_init(), BUT it is more important to have this in plugin_precache(), but it does not work there
plz someone help
__________________
alias White Panther
karlos is offline
Votorx
Senior Member
Join Date: Jun 2004
Old 10-06-2004 , 13:01  
Reply With Quote #4

How does it not work?
__________________
Currently Looking for a mod team.
Votorx is offline
Send a message via AIM to Votorx Send a message via MSN to Votorx Send a message via Yahoo to Votorx
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 10-06-2004 , 13:18  
Reply With Quote #5

its not morkin
eg: i make if ( if is_combat() && check_cc_num() ) a=1
but a is not set to 1
__________________
alias White Panther
karlos is offline
Reply



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


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