nothing happens
#1

i just made this and its not seeming to work all i get is An Admin has set the time to 24 for all of them and ideas

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
//----------------------------[Night]-------------------------------------------
  if(strcmp(cmdtext, "/dark", true)==0)
 	{
		if(IsPlayerAdmin(playerid))
		SendClientMessageToAll(COLOR_ORANGE, "An Admin has set the time to 24.");
		SetWorldTime(1);
		return 1;
	}

//----------------------------[Rainy]-------------------------------------------
  if(strcmp(cmdtext, "/rainy", true)==0)
 	{
	  if(IsPlayerAdmin(playerid))
		SendClientMessageToAll(COLOR_ORANGE, "An Admin has changed the weather.");
		SetWeather(8);
		return 1;
	}
//----------------------------[Sunny]-------------------------------------------
  if(strcmp(cmdtext, "/sunny", true)==0)
 	{
		if(IsPlayerAdmin(playerid))
		SendClientMessageToAll(COLOR_ORANGE, "An Admin has changed the weather.");
		SetWeather(0);
		return 1;
	}
Reply
#2

Use this rather that SetWorldTime
https://sampwiki.blast.hk/wiki/SetWeather
Reply
#3

TogglePlayerClock(playerid, 1);
under OnPlayerConnect
Reply
#4

none of them work is wat im saying even set weather
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)