10.12.2014, 15:24
Tenta ai
Se mesmo assim continuar o problema, verifique as callbackґs: Atualizar3Dtexts(); e OnPropUpdate();
pawn Код:
if(strcmp(cmd, "/admvemp", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, playername, sizeof(playername));
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USE: /admvemp [empresa id]");
return 1;
}
new biz = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= DONO)
{
if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != DONO)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
return 1;
}
BizzInfo[biz][bLocked] = 1;
BizzInfo[biz][bOwned] = 0;
strmid(BizzInfo[biz][bOwner], "O estado", 0, strlen("O estado"), 255);
strmid(BizzInfo[biz][bExtortion], "Nenhum", 0, strlen("Nenhum"), 255);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~Voce vendeu a empresa ID:%d", biz);
GameTextForPlayer(playerid, string, 10000, 3);
Atualizar3Dtexts();
OnPropUpdate();
}
else
{
return SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem permissгo para usar esse comando !");
}
}
return 1;
}
if(strcmp(cmd, "/admvsemp", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, playername, sizeof(playername));
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USE: /admvsemp [sempresa id]");
return 1;
}
new sbiz = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= DONO)
{
if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != SUB_DONO)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
return 1;
}
SBizzInfo[sbiz][sbLocked] = 1;
SBizzInfo[sbiz][sbOwned] = 0;
strmid(SBizzInfo[sbiz][sbOwner], "O estado", 0, strlen("O estado"), 255);
strmid(SBizzInfo[sbiz][sbExtortion], "Nenhum", 0, strlen("Nenhum"), 255);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~Voce vendeu a empresa ID:%d", sbiz);
GameTextForPlayer(playerid, string, 10000, 3);
Atualizar3Dtexts();
OnPropUpdate();
}
else
{
return SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem permissгo para usar esse comando !");
}
}
return 1;
}