Author Topic: Timing System!!!!! [ Working By Me ]  (Read 6183 times)

0 Members and 1 Guest are viewing this topic.

Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Timing System!!!!! [ Working By Me ]
« on: February 08, 2014, 07:37:42 pm »
 :D

Changelog!!

For A Better Touch!!

Add
Quote
Hours[MAX_PLAYERS];
Days[MAX_PLAYERS];
Minutes[MAX_PLAYERS];
Seconds[MAX_PLAYERS];

Add This In OnPlayerText
Quote
   else if(strcmp(cmd, "!time", true) == 0) {
   new none[127];
   format(none,sizeof(none)," Time [ %d : %d : %d : %d  ]", SecondsFile(playerid), MinutesFile(playerid), HoursFile(playerid),DaysFile(playerid));
GameTextForPlayerBottom(i,none);
return 1;
}   

OnGameModeInIt

Quote
SetTimer("IncSeconds", 1000, 1);
SetTimer("IncMinutes", 59000, 1);

Now For Publics

Quote
public SecondsFile(playerid) {
return Seconds[playerid];
}

public DaysFile(playerid) {
return Days[playerid];
}

public MinutesFile(playerid) {
return Minutes[playerid];
}

public HoursFile(playerid) {
return Hours[playerid];
}

public IncSeconds() {
    for(new i = 0; i < MAX_PLAYERS; i++) {
Seconds++;
}
    for(new i = 0; i < MAX_PLAYERS; i++) {
if(Seconds == 59) {
Seconds = 0;
}
}
return 1;
}

public IncMinutes()
{
    for(new i = 0; i < MAX_PLAYERS; i++) {
Minutes++;
new ss[123];
format(ss,sizeof(ss),"[Time] %d : %d : %d", SecondsFile(i), MinutesFile(i), HoursFile(i));
GameTextForPlayerBottom(i,ss);
}
    for(new i = 0; i < MAX_PLAYERS; i++) {
if(Minutes == 61) {
Minutes = 0;
IncHours++;
}
}
return 1;
}

public IncHours()
{
    for(new i = 0; i < MAX_PLAYERS; i++) {
Hours++;
new ss[123];
format(ss,sizeof(ss),"[Time] %d : %d : %d : %d", SecondsFile(i), MinutesFile(i), HoursFile(i),DaysFile(i));
GameTextForPlayerBottom(i,ss);
}
    for(new i = 0; i < MAX_PLAYERS; i++) {
if(Hours == 25) {
Hours = 0;
Day[playerid]++;
}
}
return 1;
}

Saw A Bug Report It!!!

Credits Me

Features

Replacable By SetWorldTime

Just Can Change Weather..

+ Rcon Features To Change !!

/sethr
/setweather

Its SHow And Increases Time

Seconds Every Seconds
Minutes EVery 60 Seconds
Hours Every 60 Minutes
Days Every 24 Hour!





   

« Last Edit: February 11, 2014, 02:01:46 am by mrockxkingbutt »
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: Timing System!!!!! [ Working By Me ]
« Reply #1 on: February 09, 2014, 12:09:34 am »
Why are you using so big size for texts you write dude ? I just don't get it. (advanced logic?)




About script... you could use just one timer, instead of three.
By the way, announcing players about increasing their playing time status at every minute is not a good idea.
And what happens when a player will play for 25 hours ? His Hours' stats will get reset.

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: Timing System!!!!! [ Working By Me ]
« Reply #2 on: February 09, 2014, 01:09:42 am »
Most Pawns Server Are Port Forwarded Working Only!!!

So No-One Can Port Forward ANd Run Server For 24 Hours

If Anyone Can
!!

I Will Edit It And Add Days Ok???
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: Timing System!!!!! [ Working By Me ]
« Reply #3 on: February 11, 2014, 02:02:40 am »
Changed !!!  :)
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

Offline MatheuS

  • Made Man
  • ***
  • Posts: 207
  • Pawn And Squirrel Scripter
    • View Profile
    • Brazillian Community
Re: Timing System!!!!! [ Working By Me ]
« Reply #4 on: February 11, 2014, 04:19:54 am »
why you do not use [ pawn ] teste [ /pawn ]  :o

Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: Timing System!!!!! [ Working By Me ]
« Reply #5 on: February 11, 2014, 03:21:47 pm »
pawno code s**ks
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: Timing System!!!!! [ Working By Me ]
« Reply #6 on: February 11, 2014, 03:42:16 pm »
pawno code s**ks
Quote of The Year 2014.  ::)
I'm beginning to feel like a Lag God, Lag God

Offline MatheuS

  • Made Man
  • ***
  • Posts: 207
  • Pawn And Squirrel Scripter
    • View Profile
    • Brazillian Community

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: Timing System!!!!! [ Working By Me ]
« Reply #8 on: February 11, 2014, 10:24:05 pm »
Use [ code ] instead of [ quote ] or [ pawn ].

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: Timing System!!!!! [ Working By Me ]
« Reply #9 on: February 12, 2014, 08:11:54 pm »
Next Time Ok??  :)
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

Offline MatheuS

  • Made Man
  • ***
  • Posts: 207
  • Pawn And Squirrel Scripter
    • View Profile
    • Brazillian Community
Re: Timing System!!!!! [ Working By Me ]
« Reply #10 on: February 12, 2014, 11:43:48 pm »