Jump to content

Max Informujuci cas[neny zkopirovany]


Guest poblib

Recommended Posts

public HMseconds(playerid)

{

new B[MAX_PLAYERS];

if(B[playerid][spawned] == 1) //Toto je on,ten řadek

{

TextDrawHideForPlayer(playerid,Clock);

TextDrawHideForPlayer(playerid,Sekundy);

SetHM(); SetS();

TextDrawSetString(Clock, string99);

TextDrawSetString(Sekundy, string97);

TextDrawShowForPlayer(playerid,Clock);

TextDrawShowForPlayer(playerid,Sekundy);

}

}

return 1;

}

 

 

DÍK ,ale už jsem to vyřešil,ale teď bych chtěl jinou radu :d, jak to mam udělaný ,tak bych chtěl aby mi ten čas zjištovalo kolik je hodin ve hře,ne jako Realný čas,ale ve hře ,nevíte někdo jak na to ? nemužu to nikde najít :-(

a jak tam měníš čas? normál máš na to příkaz?

Link to comment
Share on other sites

  • Replies 141
  • Created
  • Last Reply

Top Posters In This Topic

public HMseconds(playerid)

{

new B[MAX_PLAYERS];

if(B[playerid][spawned] == 1) //Toto je on,ten řadek

{

TextDrawHideForPlayer(playerid,Clock);

TextDrawHideForPlayer(playerid,Sekundy);

SetHM(); SetS();

TextDrawSetString(Clock, string99);

TextDrawSetString(Sekundy, string97);

TextDrawShowForPlayer(playerid,Clock);

TextDrawShowForPlayer(playerid,Sekundy);

}

}

return 1;

}

 

 

DÍK ,ale už jsem to vyřešil,ale teď bych chtěl jinou radu :d, jak to mam udělaný ,tak bych chtěl aby mi ten čas zjištovalo kolik je hodin ve hře,ne jako Realný čas,ale ve hře ,nevíte někdo jak na to ? nemužu to nikde najít :-(

a jak tam měníš čas? normál máš na to příkaz?

 

 

no ve hře si ho mužu změnit když zapnu /rcon loadfs fsdebug , mam udělaný že se mi střídá den a noc ,je to nak takto

Public OnGameModeInit()

SetTimer("blem", 216000, true);

 

 

a pak public samostaný :

public blem()

{

new time;

time++;

SetWorldTime( time );

return 1;

}

 

nemáš skype ? ,aby jsme sem nemuseli psat ?

Link to comment
Share on other sites

skype mi teď nejde, ale udělal bych

jako global:

new time;

 

pak

 

public blem()
{
	time++;
SetWorldTime( time );
return 1;
}

 

a pak

 

  new string[100];  
  format(string,sizeof(string),"Právě je %d",time);
  SendClientMessageToAll(BARVA,string);

Link to comment
Share on other sites

skype mi teď nejde, ale udělal bych normál jako global:

new time;

 

pak

 

public blem()
{
	time++;
SetWorldTime( time );
return 1;
}

 

a pak

 

  new string[100];  
  format(string,sizeof(string),"Právě je %d",time);
  SendClientMessageToAll(BARVA,string);

 

 

hmm, :?

Link to comment
Share on other sites

skype mi teď nejde, ale udělal bych normál jako global:

new time;

 

pak

 

public blem()
{
	time++;
SetWorldTime( time );
return 1;
}

 

a pak

 

  new string[100];  
  format(string,sizeof(string),"Právě je %d",time);
  SendClientMessageToAll(BARVA,string);

 

 

hmm, :?

co na tom nechápeš?

 

prostě úplně nahoru dáš

new time;

 

pak v tom publicku blem, vymažeš to

new time;

 

a to

 

   new string[100];  
  format(string,sizeof(string),"Právě je %d",time);
  SendClientMessageToAll(BARVA,string);

je jak máš pak udělat zjištění času ;)

třeba si udělat forward timer a tam dát todle ;)

Link to comment
Share on other sites

public HMseconds(playerid)

{

new B[MAX_PLAYERS];

if(B[playerid][spawned] == 1) //Toto je on,ten řadek

{

TextDrawHideForPlayer(playerid,Clock);

TextDrawHideForPlayer(playerid,Sekundy);

SetHM(); SetS();

TextDrawSetString(Clock, string99);

TextDrawSetString(Sekundy, string97);

TextDrawShowForPlayer(playerid,Clock);

TextDrawShowForPlayer(playerid,Sekundy);

}

}

return 1;

}

 

Orátal si si tie zátvorky?

 

Keby áno a odtabuješ si to tak prídeš na toto:

 

public HMseconds(playerid)
{
new B[MAX_PLAYERS];
if(B[playerid][spawned] == 1) //Toto je on,ten řadek
{
	TextDrawHideForPlayer(playerid,Clock);
	TextDrawHideForPlayer(playerid,Sekundy);
	SetHM(); SetS();
	TextDrawSetString(Clock, string99);
	TextDrawSetString(Sekundy, string97);
	TextDrawShowForPlayer(playerid,Clock);
	TextDrawShowForPlayer(playerid,Sekundy);
}
}
return 1;
}

Link to comment
Share on other sites

http://wiki.sa-mp.com/wiki/TogglePlayerClock

 

Toto je presne to čo hľadáš.

 

Ale dôležité je toto:

 

Note: Time is not synced with other players!
Note: Time will automatically advance 6 hours when the player dies.

 

 

díky,moc si mi pomohl :d ,teď si tu udělat textdraw a udělám si k tomu ještě dny :d ,díky

Link to comment
Share on other sites

mam ještě jeden dotaz,snad poslední :d ,mam udělaný textdraw

 

 

Date = TextDrawCreate(498,99,"");

TextDrawLetterSize(Date,0.349999,1.400000);

TextDrawAlignment(Date,0);

TextDrawBackgroundColor(Date,0x000000FF);

TextDrawFont(Date,3);

TextDrawUseBox(Date,0);

TextDrawSetOutline(Date,0);

TextDrawSetProportional(Date,1);

TextDrawSetShadow(Date,1);

TextDrawShowForAll(Date);

 

 

toto je jak jsou peníze ,mam udělený textdraw, a chtěl bych udělat aby se mi střídaly dny, Pondelí,uterý,středa .......... atd... ,aby se mi to střídalo jaký je den ve hře ,prosím poradíte mi ? prosím

Link to comment
Share on other sites

http://wiki.sa-mp.com/wiki/TogglePlayerClock

 

Toto je presne to čo hľadáš.

 

Ale dôležité je toto:

 

Note: Time is not synced with other players!
Note: Time will automatically advance 6 hours when the player dies.

 

hele ale mam problém,že když se někdo zabije tak to automaticky posune čas o 6 hodin,da se to nějak obejít ?

Link to comment
Share on other sites

Nevyšimol si si tie 2 Notes? Jedna hovorí, že časy sú medzi hráčmi nezávislé a druhá, že sa pri smrti posunie o 6 hodín, obísť sa to nedá.

 

 

to je škoda :-(

Link to comment
Share on other sites

Jedině že by každý hráč měl jiný čas.. tzn jeden den, druhej zase noc. K tomuto jsem došel při hraní a začátcích s eXaCeM a bylo to nastavování času a počasí přez RCON příkazama který sis předem definoval v pawnu, ale nevím jestly ten bug už opravily nebo ne.. :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...