03.05.2012, 19:27
pawn Код:
if(strcmp(cmd, "/trabalharoculto", true) == 0)
{
}
if(PlayerInfo[playerid][pAdmin] >= 1342)
if(PlayerInfo[playerid][pAdmin] >= 1341)
if(PlayerInfo[playerid][pAdmin] >= 1340)
if(PlayerInfo[playerid][pAdmin] >= 1339)
{
if(admtrampando[playerid] > 0)
{
admtrampando[playerid] = 0;
GetPlayerName(playerid,sendername,sizeof(sendername));
SendClientMessageToAll(0xFFFBF8AA, string);
KillTimer(TempoAdministrador);
SetPlayerToTeamColor(playerid);
ResetPlayerWeaponsEx(playerid);
SetPlayerHealth(playerid,100);
SetPlayerSkin(playerid,skinadm[playerid]);
getdate(year, month, day);
gettime(hour,minute,second);
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(0xFFFBF8AA, 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);
AdminLog(gstring);
}
}
return true;
}