1

Topic: [HELP] Create one flag

Hi again! I need some help. I develop mod of tee-server. For it i need to create just one flag. I writed code, suffered much, but have problem. Function OnEntity return false, but the such shouldn`t be.
I attach content of dm.cpp and dm.h for check.
Pastebin - dm.cpp
Pastebin - dm.h
Please help me, why comile done, but when i want to take the flag, its not work!
I think because  OnEntity return false, again why?
Thx for advance smile

2 (edited by Pikotee 2013-03-19 02:03:40)

Re: [HELP] Create one flag

I'm not sure, but:

L. 29:    if(Index == ENTITY_FLAGSTAND_RED) Team = TEAM_G;

It should be

          if(Index == ENTITY_FLAGSTAND_RED) Team = TEAM_RED;
#yemDX is a known troll

3

Re: [HELP] Create one flag

if(Index == ENTITY_FLAGSTAND_RED) Team = TEAM_G;
  if(Team == -1 || Flag)
    return false;

¿What happens with Flag? Idk if exists more bugs... i saw this and stop reading wink

4

Re: [HELP] Create one flag

Hey. You as robots, if i changed enums and created others, its not mean that i have bugs. Already I have solution, thx for all -_-