08.08.2018, 22:06
CMD:dararma(playerid, params[])
{
new ID, Arma, Municao, string[134];
if(!IsPlayerAdmin(playerid))
return SendClientMessage(playerid, Vermelho, "| ERRO | Vocк nгo tem permissгo!");
if(sscanf(params, "udd", ID, Arma, Municao))
return SendClientMessage(playerid, Vermelho, "| ERRO | Use: /DarArma [ID] [Arma] [Muniзгo]");
if(!IsPlayerConnected(ID))
return SendClientMessage(playerid, Vermelho, "| ERRO | ID Invбlido!");
format(string, sizeof(string), "| INFO | O(A) Administrador(a) %s (%d) Gerou para vocк a Arma {FF0000}%d {1E90FF}com {FF0000}%d {1E90FF}Muniзхes!", pNome(playerid), playerid, Arma, Municao);
SendClientMessage(ID, Azul, string);
GivePlayerWeapon(ID, Arma, Municao);
return 1;
}
{
new ID, Arma, Municao, string[134];
if(!IsPlayerAdmin(playerid))
return SendClientMessage(playerid, Vermelho, "| ERRO | Vocк nгo tem permissгo!");
if(sscanf(params, "udd", ID, Arma, Municao))
return SendClientMessage(playerid, Vermelho, "| ERRO | Use: /DarArma [ID] [Arma] [Muniзгo]");
if(!IsPlayerConnected(ID))
return SendClientMessage(playerid, Vermelho, "| ERRO | ID Invбlido!");
format(string, sizeof(string), "| INFO | O(A) Administrador(a) %s (%d) Gerou para vocк a Arma {FF0000}%d {1E90FF}com {FF0000}%d {1E90FF}Muniзхes!", pNome(playerid), playerid, Arma, Municao);
SendClientMessage(ID, Azul, string);
GivePlayerWeapon(ID, Arma, Municao);
return 1;
}