21.11.2013, 06:51
Quote:
se vc usa zcmd '-'
pawn Код:
|
pawn Код:
if(strcmp(cmd, "/dar materiais", true) == 0)
{
new suspect = GetClosestPlayer(playerid);
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
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, giveplayer);
SendClientMessage(playerid, 0x32cd32ff, String);
PlayerInfo[playerid][pMats] = amount;
return 1;
}