Detect player
I want to make,
if player is in counter-terrosist team and he die he change to terrorist team (Already maked) but if new round start the people who was in ct team and died changed to terrorist team ... (Sorry for my awesome english :D) |
Re: Detect player
Could you clarify?
What I got from that is If someone dies and are on CT, then they change to T. Then on the next round start they switch????????????? |
Re: Detect player
yes.., but if player was terrorist they change to ct team on new round the old cts doesnt change team
|
Re: Detect player
Maybe register the event_deathmsg and then if the player is on T when he dies, change him to CT and if he is CT and he dies, change him to T?
Also, make sure mp_autoteambalance is 0 |
Re: Detect player
PHP Code:
If CT kill T, T moved to CT. If player join after round start he will move to CT. If player was T for round start he will move to CT when round end. if something is wrong... |
Re: Detect player
I think that is what i need :D
thanks i will test later^^ |
Re: Detect player
ok. np :)
|
Re: Detect player
Just to point out, there is no purpose in setting ter[id] equal to false on both connect and disconnect.
|
Re: Detect player
Code:
|
Re: Detect player
Can i be used to get user team? It's not an index?
Code:
for(new i=1; i<=g_Maxplayers; i++){ |
| All times are GMT -4. The time now is 21:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.