[AJUDA] Comando /curar !!!
#3

pawn Код:
//Coloque como variavel global
new plid, skin;

if(strcmp(cmd, "/aceitar", true) == 0)
{
    new aname[MAX_PLAYER_NAME];
    new string[128];
    GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
    skin = strval(tmp);
    if(IsPlayerConnected(playerid)) {
        if(convitevida[plid] == 1) {
            SendClientMessage(plid,Amarelo, "Vocк aceitou o curativo!");
            format(string, sizeof(string), "O Player %s(ID: %d) aceitou o curativo.", aname, plid);
            SendClientMessage(playerid, Amarelo, string);
            SetPlayerHealth(playerid, 100);
            GivePlayerMoney(plid, skin);
            GivePlayerMoney(playerid, -skin);
            convitevida[plid] = 0;
        }
    }
    return 1;
}
Reply


Messages In This Thread
[AJUDA] Comando /curar !!! - by danktog - 01.12.2011, 16:25
Re: [AJUDA] Comando /curar !!! - by dPlaYer_ - 01.12.2011, 16:35
Re: [AJUDA] Comando /curar !!! - by |_MeGaTroN_| - 01.12.2011, 16:49
Re: [AJUDA] Comando /curar !!! - by dPlaYer_ - 01.12.2011, 17:08
Re: [AJUDA] Comando /curar !!! - by danktog - 01.12.2011, 17:29
Re: [AJUDA] Comando /curar !!! - by dPlaYer_ - 01.12.2011, 17:48
Re: [AJUDA] Comando /curar !!! - by Cristhian - 01.12.2011, 20:05
Re: [AJUDA] Comando /curar !!! - by Dreppins_Coodaaw - 01.02.2012, 19:09
Re: [AJUDA] Comando /curar !!! - by dPlaYer_ - 01.02.2012, 19:21
Re: [AJUDA] Comando /curar !!! - by Lucas_Alemao - 01.02.2012, 19:43

Forum Jump:


Users browsing this thread: 2 Guest(s)