how do i make a /vweather for vips
#2

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
Reply


Messages In This Thread
how do i make a /vweather for vips - by CrackMatic - 12.05.2013, 03:14
Re: how do i make a /vweather for vips - by .FuneraL. - 12.05.2013, 03:31

Forum Jump:


Users browsing this thread: 1 Guest(s)