14.10.2012, 04:12
Tenta deste modo:
PHP код:
CMD:dararma(playerid, params[])
{
new String[128], ID, Arma, Municao;
if(sscanf(params, "usd", ID, Arma, Municao)) return SendClientMessage(playerid, -1, "Use: /dararma [id] [arma] [muniзгo]");
if(Arma < 1 || Arma > 46) return 1;
format(String, sizeof(String), "Vocк ganhou a arma: %s com %d de muniзгo!", Arma, Municao);
SendClientMessage(ID, -1, String);
if(!strcmp(params, "Deagle", true))
{
GivePlayerWeapon(ID, 24, Municao);
return 1;
}
if(!strcmp(params, "Shotgun", true))
{
GivePlayerWeapon(ID, 25, Municao);
return 1;
}
return 1;
}