15.04.2010, 03:52
pawn Код:
if(strcmp(cmd,"/dararma",true)==0)
{
new tmp[256];
tmp = strtok(cmdtext, idx);
new plid;
new arma;
new muni;
plid=strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COR, "Uso correto: /dararma [id] [arma] [municao]");
return 1;
}
arma=strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COR, "Uso correto: /dararma [id] [arma] [municao]");
return1;
}
muni=strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COR, "Uso correto: /dararma [id] [arma] [municao]");
return1;
}
if(!IsPlayerConnected(plid))
{
SendClientMessage(playerid, COR,"Jogador nгo conectado");
return 1;
}
GivePlayerWeapon(plid,arma,muni);
return 1;
}