[AJUDA] Health
#10

Ajudou e muito +rep obrigado!,

ficou assim:
pawn Код:
if(strcmp(cmd, "/comerhotdog",true)==0)
    {
        if (bHotDog[playerid] != 1)
        {
            SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo tem um hotdog!");
            return 1;
        }      
        new Float:vida;
        if(vida == 100) return SendClientMessage(playerid, COLOR_GREY, "Vocк nгo pode comer, esta de barriga cheia!");        
        GetPlayerHealth(playerid, vida);        
        SetPlayerHealth(playerid, vida+20);
        format(string, sizeof(string), "* Vocк comeu um hotdog.");
        SendClientMessage(playerid, COLOR_WHITE, string);
        format(string, sizeof(string), "* %s pega um hotdog e come.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        bHotDog[playerid] = 0;
        return 1;
    }
funcionou certinho
Reply


Messages In This Thread
[AJUDA] Health - by Aquilis - 16.11.2011, 14:51
Re: [AJUDA] Health - by GustavoBonomo - 16.11.2011, 15:05
Re: [AJUDA] Health - by adminlucas - 16.11.2011, 15:14
Re: [AJUDA] Health - by Aquilis - 16.11.2011, 15:15
Re: [AJUDA] Health - by adminlucas - 16.11.2011, 15:17
Re: [AJUDA] Health - by Aquilis - 16.11.2011, 15:21
Re: [AJUDA] Health - by Dolby - 16.11.2011, 15:28
Re: [AJUDA] Health - by rjjj - 16.11.2011, 15:28
Re: [AJUDA] Health - by adminlucas - 16.11.2011, 15:30
Re: [AJUDA] Health - by Aquilis - 16.11.2011, 15:41

Forum Jump:


Users browsing this thread: 1 Guest(s)