[Ajuda]Gravemente ferido
#10

Queria dizer assim DraKoN: (Erros, Bugs e alйms corrigidos)

No topo:
pawn Код:
new timerDeath[MAX_PLAYERS];
em OnGameModeInit:
pawn Код:
SetTimer("MORREUGAY",1000, true);//1000 = tempo INICIA TIMMER DE CHECAR A VIDA

Agora a Public
pawn Код:
forward MORREUGAY ();
public MORREUGAY ()
{
for(new i=0;i<MAX_PLAYERS;i++) {
new Float:health;
GetPlayerHealth(i,health);
 if (health < 10.0)//SE A VIDA FOR MENOR QUE 10
 {
timerDeath[i]=SetTimer("GAYEMO",1000, true,"i",i);//INICIAR UM SETTIMER
TogglePlayerControllable(i,0);}//CONGELAR PLAYER
return 1;
}
Em OnPlayerDeath:
pawn Код:
TogglePlayerControllable(playerid,1);//QUANDO PLAYER MORRER DESCONGELA
KillTimer(timerDeath[playerid]);
Agora
pawn Код:
forward GAYEMO (i);
public GAYEMO(i)
{
SetPlayerHealth(i,-1);//RETIRA VIDA
ApplyAnimation (i, "CRACK" ,"crckdeth1" ,4.1,1,1,1,1,1) ;//SETA UMA AЗГO ESPECIAL
return 1;
}
Reply


Messages In This Thread
[Ajuda]Gravemente ferido - by tshadow - 14.05.2010, 19:29
Re: [Ajuda]Gravemente ferido - by andmeida10 - 14.05.2010, 20:04
Re: [Ajuda]Gravemente ferido - by ipsBruno - 14.05.2010, 20:23
Re: [Ajuda]Gravemente ferido - by russo666 - 14.05.2010, 20:26
Re: [Ajuda]Gravemente ferido - by SuB_ZeRo0_ - 14.05.2010, 20:28
Re: [Ajuda]Gravemente ferido - by tshadow - 14.05.2010, 21:11
Re: [Ajuda]Gravemente ferido - by ipsBruno - 14.05.2010, 21:49
Re: [Ajuda]Gravemente ferido - by SuB_ZeRo0_ - 14.05.2010, 21:57
Re: [Ajuda]Gravemente ferido - by ipsBruno - 14.05.2010, 22:01
Re: [Ajuda]Gravemente ferido - by SuB_ZeRo0_ - 14.05.2010, 22:06

Forum Jump:


Users browsing this thread: 1 Guest(s)