SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 27/08/2009, 10:26 PM   #1
_Vortex
Gangsta
 
Join Date: May 2009
Posts: 783
Reputation: 4
Default Diffrent times?

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
__________________
_Vortex is offline  
Old 27/08/2009, 10:28 PM   #2
_ERO_
Big Clucker
 
_ERO_'s Avatar
 
Join Date: Aug 2009
Posts: 51
Reputation: 0
Default Re: Diffrent times?

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 Code:
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
__________________
Hosting Espaņol SA:MP, preguntar en el soporte | http://www.overserver.es/
_ERO_ is offline  
Old 27/08/2009, 10:30 PM   #3
_Vortex
Gangsta
 
Join Date: May 2009
Posts: 783
Reputation: 4
Default Re: Diffrent times?

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 Code:
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.
__________________
_Vortex is offline  
Old 27/08/2009, 10:32 PM   #4
Correlli
Godfather
 
Correlli's Avatar
 
Join Date: May 2009
Location: Slovenia
Posts: 6,340
Reputation: 365
Default Re: Diffrent times?

Then create a timer in which you're going to change the server-world-time.
Correlli is offline  
Old 27/08/2009, 10:37 PM   #5
_Vortex
Gangsta
 
Join Date: May 2009
Posts: 783
Reputation: 4
Default Re: Diffrent times?

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.
__________________
_Vortex is offline  
Old 27/08/2009, 10:43 PM   #6
ronyx69
Big Clucker
 
ronyx69's Avatar
 
Join Date: Jul 2008
Location: Latvia
Posts: 164
Reputation: 3
Default Re: Diffrent times?

http://forum.sa-mp.com/index.php?top...1478#msg701478
ronyx69 is offline  
Old 27/08/2009, 10:55 PM   #7
_Vortex
Gangsta
 
Join Date: May 2009
Posts: 783
Reputation: 4
Default Re: Diffrent times?

Quote:
Originally Posted by Ronyx69
Thanks
__________________
_Vortex is offline  
Old 27/08/2009, 11:07 PM   #8
_Vortex
Gangsta
 
Join Date: May 2009
Posts: 783
Reputation: 4
Default Re: Diffrent times?

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 (c) 1997-2006, ITB CompuPhase


6 Errors.
__________________
_Vortex is offline  
Old 27/08/2009, 11:07 PM   #9
Correlli
Godfather
 
Correlli's Avatar
 
Join Date: May 2009
Location: Slovenia
Posts: 6,340
Reputation: 365
Default Re: Diffrent times?

Make sure you didn't missed any bracket.
Correlli is offline  
Old 27/08/2009, 11:11 PM   #10
_Vortex
Gangsta
 
Join Date: May 2009
Posts: 783
Reputation: 4
Default Re: Diffrent times?

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
__________________
_Vortex is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The car id's diffrent from 0.2x?? xCoder Help Archive 2 04/09/2009 03:36 PM
Diffrent skins for the same team?.. _Vortex Help Archive 2 21/08/2009 11:55 AM
[SOLVED] Diffrent camera areas for diffrent teams on OnPlayerRequestClass _Vortex Help Archive 9 14/08/2009 07:02 AM
what id the diffrent between strtok and stock nuriel8833 Help Archive 2 13/08/2009 09:14 AM
2 servers with Diffrent IP BUT Its the same server? Mrkrabz Server Support 4 25/04/2009 09:46 PM


All times are GMT. The time now is 12:54 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.