Si me ayudarian como pasar este comando echo por mi a ZMD, porque el Gm que estoy asiendo usa ese tipo si me ayudaria les agadeceria
//-------------------Mercado Negro por MattixD-----------------------//
if(strcmp(cmd, "/Mercadonegro", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(15, playerid, 2478.5505,-977.1157,30.1203))
{
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
SendClientMessage(playerid, COLOR_WHITE, "_________________________________Mercado Negro___________________________");
SendClientMessage(playerid, COLOR_WHITE, "_______________________________/Mercadonegro [Item]________________________________");
SendClientMessage(playerid, COLOR_GRAD2, " 1: Cuchillo(20$) 2: Bate(150$)");
SendClientMessage(playerid, COLOR_GRAD2, " 3: Silenciada[100](750$) 4: Eagle[100](800$)");
SendClientMessage(playerid, COLOR_GRAD2, " 5: Escopeta[20](1000$) 6: Rifle[20] (7500$)");
SendClientMessage(playerid, COLOR_GRAD2, " 7: MP5[200](3000$) 8: AK47[200](3500$)");
return 1;
}
if(PlayerInfo[playerid][pLevel] == 1)
{
GameTextForPlayer(playerid, "~r~Tienes que nivel 2 o superior", 5000, 1);
return 1;
}
else if(strcmp(x_nr,"1",true) == 0)
{
if(GetPlayerMoney(playerid) > 19)
{
SafeGivePlayerWeapon(playerid, 4, 1);
SafeGivePlayerMoney(playerid, -19);
BizzInfo[0][bProducts] -= 10;
BizzInfo[1][bProducts] -= 10;
BizzInfo[2][bProducts] -= 10;
return 1;
}
else { SendClientMessage(playerid, COLOR_WHITE, "Dinero insuficiente!"); return 1;}
}
else if(strcmp(x_nr,"2",true) == 0)
{
if(GetPlayerMoney(playerid) > 149)
{
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerMoney(playerid, -150);
BizzInfo[0][bProducts] -= 10;
BizzInfo[1][bProducts] -= 10;
BizzInfo[2][bProducts] -= 10;
return 1;
}
else { SendClientMessage(playerid, COLOR_WHITE, "Dinero insuficiente!"); return 1;}
}
else if(strcmp(x_nr,"3",true) == 0)
{
if(GetPlayerMoney(playerid) > 749)
{
SafeGivePlayerWeapon(playerid, 23, 100);
SafeGivePlayerMoney(playerid, -750);
BizzInfo[0][bProducts] -= 20;
BizzInfo[1][bProducts] -= 20;
BizzInfo[2][bProducts] -= 20;
return 1;
}
else { SendClientMessage(playerid, COLOR_WHITE, "Dinero insuficiente!"); return 1;}
}
else if(strcmp(x_nr,"4",true) == 0)
{
if(GetPlayerMoney(playerid) > 799)
{
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerMoney(playerid, -800);
BizzInfo[0][bProducts] -= 20;
BizzInfo[1][bProducts] -= 20;
BizzInfo[2][bProducts] -= 20;
return 1;
}
else { SendClientMessage(playerid, COLOR_WHITE, "Dinero insuficiente!"); return 1;}
}
else if(strcmp(x_nr,"5",true) == 0)
{
if(GetPlayerMoney(playerid) > 999)
{
SafeGivePlayerWeapon(playerid, 25, 50);
SafeGivePlayerMoney(playerid, -1000);
BizzInfo[0][bProducts] -= 20;
BizzInfo[1][bProducts] -= 20;
BizzInfo[2][bProducts] -= 20;
return 1;
}
else { SendClientMessage(playerid, COLOR_WHITE, "Dinero insuficiente!"); return 1;}
}
else if(strcmp(x_nr,"7",true) == 0)
{
if(GetPlayerMoney(playerid) > 2999)
{
SafeGivePlayerWeapon(playerid, 29, 200);
SafeGivePlayerMoney(playerid, -3000);
BizzInfo[0][bProducts] -= 30;
BizzInfo[1][bProducts] -= 30;
BizzInfo[2][bProducts] -= 30;
return 1;
}
else { SendClientMessage(playerid, COLOR_WHITE, "Dinero insuficiente!"); return 1;}
}
else if(strcmp(x_nr,"6",true) == 0)
{
if(GetPlayerMoney(playerid) > 7499)
{
SafeGivePlayerWeapon(playerid, 33, 20);
SafeGivePlayerMoney(playerid, -7500);
BizzInfo[0][bProducts] -= 30;
BizzInfo[1][bProducts] -= 30;
BizzInfo[2][bProducts] -= 30;
return 1;
}
else { SendClientMessage(playerid, COLOR_WHITE, "Dinero insuficiente!"); return 1;}
}
else if(strcmp(x_nr,"8",true) == 0)
{
if(GetPlayerMoney(playerid) > 3499)
{
SafeGivePlayerWeapon(playerid, 30, 200);
SafeGivePlayerMoney(playerid, -3500);
format(string, sizeof(string), "ak47 Comprada.");
BizzInfo[0][bProducts] -= 30;
BizzInfo[1][bProducts] -= 30;
BizzInfo[2][bProducts] -= 30;
return 1;
}
else { SendClientMessage(playerid, COLOR_WHITE, "Dinero insuficiente!"); return 1;}
}
} else { SendClientMessage(playerid, COLOR_WHITE, "No estás en el Mercado negro!"); return 1;}
}
return 1;
}
//-------------------Mercado Negro por MattixD-----------------------//
if(strcmp(cmd, "/Mercadonegro", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(15, playerid, 2478.5505,-977.1157,30.1203))
{
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
SendClientMessage(playerid, COLOR_WHITE, "_________________________________Mercado Negro___________________________");
SendClientMessage(playerid, COLOR_WHITE, "_______________________________/Mercadonegro [Item]________________________________");
SendClientMessage(playerid, COLOR_GRAD2, " 1: Cuchillo(20$) 2: Bate(150$)");
SendClientMessage(playerid, COLOR_GRAD2, " 3: Silenciada[100](750$) 4: Eagle[100](800$)");
SendClientMessage(playerid, COLOR_GRAD2, " 5: Escopeta[20](1000$) 6: Rifle[20] (7500$)");
SendClientMessage(playerid, COLOR_GRAD2, " 7: MP5[200](3000$) 8: AK47[200](3500$)");
return 1;
}
if(PlayerInfo[playerid][pLevel] == 1)
{
GameTextForPlayer(playerid, "~r~Tienes que nivel 2 o superior", 5000, 1);
return 1;
}
else if(strcmp(x_nr,"1",true) == 0)
{
if(GetPlayerMoney(playerid) > 19)
{
SafeGivePlayerWeapon(playerid, 4, 1);
SafeGivePlayerMoney(playerid, -19);
BizzInfo[0][bProducts] -= 10;
BizzInfo[1][bProducts] -= 10;
BizzInfo[2][bProducts] -= 10;
return 1;
}
else { SendClientMessage(playerid, COLOR_WHITE, "Dinero insuficiente!"); return 1;}
}
else if(strcmp(x_nr,"2",true) == 0)
{
if(GetPlayerMoney(playerid) > 149)
{
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerMoney(playerid, -150);
BizzInfo[0][bProducts] -= 10;
BizzInfo[1][bProducts] -= 10;
BizzInfo[2][bProducts] -= 10;
return 1;
}
else { SendClientMessage(playerid, COLOR_WHITE, "Dinero insuficiente!"); return 1;}
}
else if(strcmp(x_nr,"3",true) == 0)
{
if(GetPlayerMoney(playerid) > 749)
{
SafeGivePlayerWeapon(playerid, 23, 100);
SafeGivePlayerMoney(playerid, -750);
BizzInfo[0][bProducts] -= 20;
BizzInfo[1][bProducts] -= 20;
BizzInfo[2][bProducts] -= 20;
return 1;
}
else { SendClientMessage(playerid, COLOR_WHITE, "Dinero insuficiente!"); return 1;}
}
else if(strcmp(x_nr,"4",true) == 0)
{
if(GetPlayerMoney(playerid) > 799)
{
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerMoney(playerid, -800);
BizzInfo[0][bProducts] -= 20;
BizzInfo[1][bProducts] -= 20;
BizzInfo[2][bProducts] -= 20;
return 1;
}
else { SendClientMessage(playerid, COLOR_WHITE, "Dinero insuficiente!"); return 1;}
}
else if(strcmp(x_nr,"5",true) == 0)
{
if(GetPlayerMoney(playerid) > 999)
{
SafeGivePlayerWeapon(playerid, 25, 50);
SafeGivePlayerMoney(playerid, -1000);
BizzInfo[0][bProducts] -= 20;
BizzInfo[1][bProducts] -= 20;
BizzInfo[2][bProducts] -= 20;
return 1;
}
else { SendClientMessage(playerid, COLOR_WHITE, "Dinero insuficiente!"); return 1;}
}
else if(strcmp(x_nr,"7",true) == 0)
{
if(GetPlayerMoney(playerid) > 2999)
{
SafeGivePlayerWeapon(playerid, 29, 200);
SafeGivePlayerMoney(playerid, -3000);
BizzInfo[0][bProducts] -= 30;
BizzInfo[1][bProducts] -= 30;
BizzInfo[2][bProducts] -= 30;
return 1;
}
else { SendClientMessage(playerid, COLOR_WHITE, "Dinero insuficiente!"); return 1;}
}
else if(strcmp(x_nr,"6",true) == 0)
{
if(GetPlayerMoney(playerid) > 7499)
{
SafeGivePlayerWeapon(playerid, 33, 20);
SafeGivePlayerMoney(playerid, -7500);
BizzInfo[0][bProducts] -= 30;
BizzInfo[1][bProducts] -= 30;
BizzInfo[2][bProducts] -= 30;
return 1;
}
else { SendClientMessage(playerid, COLOR_WHITE, "Dinero insuficiente!"); return 1;}
}
else if(strcmp(x_nr,"8",true) == 0)
{
if(GetPlayerMoney(playerid) > 3499)
{
SafeGivePlayerWeapon(playerid, 30, 200);
SafeGivePlayerMoney(playerid, -3500);
format(string, sizeof(string), "ak47 Comprada.");
BizzInfo[0][bProducts] -= 30;
BizzInfo[1][bProducts] -= 30;
BizzInfo[2][bProducts] -= 30;
return 1;
}
else { SendClientMessage(playerid, COLOR_WHITE, "Dinero insuficiente!"); return 1;}
}
} else { SendClientMessage(playerid, COLOR_WHITE, "No estás en el Mercado negro!"); return 1;}
}
return 1;
}