SA-MP Forums Archive
how do i make a /vweather for vips - 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)
+--- Thread: how do i make a /vweather for vips (/showthread.php?tid=436610)



how do i make a /vweather for vips - CrackMatic - 12.05.2013

so can someone make me a /vweather(zcmd) and a /vtime pleaseeee
please use these
Код:
	if(Player[playerid][viplevel] < 1) return ERRORMSG(playerid);
    if(sscanf(params, "d",weather)) return SendClientMessage(playerid,ADMIN_ACTION, "•• Correct syntax is /weather [ weatherid ]");
i never did weather or time so i need helpplease


Re: how do i make a /vweather for vips - .FuneraL. - 12.05.2013

pawn Код:
CMD:vweather(playerid, params[]) {
      new weather, new str[100];
      if(Player[playerid][viplevel] < 1) return ERRORMSG(playerid);
      if(sscanf(params, "d", weather)) return SendClientMessage(playerid, ADMIN_ACTION, "•• Correct syntax is /vweather [ weatherid ]");
      format(str, sizeof(str), "[Success]: You changed the weather to the ID: %d", weather);
      SendClientMessage(playerid, -1, str);
      SetPlayerWeather(playerid, weather);
      return 1;
}

CMD:vtime(playerid, params[]) {
      new time, minute, new str[100];
      if(Player[playerid][viplevel] < 1) return ERRORMSG(playerid);
      if(sscanf(params, "dd", time, minute)) return SendClientMessage(playerid, ADMIN_ACTION, "•• Correct syntax is /vtime[ time ] [ minute ]");
      format(str, sizeof(str), "[Success]: You changed the time to: %d hours and %d minutes", time, minute);
      SendClientMessage(playerid, -1, str);
      SetPlayerTime(playerid, time, minute);
      return 1;
}
Hope this helps