02.03.2014, 19:34
You can do that with if you use Y_ini. I guess you mean something like this
What I wanted to show you here it's the PlayerInfo[playerid][pHunger] = value;
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;
}