SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 28/12/2012, 10:30 AM   #1
Humildade
Big Clucker
 
Join Date: Nov 2012
Posts: 98
Reputation: 8
Default Vida

Pessoal,
alguém pode me arrumar um comando em que o admin dono 1341
usa ele, ai quando alguém dar tiro nele, ele não morre, quando ele cair de um prédio, tomar um tapao,

vlw
Humildade is offline   Reply With Quote
Old 28/12/2012, 10:34 AM   #2
Joao Pedro
Guest
 
Posts: n/a
Default Re: Vida

SetPlayerHelth(playerid, 9999);

Só acoplar isso em algum comando
  Reply With Quote
Old 28/12/2012, 10:36 AM   #3
Humildade
Big Clucker
 
Join Date: Nov 2012
Posts: 98
Reputation: 8
Default Re: Vida

Nem Funciona,
eu dei 2 tapao em mim, quando eu cai morri
Humildade is offline   Reply With Quote
Old 28/12/2012, 10:37 AM   #4
Joao Pedro
Guest
 
Posts: n/a
Default Re: Vida

Que não funciona rapaz. Eu uso isso. Você acoplou errado.
  Reply With Quote
Old 28/12/2012, 10:38 AM   #5
LeMoi
Gangsta
 
LeMoi's Avatar
 
Join Date: Jul 2011
Location: Portugal
Posts: 972
Reputation: 112
Default Re: Vida

Coloque isso no comando de virar admin.
LeMoi is offline   Reply With Quote
Old 28/12/2012, 11:05 AM   #6
jpeg
High-roller
 
jpeg's Avatar
 
Join Date: Jul 2012
Posts: 1,050
Reputation: 34
Default Re: Vida

pawn Code:
new GodModeLigado[MAX_PLAYERS];
new GodModeTimer[MAX_PLAYERS];

//OnPlayerConnect
GodModeLigado[playerid] = 0;

if(strcmp(cmdtext, "/godmode", true)==0)
{
    if(VariavelAdmin[Level] && GodModeLigado[playerid] == 1)
    {
        KillTimer(GodModeTimer[playerid]);
        GodModeLigado[playerid] = 0;
        SetPlayerHealth(playerid, 100);
        // GodMode Desligado
    }
    else
    {
        SetPlayerHealth(playerid, 999999);
        GodModeTimer[playerid] = SetTimerEx("AtualizarGodMode", 3000, 1, "i", playerid);
        GodModeLigado[playerid] = 1;
        // GodMode Ligado
    }
    return 1;
}

forward AtualizarGodMode(playerid);
public AtualizarGodMode(playerid)
{
    if(VariavelAdmin[Level] && GodModeLigado[playerid] == 1)
    {
        SetPlayerHealth(playerid, 999999);
    }
}

Fiz agora, nem testei.
__________________
jpeg 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] Bug vida _LorD_ Português/Portuguese 4 08/09/2012 07:14 PM
[Ajuda] cor na vida [toːkʲoː]_Shinjuku_.] Português/Portuguese 3 17/08/2012 06:05 PM
[AJUDA] Vida GhosT_[] Português/Portuguese 5 12/06/2012 07:51 PM


All times are GMT. The time now is 02:54 PM.


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