![]() |
Getting teams in CS - "TeamInfo"
OK yesterday some hours I had making a tests with the "TeamInfo" CS message to get the teams without using a models. Here what I got.
Code:
// This message is sent whenever information for the teams is sended. I tryed to debug it. So I putted this line at the start of the function: Code:
{ fp=fopen("EPB.txt","a"); fprintf(fp,"BotClient_CS_TeamInfo: %s\n",p); fclose(fp); } Code:
// This message is sent whenever information for the teams is sended. Code:
BotClient_CS_TeamInfo: I moved the debug info in to the if {} else {} to see if my checks for the messages are ok and it seems that all is work just fine but when I try to get the teams of the players it's just not work. I can't get the players and bots teams. The message is sended correct and I get it correct but it seems that this lines are not working correct: Code:
ThreatTab[index].iTeam = TEAM_UNASSIGNED; |
Re: Getting teams in CS - "TeamInfo"
For debug info write also index, to be sure if it is called with ALL parameters correctly.
[EDIT1] Code:
static cell AMX_NATIVE_CALL cs_set_user_team(AMX *amx, cell *params) // cs_set_user_team(index, team, model = 0); = 3 params [/EDIT1] [EDIT2] You need to use: Code:
static int iPlayerIndex; [/EDIT2] |
Re: Getting teams in CS - "TeamInfo"
KWo thanks you so much. I was forgot that I must get the player index via the message. :)
So here the right function: Code:
// This message is sent whenever information for the teams is sended. - THE STORM |
All times are GMT +2. The time now is 01:44. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.