Diffrent times?
#1

Hello, I want to make my server have different times.. Like so..

When the gamemode first starts, it starts with morning, then it goes to afternoon after 10 or so mins.. then after another 10 mins, it goes to evening, and after another 10 mins it goes to midnight. and then it goes back to morning.

How do I do this? :P
Reply
#2

Quote:
Originally Posted by [B
Vortex ]
Hello, I want to make my server have different times.. Like so..

When the gamemode first starts, it starts with morning, then it goes to afternoon after 10 or so mins.. then after another 10 mins, it goes to evening, and after another 10 mins it goes to midnight. and then it goes back to morning.

How do I do this? :P
my problem is similar, but i can say to you this

Add in OnPlayerSpawn this.

pawn Код:
public OnPlayerSpawn(playerid)
{
  TogglePlayerClock(playerid, 1);
    return 1;
}
But, no is sycn with all players, is what i need fix, and i ask that now lol
Reply
#3

Quote:
Originally Posted by ER0
Quote:
Originally Posted by [B
Vortex ]
Hello, I want to make my server have different times.. Like so..

When the gamemode first starts, it starts with morning, then it goes to afternoon after 10 or so mins.. then after another 10 mins, it goes to evening, and after another 10 mins it goes to midnight. and then it goes back to morning.

How do I do this? :P
my problem is similar, but i can say to you this

Add in OnPlayerSpawn this.

pawn Код:
public OnPlayerSpawn(playerid)
{
  TogglePlayerClock(playerid, 1);
    return 1;
}
But, no is sycn with all players, is what i need fix, and i ask that now lol
I dont want a clock, I just want the times of day to change.
Reply
#4

Then create a timer in which you're going to change the server-world-time.
Reply
#5

Quote:
Originally Posted by Don Correlli
Then create a timer in which you're going to change the server-world-time.
I have no clue how to use timers. Hesse why I posted here.
Reply
#6

http://forum.sa-mp.com/index.php?top...1478#msg701478
Reply
#7

Quote:
Originally Posted by Ronyx69
Thanks
Reply
#8

Wait, now my gamemode is getting random errors..

Quote:

C:\Users\Damien\Desktop\samp server\gamemodes\LVTDMFIX.pwn(42) : error 021: symbol already defined: "AddPlayerClass"
C:\Users\Damien\Desktop\samp server\gamemodes\LVTDMFIX.pwn(52) : error 021: symbol already defined: "AddStaticVehicle"
C:\Users\Damien\Desktop\samp server\gamemodes\LVTDMFIX.pwn(439) : error 021: symbol already defined: "AddStaticVehicle"
C:\Users\Damien\Desktop\samp server\gamemodes\LVTDMFIX.pwn(444) : error 021: symbol already defined: "CreateObject"
C:\Users\Damien\Desktop\samp server\gamemodes\LVTDMFIX.pwn(466) : error 021: symbol already defined: "CreateObject"
C:\Users\Damien\Desktop\samp server\gamemodes\LVTDMFIX.pwn(487) : error 010: invalid function or declaration
C:\Users\Damien\Desktop\samp server\gamemodes\LVTDMFIX.pwn(744) : warning 217: loose indentation
C:\Users\Damien\Desktop\samp server\gamemodes\LVTDMFIX.pwn(746) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.

Reply
#9

Make sure you didn't missed any bracket.
Reply
#10

Quote:
Originally Posted by Don Correlli
Make sure you didn't missed any bracket.
Ah, I made a stupid mistake prior to adding that to my script :P Thanks anyways
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)