Empires, get player score
I'm currently trying to get the player scores in the mod empires
I've tried to use the player_score event, but this isn't used in empires. Also I've tried to get them via GetEntData, m_iScore but this doesn't exist for player entites. Then I've tried to search the right m_Offset in the server.dll, found m_iRank but this also doesn't exist for the player entites Does anyone have a idea how I could get the scores ? |
Re: Empires, get player score
do you have an entity prop dump available?
if you don't type sm_dump_props <filename> (server console or rcon) and post the file somewhere so I can have a look. |
Re: Empires, get player score
1 Attachment(s)
Im anhang befindet sich der dump.
Der classname für spieler ist CSDKPlayer und danke für den befehl, kannte den garnicht. Aber er war sm_dump_netprops du hattest das net vergessen :D Edit: Sorry, forgot to write enlish Attached is the dump from sm_dump_netprops, u've forgotten the net in the cmd :D |
Re: Empires, get player score
Ich glaube ich habe gerade etwas gefunden:
Code:
CPlayerResource: Edit: and here I've forgotten it too: I think that I've found something, but i don't know how to access them if you could help me with that :) |
Re: Empires, get player score
Sorry, I don't speak
The 'CPlayerResource' seems to be the only place that records player scores. You first need to find the ent id of this: Code:
new maxplayers = GetMaxClients(); Code:
new offsetFindSendPropOffs("CTFPlayerResource", "m_iScore") Code:
GetEntData(ent, offset + (client*4), 4); |
Re: Empires, get player score
First of all, thx your my last hope ;)
Code:
new maxplayers = GetMaxClients(); Edit: even when I use the right Classname (CPlayerResource) its not working. There Ive got a very very high numer... Edit2: ups i'm a real fool... gimme a sec |
Re: Empires, get player score
change the 'return;' to 'break;'
Change both CTFPlayerResource -> CPlayerResource |
Re: Empires, get player score
Ok, now I got it working.
You are the best :) Code:
new maxplayers = GetMaxClients(); |
All times are GMT -4. The time now is 19:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.