VoDnIk168 0 Odesláno: 15. Leden, 2012 Share Odesláno: 15. Leden, 2012 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 , 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 More sharing options...
paveldaa 0 Odesláno: 15. Leden, 2012 Share Odesláno: 15. Leden, 2012 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 , 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 More sharing options...
VoDnIk168 0 Odesláno: 15. Leden, 2012 Share Odesláno: 15. Leden, 2012 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 More sharing options...
paveldaa 0 Odesláno: 15. Leden, 2012 Share Odesláno: 15. Leden, 2012 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 More sharing options...
VoDnIk168 0 Odesláno: 15. Leden, 2012 Share Odesláno: 15. Leden, 2012 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 More sharing options...
_Martin_ 10 Odesláno: 15. Leden, 2012 Share Odesláno: 15. Leden, 2012 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 More sharing options...
paveldaa 0 Odesláno: 16. Leden, 2012 Share Odesláno: 16. Leden, 2012 Ja bych to chtěl mít ten čas jako je v singlači,střída se tam noc a den ,pulnoc 0:0 hodin,však víte ne ? jak bych to měl udělat ?? Link to comment Share on other sites More sharing options...
VoDnIk168 0 Odesláno: 16. Leden, 2012 Share Odesláno: 16. Leden, 2012 Ja bych to chtěl mít ten čas jako je v singlači,střída se tam noc a den ,pulnoc 0:0 hodin,však víte ne ? jak bych to měl udělat ?? přes timer a SetWorldTime Link to comment Share on other sites More sharing options...
_Martin_ 10 Odesláno: 16. Leden, 2012 Share Odesláno: 16. Leden, 2012 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. Link to comment Share on other sites More sharing options...
paveldaa 0 Odesláno: 16. Leden, 2012 Share Odesláno: 16. Leden, 2012 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 ,teď si tu udělat textdraw a udělám si k tomu ještě dny ,díky Link to comment Share on other sites More sharing options...
paveldaa 0 Odesláno: 16. Leden, 2012 Share Odesláno: 16. Leden, 2012 mam ještě jeden dotaz,snad poslední ,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 More sharing options...
Guest Odesláno: 16. Leden, 2012 Share Odesláno: 16. Leden, 2012 http://wiki.sa-mp.com/wiki/TextDrawSetString Link to comment Share on other sites More sharing options...
paveldaa 0 Odesláno: 16. Leden, 2012 Share Odesláno: 16. Leden, 2012 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 More sharing options...
_Martin_ 10 Odesláno: 16. Leden, 2012 Share Odesláno: 16. Leden, 2012 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á. Link to comment Share on other sites More sharing options...
paveldaa 0 Odesláno: 17. Leden, 2012 Share Odesláno: 17. Leden, 2012 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 More sharing options...
booble1428 0 Odesláno: 17. Leden, 2012 Share Odesláno: 17. Leden, 2012 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 More sharing options...
paveldaa 0 Odesláno: 17. Leden, 2012 Share Odesláno: 17. Leden, 2012 eeh ,ti je nak složitý ,asi se na to teď vyprdnu a skusím to někdy jindy ,až toho budu snad umět více Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now