set time
#1

how to set server time from pawno?
Reply
#2

SetWorldTime(hour);
Reply
#3

https://sampwiki.blast.hk/wiki/SetPlayerTime - to set it for a specific player only
https://sampwiki.blast.hk/wiki/SetWorldTime - all players share the same time
Reply
#4

I DONT FIND THAT LINE
Reply
#5

Quote:
Originally Posted by wanTedh
I DONT FIND THAT LINE
You need to add it -.-
Preferably under OnGameModeInit
Reply
#6

You can attach it to a command.
Like
pawn Код:
if (strcmp("/night", cmdtext, true, 6) == 0)
{
  SetWorldTime(21);
  return 1;
 }
Or:
pawn Код:
if (strcmp("/night", cmdtext, true, 6) == 0)
{
  SetPlayerTime(playerid,21,00);
  return 1;
 }
Reply
#7

you can put into a fs to see exacli
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)