20.08.2010, 22:11
Код:
if(strcmp(cmd, "/ligaradmin", true) == 0 || strcmp(cmd, "/la", true) == 0) { new Ano,Mes,Dia;getdate(Ano, Mes, Dia); new Hora,Minuto,Segundo;gettime(Hora,Minuto,Segundo); if(PlayerInfo[playerid][pAdmin] >= 1) { if(admtrampando[playerid] > 0) { admtrampando[playerid] = 0; GetPlayerName(playerid,sendername,sizeof(sendername)); SendClientMessageToAll(COLOR_WHITE, "|___________ Atenзгo ___________|"); SendClientMessageToAll(COLOR_DBLUE, string); format(string, 256, "Admin: %s [%i] estб Jogando, Digite /admins para mais informaзхes.Data:[%d/%d/%d],.,Hora[%d/%d/%d]",sendername, playerid,Ano,Mes,Dia, Hora,Minuto,Segundo); KillTimer(TempoAdministrador); SetPlayerHealth(playerid,100); SetPlayerColor(playerid,COLOR_WHITE); } else { admtrampando[playerid] = 1; GetPlayerName(playerid,sendername,sizeof(sendername)); SendClientMessageToAll(COLOR_WHITE, "|___________ Atenзгo ___________|"); format(string, 256, "Admin: %s [%i] estб Trabalhando, Digite /admins para mais informaзхes.Data:[%d/%d/%d],.,Hora[%d/%d/%d]",sendername, playerid,Ano,Mes,Dia, Hora,Minuto,Segundo); SendClientMessageToAll(COLOR_DBLUE, string); TempoAdministrador = SetTimerEx("Administrador", 1000, 1, "i", playerid); SetPlayerColor(playerid,COLOR_PINK); SetPlayerArmour(playerid, 10000000); SetPlayerHealth(playerid, 10000000); } } return 1; }