[Ajuda] Booleana
#10

Й sу colocar a mensagem fora do loop!
PHP код:
public OnFilterScriptInit()
{
    print(
"FS");
    return 
1;
}

public 
OnPlayerGiveDamage(playeriddamagedidFloat:amountweaponid)
{
    for(new 
iGetPlayerPoolSize() + 1i++)
    {

        if(
IsPlayerConnected(i))
        {

            if(
uhul[i]) // se for verdadeiro
            
{

                static 
Float:vida;
                
GetPlayerHealth(damagedidvida);
                
SetPlayerArmour(damagedid, (vida-amount));
                
SetPlayerHealth(damagedid, (vida-amount));
            }
        }
    }
    return 
1;
}

CMD:bora(playerid)
{
    for(new 
iGetPlayerPoolSize() + 1i++)
    {
        
SetPlayerHealth(i100);
        
SetPlayerArmour(i100);
        
uhul[i] = true;
    }
    
format(stringsizeof(string), "O %s Vamo em boraaa"nome(playerid));
    
SendClientMessageToAll(-1string);
    return 
1;
}

CMD:saircf(playerid)
{
    for(new 
iGetPlayerPoolSize() + 1i++)
    {
        
uhul[i] = false;
        
SpawnPlayer(i);
        
SetPlayerArmour(i0);
    }
    
format(stringsizeof(string), "O %s mandou geral voltar"nome(playerid));
    
SendClientMessageToAll(-1string);
    return 
1;
}

nome(playerid)
{
    new 
nomee[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnomeesizeof(nomee));
    return 
nomee;

Reply


Messages In This Thread
Booleana - by FabioGTP - 25.09.2016, 20:14
Re: Booleana - by JPedro - 25.09.2016, 20:21
Re: Booleana - by FabioGTP - 25.09.2016, 20:23
Re: Booleana - by JPedro - 25.09.2016, 20:28
Re: Booleana - by FabioGTP - 25.09.2016, 20:44
Re: Booleana - by Whoo - 25.09.2016, 20:58
Re: Booleana - by FabioGTP - 25.09.2016, 21:04
Re: Booleana - by JPedro - 25.09.2016, 21:04
Re: Booleana - by FabioGTP - 25.09.2016, 21:11
Respuesta: Booleana - by SammyJ - 25.09.2016, 21:14

Forum Jump:


Users browsing this thread: 3 Guest(s)