[Ajuda] Evento Zumbi
#1

Код:
forward ChecarZM();
public ChecarZM()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(zombievivos <= 1)
{
if(InZombieMode[i] == 1)
{
new string[120];
format(string,sizeof(string),"Os Caзadores de Zumbis venceram a batalha e agora o MUNDO estб SALVO!");
SendZombieMessage(0x33CCFFAA,string);
ResetPlayerWeapons(i);
SpawnPlayer(i);
SetPlayerArmour(i,0);
zombievivos = 0;
humanovivos = 0;
InZombieMode[i] = 0;
IsAZombie[i] = 0;
IsAHuman[i] = 0;
}
}
if(humanovivos <= 1)
{
if(InZombieMode[i] == 1)
{
new string[120];
format(string,sizeof(string),"[BVC_Zumbi] Os Zumbis venceram a batalha e dominaram o MUNDO!");
SendZombieMessage(0xFF6347AA,string);
ResetPlayerWeapons(i);
SpawnPlayer(i);
SetPlayerArmour(i,0);
zombievivos = 0;
humanovivos = 0;
InZombieMode[i] = 0;
IsAZombie[i] = 0;
IsAHuman[i] = 0;
}
}
}
}
Alguem me ajuda ele ta bugando em vez de mostrar 1 msg mostra 2 quando os zumbis ganha e qnd os caзadores ganha vo mostrar uma print

http://i.imgur.com/cE7q0Qf.png

do +rep

@edit
isso buga sу nos outros ids no id 0 mostra certo

Код:
for (new i; i < MAX_PLAYERS; i++)
ja botei isso e nгo deu certo
Reply
#2

ele ta checando a msm coisa para as duas mensagens
pawn Код:
if(zombievivos <= 1)
{
if(InZombieMode[i] == 1)
{
Reply
#3

eu tiro 1 desse
Код:
if(InZombieMode[i] == 1)
?
@Edit
ja arrumei vlw ae
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)