SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 13/08/2020, 08:22 PM   #1
CUDECAMELO
Little Clucker
 
Join Date: Oct 2019
Location: Casa Do CJ
Posts: 7
Reputation: 0
Default Sistema de Ficar Inconsciente ;(

pawn Code:
new bool:pIncosciente[MAX_PLAYER_NAME];

public OnPlayerStateChange(playerid, newstate, oldstate)
{
      new Float:Vida;
      GetPlayerHealth(playerid, Vida);
      if(Vida <= 15.0)
      {

            ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
            TogglePlayerControllable(playerid, 0);
            pIncosciente[playerid] = true;
       }
       return 1;
}

Oi , esse codigo até compila, mas na hora de testar, nao acontece nada, quando fica com 15 ou menos de life nao acontece nada . Se alguem me poder ajudar e explicar agradeco.

OBS: Sou novato estou aprendendo nao me julguem rsrsrs(mentira, a vontade kk )
__________________
CUDECAMELO is offline   Reply With Quote
Old 14/08/2020, 12:03 AM   #2
MasterWinX
Big Clucker
 
MasterWinX's Avatar
 
Join Date: Mar 2019
Location: San Fierro
Posts: 95
Reputation: 1
Default Re: Sistema de Ficar Inconsciente ;(

Tenta por na OnPlayerUpdate
__________________
MasterWinX is offline   Reply With Quote
Old 14/08/2020, 12:45 AM   #3
CUDECAMELO
Little Clucker
 
Join Date: Oct 2019
Location: Casa Do CJ
Posts: 7
Reputation: 0
Default Re: Sistema de Ficar Inconsciente ;(

Ah sim, obrigado! Erro Meu .-! +rep
__________________
CUDECAMELO is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] não ficar de esc Erlys Português/Portuguese 1 05/06/2016 05:16 AM
[Ajuda] sistema de kick apos ficar afk por um tempo fdsda Português/Portuguese 3 25/09/2015 03:33 AM
[Ajuda] Ficar bebado DevilAgain Português/Portuguese 6 28/07/2014 02:26 AM
[Ajuda] Ao morrer ficar com material 0 gmstrikker Português/Portuguese 7 21/11/2013 06:51 AM
[Ajuda] Ficar gravado o dia q deu Vip DiegoLkd Português/Portuguese 9 25/09/2013 05:47 PM


All times are GMT. The time now is 12:58 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.