[HELP] get_pdata_int and StatusText
2 problems
1.if i use this: PHP Code:
PHP Code:
where is wrong? 2.how to change the StatusText properly? i use this: PHP Code:
can anyone give me an example? thank you for your help |
Re: [HELP] get_pdata_int and StatusText
1. Use cs_get_user_team(id) and CS_TEAM_T and CS_TEAM_CT and get_user_name.
2. StatusText is not sent every new player if the text doesn't need to be changed, so it's better to hook StatusValue and to send it there, have a look at xPaw aim country plugin for code example. |
Re: [HELP] get_pdata_int and StatusText
all of the codes are under Round_Start_Event
PHP Code:
i use new TEAM = get_pdata_int(id, 114, 5) client_print(id, print_chat, "%d", TEAM) and i see the number 31660448 in print_chat how can i handle it... and if i use register_clcmd and make the codes under its function, it works fine |
Re: [HELP] get_pdata_int and StatusText
Show your code.
|
Re: [HELP] get_pdata_int and StatusText
PHP Code:
|
Re: [HELP] get_pdata_int and StatusText
Quote:
|
Re: [HELP] get_pdata_int and StatusText
Quote:
|
Re: [HELP] get_pdata_int and StatusText
Quote:
|
Re: [HELP] get_pdata_int and StatusText
Quote:
how can i know what information does a event provide? |
Re: [HELP] get_pdata_int and StatusText
Game event messages with their arguemnts: http://wiki.amxmodx.org/Half-Life_1_Game_Events
For logevents, you can see arguments in the console when the event happens while having "log on". And to get a player entity id from a logevent, you need to get the name from the log message by using parse_loguser() and then use that name on get_user_index(). |
| All times are GMT -4. The time now is 19:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.