[AJUDA] o Seguinte codigo esta certo?
#3

NAO!! apenas retira
new sequipou = 0;
e coloca isso no topo do gm depois das includes e da seguinte maneira:
new sequipor[MAX_PLAYERS] = 0;
E o codigo fica assim:

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp"/equipar"cmdtexttrue10) == 0)
    {
        if(
sequipou[playerid] = 0)
               {
                 
SetPlayerHealth(playerid,100);
                 
SetPlayerArmour(playerid,100);
                 
SendClientMessage(playerid,cor,"Parabens ! Vocк tomou uma pilula e colocou seu colete !");
                 
sequipou[playerid] = 1;
                }
                if(
sequipou[playerid] = 1)
                {
                
SendClientMessage(playerid,cor,"Vocк Ja se Equipou");
                }
        return 
1;
    }
    return 
0;
}

public 
OnPlayerDeath(playeridkilleridreason)
{
        
sequipou[playerid] = 0;
    return 
1;

Reply


Messages In This Thread
[AJUDA] o Seguinte codigo esta certo? - by Twisty_ - 01.03.2012, 00:31
Re: [AJUDA] o Seguinte codigo esta certo? - by Lucas_Alemao - 01.03.2012, 00:34
Re: [AJUDA] o Seguinte codigo esta certo? - by Hiuship - 01.03.2012, 00:36
Re: [AJUDA] o Seguinte codigo esta certo? - by Twisty_ - 01.03.2012, 00:42
Re: [AJUDA] o Seguinte codigo esta certo? - by Lucas_Alemao - 01.03.2012, 00:48
Re: [AJUDA] o Seguinte codigo esta certo? - by Twisty_ - 01.03.2012, 00:51

Forum Jump:


Users browsing this thread: 1 Guest(s)