if(tipodialogH == 3)
{
format(string, sizeof(string), "/casav %d", strval(inputtext));
}
OnPlayerCommandText(playerid,string);
return cmd_admvcasaid(playerid, params);
OnPlayerCommandText(playerid,string); -> cmd_casav(playerid, string);
|
if(dialogid == DialogoP(7))
{
if(response == 1) // esquerdo
{
if(listitem == 0)
{
cmd_admvcasaid(playerid, params);
//OnPlayerCommandText(playerid,"/admvcasaid");
}
CMD:admvcasaid(playerid, params[]) return cmd_admvcasaid(playerid, params);
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, playername, sizeof(playername));
if (PlayerInfo[playerid][pAdmin] >= 1340)
{
if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 3000)
{
SendClientMessage(playerid, -1, "Vocк nгo estб trabalhando! {E31919}(/trabalhar)");
return 1;
}
for(new House = 0; House < sizeof(HouseInfo); House++)
{
if (PlayerToPoint(3, playerid,HouseInfo[House][hEntrancex], HouseInfo[House][hEntrancey], HouseInfo[House][hEntrancez]))
{
format(string, sizeof(string), "Casa: %d", House);
SendClientMessage(playerid, COLOR_GRAD2, string);
HouseInfo[House][hHel] = 0;
HouseInfo[House][hArm] = 0;
HouseInfo[House][hHealthx] = 0;
HouseInfo[House][hHealthy] = 0;
HouseInfo[House][hHealthz] = 0;
HouseInfo[House][hArmorrx] = 0;
HouseInfo[House][hArmorry] = 0;
HouseInfo[House][hArmorrz] = 0;
HouseInfo[House][hLock] = 1;
HouseInfo[House][hOwned] = 0;
HouseInfo[House][hVec] = 475;
HouseInfo[House][hVcol1] = -1;
HouseInfo[House][hVcol2] = -1;
strmid(HouseInfo[House][hOwner], "O estado", 0, strlen("O estado"), 255);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~Voce vendeu a propriedade ID:%d", House);
GameTextForPlayer(playerid, string, 10000, 3);
a3d();
SalvarCasa(House);
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem permissгo para usar esse comando !");
}
}
return 1;
}
cmd_casav(playerid, string);
admvcasaid(playerid, string);
Vocк quer que ao usar um comando de admin, no caso o /admincasav retorne o comando /casav?
|