[Ajuda] Problemas com a filtscripts !
#1

Eu coloco a filtscript na pasta ai eu vo no server.cfc e coloco o nome da filtscript ,so q quando eu abro o samp minha filtscript nn funciona ,minha filtscript e do relogio com data e hora serta e o relogio e a data nn aparece
Reply
#2

amigo, vocк precisa mostrar os seus dados para que possamos lhe auxiliar, seu filterscript pode estar com problemas ou vocк estб identificando errado, mande o seu server.cfg e o cуdigo do seu filterscript
Reply
#3

e os logs...
Reply
#4

O nome da filterscript й relogio_e_data
Quote:

#include <a_samp>

static i_ServerSeconds;
static i_ServerMinutes;
static i_ServerHours;
static i_ServerDays;
static i_ServerMonths;
static i_ServerYears;

new Text:txtTimeDisp;
new Text:txtDateDisp;

forward ProcessGameTime();
public ProcessGameTime()
{
new string[128];
gettime(i_ServerHours, i_ServerMinutes, i_ServerSeconds);
getdate(i_ServerYears, i_ServerMonths, i_ServerDays);
format(string, sizeof string, "%02d:%02d:%02d", i_ServerHours, i_ServerMinutes, i_ServerSeconds);
TextDrawSetString(txtTimeDisp, string);
format(string, sizeof string, "%02d/%02d/%04d", i_ServerDays, i_ServerMonths, i_ServerYears);
TextDrawSetString(txtDateDisp, string);
SetWorldTime(i_ServerHours);
for(new i = 0; i < MAX_PLAYERS; i++)SetPlayerTime(i, i_ServerHours, i_ServerMinutes);
}

public OnFilterScriptInit()
{
txtTimeDisp = TextDrawCreate(632.0,25.0,"--:--:--");
TextDrawUseBox(txtTimeDisp, 0);
TextDrawFont(txtTimeDisp, 3);
TextDrawSetShadow(txtTimeDisp,0);
TextDrawSetOutline(txtTimeDisp,2);
TextDrawBackgroundColor(txtTimeDisp,0x000000FF);
TextDrawColor(txtTimeDisp,0xFFFFFFFF);
TextDrawAlignment(txtTimeDisp,3);
TextDrawLetterSize(txtTimeDisp,0.5,1.5);

txtDateDisp = TextDrawCreate(620.0,5.0,"00/00/0000");
TextDrawUseBox(txtDateDisp, 0);
TextDrawFont(txtDateDisp, 3);
TextDrawSetShadow(txtDateDisp,0);
TextDrawSetOutline(txtDateDisp,2);
TextDrawBackgroundColor(txtDateDisp,0x000000FF);
TextDrawColor(txtDateDisp,0xFFFFFFFF);
TextDrawAlignment(txtDateDisp,3);
TextDrawLetterSize(txtDateDisp,0.5,1.5);

ProcessGameTime();
SetTimer("ProcessGameTime", 1000, 1);
return 1;
}

public OnFilterScriptExit()
{
TextDrawHideForAll(txtTimeDisp);
TextDrawDestroy(txtTimeDisp);
TextDrawHideForAll(txtDateDisp);
TextDrawDestroy(txtDateDisp);
return 1;
}

public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid,txtTimeDisp);
TextDrawShowForPlayer(playerid,txtDateDisp);
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
TextDrawHideForPlayer(playerid,txtTimeDisp);
TextDrawHideForPlayer(playerid,txtDateDisp);
return 1;
}

Quote:

echo [sa-mp.gs] Loading server.cfg...
lanmode 0
rcon_password
hostname Brasil Caminhoneiro [0.3z]
gamemode0 BTF
filterscripts relogio_e_data

plugins sscanf.so streamer.so
weburl brasilcaminhoneiro.forumeiros.com
maxnpc 0
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
echo [sa-mp.gs] server.cfg has been loaded!
port 7480
maxplayers 30

query 1

announce 1

bind 84.200.69.29

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)