17.12.2013, 11:27
Resolvido, ajustei seu code no meu /trabalhar, e adicionei para cada situaзгo excluir a outra . deu bem certo, obrigado +rep
Code como ficou ...
Code como ficou ...
pawn Код:
if(strcmp(cmd, "/trabalhar", true) == 0)
{
if(PlayerInfo[playerid][pJailed] != 0)
{
SendClientMessage(playerid,COLOR_YELLOW," Vocк nгo pode trabalhar na cadeia!");
return true;
}
if(PlayerInfo[playerid][pAdmin] >= 1)
{
if(admtrampando[playerid] > 0)
{
admtrampando[playerid] = 0;
GetPlayerName(playerid,sendername,sizeof(sendername));
SendClientMessageToAll(COLOR_AZULBB, "|_______________ Administraзгo _______________|");
format(string, 128, "{00BFFF}Admin: %s ID(%d) estб Jogando, Veja em {E0EEE0}/admins",sendername, playerid);
SendClientMessageToAll(0x660066F6, string);
KillTimer(TempoAdministrador);
SetPlayerToTeamColor(playerid);
ResetPlayerWeaponsEx(playerid);
SetPlayerHealth(playerid,100);
SetPlayerSkin(playerid,skinadm[playerid]);
getdate(year, month, day);
gettime(hour,minute,second);
label2 = Create3DTextLabel("Jogando", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label2, playerid, 0.0, 0.0, 0.7);
Delete3DTextLabel(label1);
format(gstring, sizeof(gstring), "%s esta jogando [%d/%d/%d - %d:%d:%d]\n", PlayerName(playerid), day, month, year, hour, minute, second);
AdminLog(gstring);
}
else
{
admtrampando[playerid] = 1;
GetPlayerName(playerid,sendername,sizeof(sendername));
SendClientMessageToAll(COLOR_AZULBB, "|_______________ Administraзгo _______________|");
format(string, 128, "{00BFFF}Admin: %s ID(%d) estб Trabalhando, veja em {E0EEE0}/admins",sendername, playerid);
SendClientMessageToAll(0xAA3333AA, string);
SetPlayerToTeamColor(playerid);
TempoAdministrador = SetTimerEx("Administrador", 100, true, "i", playerid);
skinadm[playerid] = GetPlayerSkin(playerid);
SetPlayerSkin(playerid,217);
getdate(year, month, day);
gettime(hour,minute,second);
label1 = Create3DTextLabel("Trabalhando", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Delete3DTextLabel(label2);
Attach3DTextLabelToPlayer(label1, playerid, 0.0, 0.0, 0.7);
format(gstring, sizeof(gstring), "%s estб trabalhando [%d/%d/%d - %d:%d:%d]\n", PlayerName(playerid), day, month, year, hour, minute, second);
AdminLog(gstring);
}
}
return true;
}