20.11.2013, 10:43
se vc usa zcmd '-'
pawn Код:
CMD:darmats(playerid, params[])
{
new targetid, amount, String[67];
if(sscanf(params, "ui", targetid, amount)) return SendClientMessage(playerid, 0x32cd32ff, "CMD: /darmats <id/nome> <quantidade>");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xff0000ff, "(!) O jogador esta offline");
format(String, sizeof String, "Vocк deu %d de materiais para %s", amount, Nome(targetid));
SendClientMessage(playerid, 0x32cd32ff, String);
PlayerInfo[playerid][pMats] = amount;
return 1;
}