AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   change players scoreinfo (https://forums.alliedmods.net/showthread.php?t=6902)

karlos 10-18-2004 12:30

change players scoreinfo
 
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?

devicenull 10-18-2004 17:50

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

Take a look at that, I think you have the wrong message syntax

karlos 10-19-2004 14:23

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

karlos 10-20-2004 12:53

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

karlos 10-20-2004 13:56

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)

karlos 10-24-2004 08:53

noone knows how to het auth status??

XxAvalanchexX 10-24-2004 18:30

Auth status being?

karlos 10-24-2004 19:05

server op,developer and so on
look the link from devicenull

karlos 11-05-2004 19:33

still no one knows??


All times are GMT -4. The time now is 17:16.

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