[DUVIDAS] - TEXT DRAW -
KILERTRANSUDO - 27.05.2014
oi povo boa noite eu queria pedia a ajuda de voces que eu tenho 1 duvida pra tirar essa text draw do gm pode me ajudar pfv .
obs; й pra tirar so a text draw / a text draw й de hora
pawn Код:
public OnPlayerSpawn(playerid)
{
Player[playerid][pLogged] = true;
GivePlayerWeapon(playerid,24,15000);
if(Player[playerid][pVapor] >= 1)
{
GivePlayerWeapon(playerid, 46,1);
}
#if TEMPO_REAL == 1
new hour,minute,second;
gettime(hour, minute, second);
new wtime;
if(hour == 16) wtime = 20;
else if(hour == 17) wtime = 21;
else if(hour == 18) wtime = 21;
else if(hour == 19) wtime = 23;
else if(hour == 20) wtime = 24;
else if(hour == 21) wtime = 24;
else if(hour >= 22 && hour <= 0) wtime = 0;
else wtime = hour;
SetPlayerTime(playerid, wtime, 0);
#else
SetPlayerTime(playerid, random(24), 0);
#endif
Player[playerid][InDM] = false;
gPlayerHealth[playerid] = 100.0;
gPlayerArmour[playerid] = 100.0;
SetPlayerVirtualWorld(playerid, 0);
ResetPlayerTeam(playerid);
TextDrawHideForPlayer(playerid, Textdraw0);
TextDrawHideForPlayer(playerid, Textdraw1);
if(Player[playerid][ReloadPlayer] == true)
{
Player[playerid][ReloadPlayer] = false;
SetTimerEx("LoadVariables",300,false, "i",playerid);
}
SetPlayerSkin(playerid, Player[playerid][pSkin]);
if(Player[playerid][pVip] == 1 || Player[playerid][SpawnArmour] == 1)
{
SetPlayerArmour(playerid, 100);
}
if(Player[playerid][WeaponCoin] > 0 && Player[playerid][pTempoPreso] == 0)
{
if(Player[playerid][WeaponCoin] == 43)
{
GivePlayerWeapon(playerid, Player[playerid][WeaponCoin], 9999);
}
else
{
GivePlayerWeapon(playerid, Player[playerid][WeaponCoin], 1);
}
}
Re: [DUVIDAS] - TEXT DRAW -
MultiKill - 27.05.2014
Envia OnGameModeInit do seu Gm para saber qual SetTimer atualiza a hora do seu GM.
Re: [DUVIDAS] - TEXT DRAW -
KILERTRANSUDO - 27.05.2014
pawn Код:
public OnGameModeInit()
{
new str[128];
format(str, 128, "%s %s", GM_NAME, GM_VERSION);
SetGameModeText(str);
format(str, 128, "mapname %s", MAPNAME);
SendRconCommand(str);
if(!DOF2_FileExists("favelas.ini"))
{
new VB[4];
DOF2_CreateFile("favelas.ini");
for(new v; v < MAX_FACCOES; v++)
{
valstr(VB,v);
DOF2_SetString("favelas.ini",VB,favelas[v][tNome]);
}
}
LimitGlobalChatRadius(30);
EnableStuntBonusForAll(0);
UsePlayerPedAnims();
DisableInteriorEnterExits();
ShowPlayerMarkers(0);
for(new i=0;i<MAX_GZS;i++)
{
GangZonas[i] = GangZoneCreate(GangZone[i][GZCoords][0], GangZone[i][GZCoords][1], GangZone[i][GZCoords][2], GangZone[i][GZCoords][3]);
ContagemDominio[i] = 0;
ChecksDominio[i] = CreateDynamicCP(GangZone[i][CheckCoords][0], GangZone[i][CheckCoords][1], GangZone[i][CheckCoords][2], 4, -1, 0, -1, 100.0);
}
// ===================================================================
new hour, minute, second, day, month, year;
gettime(hour, minute, second);
getdate(year, month, day);
format(MonthStringKills,24,"%d_%d_kills", year,month);
format(MonthStringDeaths,24,"%d_%d_deaths", year,month);
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
//========================== [TIMERS] ================================
SetTimer("@TimerOneSecond", 1000, 1);
SetTimer("@PayDay", 60000*60, 1);
SetTimer("EnviarInfo", 60000*2, 1);
SetTimer("RandomMSG",150000,1);
SetTimer("VooUpdate", 60000*2, 1);
SetTimer("Top1",60000*5,1);
//======================== [MENUs] ===================================
Re: [DUVIDAS] - TEXT DRAW -
MultiKill - 27.05.2014
Envia a public @TimerOneSecond.
Re: [DUVIDAS] - TEXT DRAW -
KILERTRANSUDO - 27.05.2014
tudo que eu achei dela
pawn Код:
forward @TimerOneSecond();
//========================== [TIMERS] ================================
SetTimer("@TimerOneSecond", 1000, 1);
@TimerOneSecond()
{
// printf("GetTickCount: %d", GetTickCount());
// printf("Now: %d", Now());
gSeconds++;
gSecondsCurTime ++;
gettime(ClockTime[tHour], ClockTime[tMinute], ClockTime[tSecond]);
getdate(ClockTime[dYear], ClockTime[dMonth], ClockTime[dDay]);
#if TEMPO_REAL == 1
new wtime;
if(ClockTime[tHour] == 16) wtime = 20;
else if(ClockTime[tHour] == 17) wtime = 21;
else if(ClockTime[tHour] == 18) wtime = 21;
else if(ClockTime[tHour] == 19) wtime = 23;
else if(ClockTime[tHour] == 20) wtime = 24;
else if(ClockTime[tHour] == 21) wtime = 24;
else if(ClockTime[tHour] >= 22 && ClockTime[tHour] <= 23) wtime = 24;
else wtime = ClockTime[tHour];
#endif
for(new i; i <= HighestID; i++)
{
if(IsPlayerConnected(i))
{
Player[i][pOnlineTime] += 1;
#if TEMPO_REAL == 1
SetPlayerTime(i, wtime, 0);
#endif
Re: [DUVIDAS] - TEXT DRAW -
KILERTRANSUDO - 28.05.2014
uppp