A Little Question [+REP]
#3

You can do that with if you use Y_ini. I guess you mean something like this
pawn Код:
YCMD:sethunger(playerid, params[], help)
{
    if (help) return SendClientMessage(playerid, 0x808080FF, "/heal este folosit pentru a da viata unui player, necesita truse de prim ajutor.");
    new id, value;
    if(!PlayerInfo[playerid][pAdmin] && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Nu esti admin");
    if(sscanf(params,"dd",id,value)) return SendClientMessage(playerid, COLOR_GREY, "[FOLOSIRE]:/sethunger [IDplayer] [Suma]");
    PlayerInfo[playerid][pHunger] = value;
    return 1;
}
What I wanted to show you here it's the PlayerInfo[playerid][pHunger] = value;
Reply


Messages In This Thread
A Little Question [+REP] - by Ady_Ro - 02.03.2014, 12:25
Re: A Little Question [+REP] - by Ady_Ro - 02.03.2014, 18:56
Re: A Little Question [+REP] - by ZeroTheScyther - 02.03.2014, 19:34
Re: A Little Question [+REP] - by Ady_Ro - 02.03.2014, 20:07
Re: A Little Question [+REP] - by ConnorHunter - 02.03.2014, 20:12
Re: A Little Question [+REP] - by Ady_Ro - 02.03.2014, 20:35
Re: A Little Question [+REP] - by ConnorHunter - 02.03.2014, 20:36

Forum Jump:


Users browsing this thread: 1 Guest(s)