[Ajuda]50% Da Vida
#4

Quote:
Originally Posted by CaioMors
Посмотреть сообщение
Vlw Tio, Ajudou +Reputation pra Ocй.
Mais o certo seria :

Inicio do GameMode :
pawn Код:
#define MAX_VIDA 50
#define MAX_COLETE 50
Public:
pawn Код:
public OnPlayerUpdate(playerid)
{    
     SetPlayerHealth(playerid,50);    
     SetPlayerArmour(playerid,50);    
}
Pra que definir MAX_VIDA e MAX_COLETE, sendo que nгo estб usando?
Outra coisa, usar OnPlayerUpdate, sу vai lagar seu servidor.

Correto:

PHP код:
// OnGameModeInit
SetTimer("VidaColete"300000true);
// Final do Gamemode
VidaColete();
public 
VidaColete()
{
    for(new 
0!= MAX_PLAYERSi++)
    {
        
SetPlayerHealth(i50);
        
SetPlayerArmour(i50);
    }
    return 
1;

Essa funзгo, irб setar a vida e colete de todos os players para 50, de 5 em 5 minutos, e darб muito menos lag.
Reply


Messages In This Thread
[Ajuda]50% Da Vida - by CaioMors - 23.11.2011, 20:42
Re: [Ajuda]50% Da Vida - by BlackCoder - 23.11.2011, 20:55
Re: [Ajuda]50% Da Vida - by CaioMors - 23.11.2011, 21:16
Re: [Ajuda]50% Da Vida - by DreeH - 23.11.2011, 21:28
Re: [Ajuda]50% Da Vida - by BlackCoder - 23.11.2011, 21:33
Re: [Ajuda]50% Da Vida - by steki. - 23.11.2011, 21:52
Re: [Ajuda]50% Da Vida - by DreeH - 23.11.2011, 22:18
Re: [Ajuda]50% Da Vida - by StreetGT - 23.11.2011, 22:22
Re: [Ajuda]50% Da Vida - by BlackCoder - 23.11.2011, 22:25
Re: [Ajuda]50% Da Vida - by DreeH - 23.11.2011, 22:38

Forum Jump:


Users browsing this thread: 1 Guest(s)