13.06.2014, 22:36
pawn Код:
YCMD:vender(playerid, params[], pHELPS) // TERMINAR
{
new Fun[15];
if(sscanf(params, "s", Fun))
{
SendClientMessage(playerid, 0xFFFFFFFF, "USE: /vender [droga/medicamento/arma]");
return 1;
}
if(!strcmp(Fun, "droga"))
{
new qntd, price;
if(sscanf(params, "dd", qntd, price))
{
SendClientMessage(playerid, 0xFFFFFFFF, "USE: /vender droga [quantidade] [preзo]");
return 1;
}
return 1;
}
if(!strcmp(Fun, "medicamento"))
{
new qntd, price;
if(sscanf(params, "dd", qntd, price))
{
SendClientMessage(playerid, 0xFFFFFFFF, "USE: /vender medicamento [quantidade] [preзo]");
return 1;
}
return 1;
}
if(!strcmp(Fun, "arma"))
{
new nome[15], price;
if(sscanf(params, "s[15]d", nome, price))
{
SendClientMessage(playerid, 0xFFFFFFFF, "USE: /vender arma [nome] [preзo]");
return 1;
}
return 1;
}
return 1;
}