Team switch onplayerdeath
#1

Heey all,
How can i make if a team dies the other team will be that team?
And they will respawn?

Thanks Admigo
Reply
#2

What are you team variables?
Reply
#3

Quote:
Originally Posted by [MG]Dimi
Посмотреть сообщение
What are you team variables?
if team :gTeam[playerid]=P; dies.
Team gTeam[playerid]=VP; needs to be team p.
Reply
#4

OnPlayerDeath
if( gTeam[playerid] == p)
{
gTeam[playerid]=VP
}
else if( gTeam[playerid] == VP)
{
gTeam[playerid]=p
}
That's is what you mean ?
Reply
#5

Quote:
Originally Posted by juraska
Посмотреть сообщение
OnPlayerDeath
if( gTeam[playerid] == p)
{
gTeam[playerid]=VP
}
else if( gTeam[playerid] == VP)
{
gTeam[playerid]=p
}
That's is what you mean ?
Omg thank you,i am so stupid that i didnt noticed it.
Reply
#6

How can i detect if player pressed f4(force)?
Reply
#7

believe that it is not possible to detect this key but you can use
pawn Код:
public OnPlayerRequestSpawn(playerid)
to prevent that it Spawn
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)