SA-MP Forums Archive
nothing happens - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: nothing happens (/showthread.php?tid=110110)



nothing happens - [HKS]dlegend - 24.11.2009

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;
	}



Re: nothing happens - Peter_Corneile - 24.11.2009

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


Re: nothing happens - dice7 - 24.11.2009

TogglePlayerClock(playerid, 1);
under OnPlayerConnect


Re: nothing happens - [HKS]dlegend - 24.11.2009

none of them work is wat im saying even set weather