Raised This Month: $51 Target: $400
 12% 

change players scoreinfo


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 10-18-2004 , 12:30   change players scoreinfo
Reply With Quote #1

i try to change a players scoreinfo in Natural-Selection
Code:
new score = 1 new frags = get_user_frags(lifter) + 1 new deaths = get_user_deaths(lifter) new dummy = 0 new class_a = get_team(lifter) new team = pev(lifter,pev_team)                         message_begin(MSG_ALL, get_user_msgid("ScoreInfo")) write_byte(lifter) write_short(frags)  // score write_short(deaths) // frags write_short(dummy)  // deaths write_short(class)  // class write_short(0)    // ? write_short(team)   // team message_end()
i can change frags and deaths but it always change the scoreboard so that i have alien colored scoreboard, red colored or readyroom (white) and dont see my score or score of anyone else
also if the color changed there is no name like alien or red team, only if readyroom score then there is redyrrom writen

team = 1 -> ready room (or maybe it was with 0 ready room and with 1 like 3 or 4)
team = 2 -> aliens (team name not writen)
team = 3 or 4 -> readyroom but not writen that reayroom
team = 5 -> aliens , cryptic text

any1 can help?
__________________
alias White Panther
karlos is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 10-18-2004 , 17:50  
Reply With Quote #2

http://homepage.ntlworld.com/pr.sear...ScoreInfo.html

Take a look at that, I think you have the wrong message syntax
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 10-19-2004 , 14:23  
Reply With Quote #3

yes thx
now its almost working

1) how can i get the player class? ns_get_class and pev(id,pev_playerclass) not working as they are different from the scoreingo
this is the list from scoreinfo class types
Code:
PLAYERCLASS_NONE = 0, PLAYERCLASS_ALIVE_MARINE, PLAYERCLASS_ALIVE_HEAVY_MARINE, PLAYERCLASS_ALIVE_LEVEL1, PLAYERCLASS_ALIVE_LEVEL2, PLAYERCLASS_ALIVE_LEVEL3, PLAYERCLASS_ALIVE_LEVEL4, PLAYERCLASS_ALIVE_LEVEL5, PLAYERCLASS_ALIVE_DIGESTING, PLAYERCLASS_ALIVE_GESTATING, PLAYERCLASS_DEAD_MARINE, PLAYERCLASS_DEAD_ALIEN, PLAYERCLASS_COMMANDER, PLAYERCLASS_REINFORCING, PLAYERCLASS_SPECTATOR
this is ns_get_class list
Code:
CLASS_UNKNOWN = 0, CLASS_SKULK, CLASS_GORGE, CLASS_LERK, CLASS_FADE, CLASS_ONOS, CLASS_MARINE, CLASS_JETPACK, CLASS_HEAVY, CLASS_COMMANDER, CLASS_GESTATE, CLASS_DEAD, CLASS_NOTEAM

2) how does i get the auth status of a player ?

3) how do i get players score?? get_user_frags are not = score but = kills

4) how do i get players deaths ?? get_user_deaths is = players kills
__________________
alias White Panther
karlos is offline
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 10-20-2004 , 12:53  
Reply With Quote #4

1) did it, not with a func but with some if's

4) found out, ns_get_deaths(id)



3) it should be ns_get_score(id) but that's not working
eg:
i kill alien -> score = 1
i kill alien rt -> score = 4 (+3)
but ns_get_score() says it is = 1
__________________
alias White Panther
karlos is offline
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 10-20-2004 , 13:56  
Reply With Quote #5

3) done, ns_get_score() = points got by not killing
the example by me was bad sry
so if u killed 6 aliens and 2 rts, ns_get_score will return 6 (rt give 3 points, 2*3 = 6)

NOW i only need number 2)
__________________
alias White Panther
karlos is offline
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 10-24-2004 , 08:53  
Reply With Quote #6

noone knows how to het auth status??
__________________
alias White Panther
karlos is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-24-2004 , 18:30  
Reply With Quote #7

Auth status being?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 10-24-2004 , 19:05  
Reply With Quote #8

server op,developer and so on
look the link from devicenull
__________________
alias White Panther
karlos is offline
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 11-05-2004 , 19:33  
Reply With Quote #9

still no one knows??
__________________
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 13:47.


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