#1

Eu queria concertar a hora do meu servidor pois a localizacao do ip dele e do canada ae aparece a hora de la entao eu queria colocar a do brasil.
Ja entrei em contato com a host falaram que nao podem fazer nada pois a localizacao dele e no canada.




[BRASIL]Mata Mata Mundo Dos Experts
Mode MdE
Language portugues brasil
Slots xx/20
Ip 198.100.144.190:2511
Reply
#2

Se for lб 6 lб, serб 9 aqui, entгo na string, some +3 pra atualizar o textdraw jб com o valor atualizado
Reply
#3

Que string?sou novato ainda nessas coisas de pawno e o gm tem varios textdraw e eu nao sei qual o da hora.
A gamemode tem quase 28k de linhas e tem uns fs de textdraw .
Reply
#4

Mano tem essa mas acho q nao e.

#include <a_samp>

new Text:Textdrawaddip;
new Text:Textdrawclan;
new Text:Textdrawex;

public OnFilterScriptInit()
{
// Create the textdraws:
/*Textdrawaddip = TextDrawCreate(42.000000, 305.000000, " Add Nosso ip:~n~198.50.244.206:7778");
TextDrawBackgroundColor(Textdrawaddip, 255);
TextDrawFont(Textdrawaddip, 2);
TextDrawLetterSize(Textdrawaddip, 0.200000, 1.200000);
TextDrawColor(Textdrawaddip, 0x00FF00FF);
TextDrawSetOutline(Textdrawaddip, 1);
TextDrawSetProportional(Textdrawaddip, 1);*/

Textdrawclan = TextDrawCreate(42.000000, 320.000000, " Mundo Dos Experts");
TextDrawBackgroundColor(Textdrawclan, 255);
TextDrawFont(Textdrawclan, 0);
TextDrawLetterSize(Textdrawclan, 0.400000, 1.900000);
TextDrawColor(Textdrawclan, 0x6B6A67FF);
TextDrawSetOutline(Textdrawclan, 1);
TextDrawSetProportional(Textdrawclan, 1);

/* Textdrawex = TextDrawCreate(500.000000, 360.000000, "~l~]]]]]]~n~Mundo Extremo~n~]]]]]]");
TextDrawBackgroundColor(Textdrawex, 0x00FF00FF);
TextDrawFont(Textdrawex, 0);
TextDrawLetterSize(Textdrawex, 0.700000, 1.900000);
TextDrawColor(Textdrawex, -1);
TextDrawSetOutline(Textdrawex, 1);
TextDrawSetProportional(Textdrawex, 1);*/

for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Textdrawaddip);
TextDrawShowForPlayer(i, Textdrawclan);
TextDrawShowForPlayer(i, Textdrawex);
}
}
return 1;
}

public OnFilterScriptExit()
{
TextDrawHideForAll(Textdrawaddip);
TextDrawDestroy(Textdrawaddip);
TextDrawHideForAll(Textdrawclan);
TextDrawDestroy(Textdrawclan);
TextDrawHideForAll(Textdrawex);
TextDrawDestroy(Textdrawex);
return 1;
}

public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdrawaddip);
TextDrawShowForPlayer(playerid, Textdrawclan);
TextDrawShowForPlayer(playerid, Textdrawex);
return 1;
}
Reply
#5

Mostra sua OnPlayerConnect e a OnPlayerSpawn

Da GM, nгo de filterscripts.
Reply
#6

Ta ae os dois , onde que meche.

PHP код:
public OnPlayerConnect(playerid)
{
    
RemoveBuildingForPlayer(playerid35162074.60161423.367212.99220.25);
    
RemoveBuildingForPlayer(playerid35132077.07811342.367213.99220.25);
    
RemoveBuildingForPlayer(playerid35162074.59381363.367212.99220.25);
    
RemoveBuildingForPlayer(playerid13502082.52341378.77349.79690.25);
    
RemoveBuildingForPlayer(playerid35162101.53131763.648412.96090.25);
    
RemoveBuildingForPlayer(playerid13502122.57811778.85949.78130.25);
    
SNP5[playerid] = false;
    
cvida[playerid] = 0;
    
ccolete[playerid] = 0;
    
PlayAudioStreamForPlayer(playerid,
                             
"http://www.dropbox.com/s/gdc0xzs1kp2k15c/Meg%20%20Dia%20%20%20Monster%20%28DotEXE%20Dubstep%20Remix%29.mp3?dl=1");
    
TextDrawShowForPlayer(playeridImagemEntrada);    // imagem ao conectar
    
new blogs[1000];
    
strins(blogs"{FFFFFF}Boas vindas\n"strlen(blogs));
    
strins(blogs"\n{FFFF00}Adicione nosso ip aos favoritos :{00BFFF}198.27.108.17:7777",
           
strlen(blogs));
    
strins(blogs"\n{FFFF00}Quer ser um de nossa equipe? {00BFFF}/seradmin"strlen(blogs));
    
strins(blogs"\n{FFFF00}Escolha sua radio{00BFFF} /radios"strlen(blogs));
    
ShowPlayerDialog(playerid8439DIALOG_STYLE_MSGBOX"MUNDO DOS EXPERTS "blogs"Entrar",
                     
"");
    if (
strcmp(PlayerIp(playerid), LastIPConnectedtrue) == 0
        
&& TickCounter LastConnectionTick <= 2)
        
ProcessarBOT(playerid);
    else
        
BotTolerance 0;        // Prote��o contra ataques BOT
    
if (strcmp(PlayerIp(playerid), "255.255.255.255"true) == 0)
        print(
"[MdE]: IP invalido na conexao acima");
    else
        
format(LastIPConnectedsizeof(LastIPConnected), "%s"PlayerIp(playerid));
    if (
IsPlayerNPC(playerid))
        
BanEx(playerid"NPC");    // AntiNPC
    
LastConnectionTick TickCounter;
    
VChanges[playerid] = 0;
    
LastVChanges[playerid] = 0;
    
LastVehicleModel[playerid] = 0;
    
PontoAT[playerid] = false;
    
PontoU[playerid] = false;
    
ShowLogLines[playerid] = 0;
    
MostrandoFPSPing[playerid] = false;
    
SNP2[playerid] = false;
    
SNP3[playerid] = false;
    
AntiRojao[playerid] = false;
    
Altimetro[playerid] = false;
    
Mecanica[playerid] = false;
    
OuvindoRadio[playerid] = false;
    
PreDefStateChanges[playerid] = 0;
    
DamageTick[playerid] = 0;
    
L_PreDefStateChanges[playerid] = 0;
    
SpeedHack[playerid] = false;
    
ChamadoParaX1Por[playerid] = -1;
    
LastDeathTick[playerid] = TickCounter;
    
CX1Tipo[playerid] = 0;
    
Bugar[playerid] = false;
    
AwaySeconds[playerid] = 0;
    
AFK[playerid] = false;
    
ADMTick[playerid] = -100;
    
X1CTick[playerid] = -100;
    
LastDarGranaPos[playerid] = 0;
    
ScoreNaSessao[playerid] = 0;
    
Neon[0][playerid] = -1;
    
Neon[1][playerid] = -1;
    
StuntSuperSpeed[playerid] = false;
    
TextoHead[playerid] = Create3DTextLabel(" "0x0083ADFF0006000);
    
TextoVeiculo[playerid] = Create3DTextLabel(" "0xFF8408FF0002000);
    
Attach3DTextLabelToPlayer(TextoHead[playerid], playerid0.00.00.7);
    new 
pname[MAX_PLAYER_NAME], string[128];
    
GetPlayerName(playeridpnamesizeof(pname));
    if (
strlen(pname) > 2)
    {
        
format(stringsizeof(string),
               
"{FF00DD}�{FFFFFF} %s [ID:%i]{00BFFF} Entrou No MUNDO DOS EXPERTS!{FFFFFF} [%i/%i]",
               
pnameplayeridConnectedPlayers(), GetMaxPlayers());
        
SendClientMessageToAllEx(playerid0xAAAAAAAAstring);
        
SendDeathMessage(INVALID_PLAYER_IDplayerid200);
    }
    
SetPlayerColor(playeridplayerColors[playerid]);
    
NewKillerID[playerid] = INVALID_PLAYER_ID;
    
LastKillerID[playerid] = INVALID_PLAYER_ID;
    
SendoAbusado[playerid] = 0;
    
KillSpree[playerid] = 0;
    
AF_UltimoComando[playerid] = 0;
    
SorteiosFeitos[playerid] = 0;
    
KillTimer(TimerKillSpree[playerid]);
    
KillTimer(AAD_DominandoTimer[playerid]);
    
PlayerCustomSpawn[playerid] = 0;
    
PlayerCustomSpawn_X[playerid] = 0;
    
PlayerCustomSpawn_Y[playerid] = 0;
    
PlayerCustomSpawn_Z[playerid] = 0;
    
PlayerCustomSpawn_F[playerid] = 0;
    
PlayerCustomSpawn_I[playerid] = 0;
    
VPlayerMissao[playerid] = 0;
    
NoEvento[playerid] = 0;
    
HeliKills[playerid] = 0;
    
KillTimer(TimerSoltar[playerid]);
    
UltimoVeiculoUsado[playerid] = 0;
    
veiculo[playerid] = 0;
    
vtrancado[veiculo[playerid]] = 0;
    
AutoTrancar[playerid] = 0;
    
Spree[playerid] = 0;
    
Arena[playerid] = 0;
    
ArenaTipo[playerid] = 0;
    
Reparar[playerid] = 0;
    
GodCarOn[playerid] = 0;
    
Rojoes[playerid] = 3;
    
transferencias[playerid] = 0;
    
cor[playerid] = 0;
    
skin[playerid] = 0;
    
UltraGC[playerid] = 0;
    
AAD_Vai[playerid] = 0;
    
AutoPaintOn[playerid] = 0;
    
MostrandoVelocimetro[playerid] = 1;
    
MostrandoStatus[playerid] = 1;
    
XuxaPC[playerid] = 0;
    
Weather[playerid] = 0;
    
DistanciaMis[playerid] = 0;
    
DistanciaMis2[playerid] = 0;
    
pDrunkLevelLast[playerid] = 0;
    
pFPS[playerid] = 0;
    
PiscarLuzes[playerid] = false;
    
PiscarLuzesState[playerid] = false;
    
Capacete[playerid] = true;
    
NascerComColete[playerid] = false;
    
NascerComKitGuerra[playerid] = false;
    
UsandoTXTPlaca[playerid] = false;
    
Gay[playerid] = false;
    
// LIMPAR ATTACHS
    
RemoverTodosAttachsObj(playerid);
    
// LOADER
    
KillTimer(TeleLockTimer[playerid]);
    
TogglePlayerControllable(playerid1);
    
// Velocimetro
    
TextDrawHideForPlayer(playeridTXTVELOCIDADE[playerid]);
    
SendClientMessage(playeridCOLOUR_BRANCO,
                      
"{FFFFFF} =-=-=-=-=-=--=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=");
    
SendClientMessage(playeridCOLOUR_BRANCO,
                      
"{00BFFF}Bem-vindo {FFFFFF}[BRASIL] MATA MATA 2017!!! MUNDO DOS EXPERTS {00BFFF} 0.3.7");
    
SendClientMessage(playeridCOLOUR_BRANCO,
                      
"{00BFFF}Lista De Comandos:{FFFFFF} /comandos{00BFFF} & {FFFFFF}/seradmin ");
    
SendClientMessage(playeridCOLOUR_BRANCO"{00BFFF}Para deligar a radio use:{FFFFFF} /off");
    
SendClientMessage(playeridCOLOUR_BRANCO"{00BFFF}Clan oficial:{FFFFFF}[MdE]");
    
SendClientMessage(playeridCOLOUR_BRANCO"{00BFFF}Volte sempre!! ");
    
SendClientMessage(playeridCOLOUR_BRANCO,
                      
"{FFFFFF} =-=-=-=-=-=--=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=");
    
// PlayerPlaySound( playerid, 1183, 0.0, 0.0, 0.0 );
    
return 1;
}
public 
OnPlayerSpawn(playerid)
{
    
SNP5[playerid] = false;
    
SNP2[playerid] = false;
    
ChamadoParaX1Por[playerid] = -1;
    
CX1Tipo[playerid] = 0;
    
AFK[playerid] = false;
    
cmdtick[playerid] = 0;
    
Arena[playerid] = 0;
    
ArenaKills[playerid] = 0;
    if (
ArenaTipo[playerid] == 3)
    {
        
X1 X1 1;
        
ArenaTipo[playerid] = 0;
    }                            
// X1 RUN
    
if (ArenaTipo[playerid] == 8)
    {
        
X1W X1W 1;
        
ArenaTipo[playerid] = 0;
    }                            
// X1 WALK
    
KillTimer(TimerSoltar[playerid]);
    
ArenaTipo[playerid] = 0;
    
Reparar[playerid] = 0;
    
NoEvento[playerid] = 0;
    
VPlayerMissao[playerid] = 0;
    
DistanciaMis[playerid] = 0;
    
DistanciaMis2[playerid] = 0;
    
StuntSuperSpeed[playerid] = false;
    
StopKillSpree(playerid);
    if (
cor[playerid] != 0)
    {
        
SetPlayerColor(playeridcor[playerid]);
    }
    if (
skin[playerid] != 0)
    {
        
SetPlayerSkin(playeridskin[playerid]);
    }
    
SetCameraBehindPlayer(playerid);
    
SetPlayerInterior(playerid0);
    
SetPlayerVirtualWorld(playerid0);
    
SetPlayerInterior(playerid0);
    
GivePlayerWeapon(playerid40);
    if (
MostrandoStatus[playerid] == 1)
    {
        
TextDrawShowForPlayer(playeridStatus[playerid]);
    }
    
TextDrawShowForPlayer(playeridTextdrawnova);
    
TextDrawHideForPlayer(playeridTextdrawmx);
    
TextDrawHideForPlayer(playeridTextdraw5);
    
TextDrawHideForPlayer(playeridTextdraw6);
    
TextDrawHideForPlayer(playeridTextdraw7);
    
TextDrawShowForPlayer(playeridTextdraw10);
    
TextDrawShowForPlayer(playeridTextdraw1);
    
TextDrawShowForPlayer(playeridTextdraw3);
    
TextDrawHideForPlayer(playeridTxDNotificador);
    
TextDrawShowForPlayer(playeridTxDNotificador);
    
TextDrawHideForAll(Textdraw9);
    
TextDrawHideForAll(Textdraw15);
    
TextDrawHideForAll(Textdraw11);
    
TextDrawHideForAll(Textdraw12);
    
TextDrawHideForAll(Textdraw13);
    
TextDrawHideForAll(Textdraw14);
    
// PlayerPlaySound( playerid, 1188, 0.0, 0.0, 0.0 );
    
SetPlayerHealth(playerid100.0);
    
SetPlayerArmour(playerid100.0);
    
// SPAWNS
    
if (PlayerCustomSpawn[playerid] == 1)
    {
        
SetPlayerInterior(playeridPlayerCustomSpawn_I[playerid]);
        
SetPlayerFacingAngle(playeridPlayerCustomSpawn_F[playerid]);
        
SetPlayerPos(playeridPlayerCustomSpawn_X[playerid], PlayerCustomSpawn_Y[playerid],
                     
PlayerCustomSpawn_Z[playerid]);
        
SetCameraBehindPlayer(playerid);
        
SendClientMessage(playeridCOLOUR_DICA,
                          
"[MdE]: {FFFFFF}Para nascer no local padr�o digite: /MSP");
    }
    else
    {
        new 
rand random(sizeof(BloodySpawns));
        
SetPlayerPos(playeridBloodySpawns[rand][0], BloodySpawns[rand][1],
                     
BloodySpawns[rand][2]);
        
SetPlayerFacingAngle(playeridBloodySpawns[rand][3]);
        
SetCameraBehindPlayer(playerid);
        
SendClientMessage(playeridCOLOUR_DICA,
                          
"[MdE]:{FFFFFF} Voc� pode escolher um local para nascer digitando:/MSP");
    }
    
// RESETAR ARMAS
    
ResetPlayerWeapons(playerid);
    
// SOCO E SOCO INGLES
    
new weapons_slot_00 random(2);
    switch (
weapons_slot_00)
    {
    case 
0:
        
GivePlayerWeapon(playerid01);
    case 
1:
        
GivePlayerWeapon(playerid11);
    }
    
// BENGALA FACA ETC
    
new weapons_slot_01 random(8);
    switch (
weapons_slot_01)
    {
    case 
0:
        
GivePlayerWeapon(playerid21);
    case 
1:
        
GivePlayerWeapon(playerid31);
    case 
2:
        
GivePlayerWeapon(playerid41);
    case 
3:
        
GivePlayerWeapon(playerid51);
    case 
4:
        
GivePlayerWeapon(playerid61);
    case 
5:
        
GivePlayerWeapon(playerid71);
    case 
6:
        
GivePlayerWeapon(playerid81);
    case 
7:
        
GivePlayerWeapon(playerid91);
    }
    
// EXPLOSIVOS
    
new weapons_slot_08 random(2);
    switch (
weapons_slot_08)
    {
    case 
0:
        
GivePlayerWeapon(playerid1615);
        
// case 2:GivePlayerWeapon(playerid, 18, 3); // MOLOTOV
    
case 1:
        
GivePlayerWeapon(playerid3915);
    }
    
// PISTOLAS
    
new weapons_slot_02 random(4);
    switch (
weapons_slot_02)
    {
    case 
0:
        
GivePlayerWeapon(playerid22220);
    case 
1:
        
GivePlayerWeapon(playerid23220);
    case 
2:
        
GivePlayerWeapon(playerid24220);
    case 
3:
        
GivePlayerWeapon(playerid24220);
    }
    
// METRALHAS
    
new weapons_slot_04 random(3);
    switch (
weapons_slot_04)
    {
    case 
0:
        
GivePlayerWeapon(playerid282500);
    case 
1:
        
GivePlayerWeapon(playerid292500);
    case 
2:
        
GivePlayerWeapon(playerid322500);
    }
    
// ASSALTO
    
new weapons_slot_05 random(2);
    switch (
weapons_slot_05)
    {
    case 
0:
        
GivePlayerWeapon(playerid301000);
    case 
1:
        
GivePlayerWeapon(playerid311000);
    }
    
// RIFLES
    
new weapons_slot_06 random(2);
    switch (
weapons_slot_06)
    {
    case 
0:
        
GivePlayerWeapon(playerid33100);
    case 
1:
        
GivePlayerWeapon(playerid34100);
    }
    
// GAS
    
new weapons_slot_09 random(2);
    switch (
weapons_slot_09)
    {
    case 
0:
        
GivePlayerWeapon(playerid412000);
    case 
1:
        
GivePlayerWeapon(playerid422000);
    }
    
// SHOTGUNS
    
new weapons_slot_03 random(3);
    switch (
weapons_slot_03)
    {
    case 
0:
        
GivePlayerWeapon(playerid25880);
    case 
1:
        
GivePlayerWeapon(playerid26880);
    case 
2:
        
GivePlayerWeapon(playerid27880);
    }
    
SetPlayerTeam(playerid255);
    
SetPlayerTeam(playerid255);
    
// Nascer com colete
    
if (NascerComColete[playerid] == true)
    {
        if (
CallRemoteFunction("GetPlayerCash""i"playerid) >= 5000)
        {
            
CallRemoteFunction("GivePlayerCash""ii"playerid, -5000);
            
SetPlayerArmour(playerid100.0);
            
SendClientMessage(playeridCOLOUR_INFORMACAO,
                              
"{00BFFF}[MdE]: Voc� nasceu com colete por $5000 {C1C1C1}Desabilitar: /ncc");
        }
        else
        {
            
SendClientMessage(playeridCOLOUR_ERRO,
                              
"[ERRO]: Dinheiro insuficiente para nascer com colete {C1C1C1}Desabilitar: /ncc");
        }
    }
    if (
NascerComKitGuerra[playerid] == true)
    {
        if (
CallRemoteFunction("GetPlayerCash""i"playerid) >= 10000)
        {
            
CallRemoteFunction("GivePlayerCash""ii"playerid, -10000);
            
GivePlayerWeapon(playerid22300);
            
GivePlayerWeapon(playerid28300);
            
GivePlayerWeapon(playerid31300);
            
GivePlayerWeapon(playerid1610);
            
GivePlayerWeapon(playerid34100);
            
GivePlayerWeapon(playerid42);
            
GivePlayerWeapon(playerid42100);
            
GivePlayerWeapon(playerid26300);
            
SetPlayerArmour(playerid100.0);
            
SendClientMessage(playeridCOLOUR_INFORMACAO,
                              
"{00BFFF}[MdE]: Voc� nasceu com Kit Guerra por $10000 {C1C1C1}Desabilitar: /nck");
        }
        else
        {
            
SendClientMessage(playeridCOLOUR_ERRO,
                              
"[ERRO]: Dinheiro insuficiente para nascer com Kit {C1C1C1}Desabilitar: /nck");
        }
    }
    if (
AAD_Team[playerid] == && AAD_EmProgresso == && AAD_Vai[playerid] == 1)
    {
        
AAD_SpawnPlayer_1(playerid);
    }
    if (
AAD_Team[playerid] == && AAD_EmProgresso == && AAD_Vai[playerid] == 1)
    {
        
AAD_SpawnPlayer_2(playerid);
    }
    return 
1;

Reply
#7

й um desses

pawn Код:
TextDrawShowForPlayer(playerid, Textdrawnova);
    TextDrawShowForPlayer(playerid, Textdraw10);
    TextDrawShowForPlayer(playerid, Textdraw1);
    TextDrawShowForPlayer(playerid, Textdraw3);
    TextDrawShowForPlayer(playerid, TxDNotificador);
Textdrawnova, Textdraw1, Textdraw3, TxDNotificador

procura em alguns deles pra ver se acha algo haver com hora, minutos
Reply
#8

eu tava olhando aki e achei isso .

PHP код:
stock AtualizarRelogio()
{
        new 
string[15],hours,minutes,seconds;
        
gettime(hoursminutesseconds);
        
format(stringsizeof string"%s%d:%s%d", (hours 10) ? ("0") : (""), hours, (minutes 10) ? ("0") : (""), minutes);
        
TextDrawSetString(Textdraw3string);
        return 
1;

Reply
#9

achei essa linha tambem.

PHP код:
if(AutoCiclo == 0){SetWorldTime(dini_Int("ZNS.ini","horario"));}//Horбrio do servidor 
Reply
#10

Tente isso

PHP код:
stock AtualizarRelogio() 

    new 
string[15],hours,minutes,seconds
    
gettime(hoursminutesseconds); 
    
format(stringsizeof string"%02d:%02d"hours+3minutes); 
    
TextDrawSetString(Textdraw3string); 
    return 
1

Quote:
Originally Posted by Anonymous637
Посмотреть сообщение
achei essa linha tambem.

PHP код:
if(AutoCiclo == 0){SetWorldTime(dini_Int("ZNS.ini","horario"));}//Horбrio do servidor 
esse acho q n precisa trocar nгo pq ele ta salvando o horario num arquivo pra usar depois qnd o servidor reiniciar.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)