else
{
admtrampando[playerid] = 1;
GetPlayerName(playerid,sendername,sizeof(sendername));
SendClientMessageToAll(0xDCDCDCFF, "|{FFFFFF}_____________{FF0000}Aviso da {00FF00}Administraзгo{FFFFFF}_____________|");
format(string, 128, "{FF0000}Admin:{FFFFFF}: %s [ID:%d] estб {FF0000}Trabalhando",sendername, playerid);
SendClientMessageToAll(COR_ADMIN, 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);
format(gstring, sizeof(gstring), "%s esta trabalhando [%d/%d/%d - %d:%d:%d]\n", PlayerName(playerid), day, month, year, hour, minute, second);
new Text3D:Administrador;
Administrador = Create3DTextLabel("{00FF00}Administrador",-1,0.0,0.0,1500.0,50,-1);
Attach3DTextLabelToPlayer(Administrador,playerid,0.0,0.0,0.5);
AdminLog(gstring);
return 1;
admtrampando[playerid] = 1;
GetPlayerName(playerid,sendername,sizeof(sendername));
SendClientMessageToAll(0xDCDCDCFF, "|{FFFFFF}_____________{FF0000}Aviso da {00FF00}Administraзгo{FFFFFF}_____________|");
format(string, 128, "{FF0000}Admin:{FFFFFF}: %s [ID:%d] estб {FF0000}Trabalhando",sendername, playerid);
SendClientMessageToAll(COR_ADMIN, 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);
format(gstring, sizeof(gstring), "%s esta trabalhando [%d/%d/%d - %d:%d:%d]\n", PlayerName(playerid), day, month, year, hour, minute, second);
new Text3D:label = Create3DTextLabel("Administrador(a)", 0x99FFFFAA, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
AdminLog(gstring);
return 1;
if(PlayerInfo[playerid][pAdmin] >= 1)
{
// Funзхes
return true;
}
Eu acho que й mais fбcil vocк fazer separado do comando /trabalhar. Que vocк poderia usar:
pawn Код:
|
if(PlayerInfo[playerid][pAdmin] >= 1 && 1342)
Exatamente isso. Valeu, Eu coloquei
pawn Код:
|
public OnPlayerUpdate(playerid)
{
if(admtrampando[playerid] == 1)
{
SetPlayerChatBubble(playerid,"Administrador",0xFF0000FF,100.0,10000);
}
return 1;
}
Exatamente isso. Valeu, Eu coloquei
pawn Код:
|