It is currently 22 Jul 2018 00:17






Reply to topic  [ 3 posts ] 
 Cerere modificare 
Author Message
Online
Membru, skill 0
Membru, skill 0

Joined: 21 Jun 2018 03:41
Posts: 29
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Salut, ma puteri ajuta moificand-umi acest sma va rog froarte frumos.!

vreau sa execute cvar-ul la prima runda el este facut sa-l execute dupa 3 runde jucate.

SMA:

Code:
#include <amxmodx>

new const TAG[] = "[ZM]";

new bool:vip_free, g_msg_saytext;

public plugin_init()
{
   register_plugin("Free VIP Giver", "2.0", "cyby")
   check_time()
   set_task(60.0, "check_time", _, _, _, "b")
   set_task(1.0, "hud_mess", _, _, _, "b")
   
   g_msg_saytext = get_user_msgid("SayText");
}

public check_time()
{
   static preluare_ora[3], ora;
   get_time("%H", preluare_ora, 2)
   ora = str_to_num(preluare_ora)
   if(22 >= ora || ora <= 09)
   {
      if(!vip_free)
         color(0, ".v%s.g Este ora.e 22:00.g!!Toti jucatori aveti GLOANTE INFINITE!", TAG)
      vip_free = true
      server_cmd("zp_human_unlimited_ammo ^"2^"")
   }
   else
   {
      if(vip_free)
         color(0, ".v%s.g Este ora.e 09:00.g!!Eventul GLOANTE INFINITE s-a sfarsit!", TAG)
      vip_free = false
      server_cmd("zp_human_unlimited_ammo ^"1^"")
   }
   server_cmd("amx_reloadadmins")
}

public hud_mess()
{
   if(vip_free)
   {
      set_hudmessage(random(0), random(255), random(0), 0.00, 0.17, 1, 1.0, 1.0, 0.1, 0.1)
      show_hudmessage(0, "GLOANTE INFINITE: 22:00 - 09:00")
   }
}

stock color(const id, const input[], any:...)
{
   new count = 1, players[32]
   static msg[191]
   vformat(msg, 190, input, 3)

   replace_all(msg, 190, ".v", "^4")
   replace_all(msg, 190, ".g", "^1")
   replace_all(msg, 190, ".e", "^3")

   if(id) players[0] = id; else get_players(players, count, "ch")
   {
      for(new i = 0; i < count; i++)
      {
         if(is_user_connected(players[i]))
         {
            message_begin(MSG_ONE_UNRELIABLE, g_msg_saytext, _, players[i])
            write_byte(players[i]);
            write_string(msg);
            message_end();
         }
      }
   }
}


09 Jul 2018 05:06
Profile multumesc WWW
Fost moderator
Fost moderator
User avatar

Joined: 10 Jul 2013 21:26
Posts: 1566
Location: Constanta
Detinator Steam: Da
CS Status: Nope
Detinator server CS: Nope
SteamID: Nope
Reputatie: Fost Moderator
Fond eXtream: 0
Nu ai asa ceva in pluginul asta.

_________________
:information_source: Ofer Servere Counter-Strike 1,6 moca la 10 euro
Image


09 Jul 2018 07:15
Profile multumesc YIM WWW
Membru, skill 0
Membru, skill 0

Joined: 07 Sep 2017 23:33
Posts: 68
Detinator Steam: Da
CS Status: Loading...
Detinator server CS: CS.UDP.RO
SteamID: krampus112
Fond eXtream: 0
poate pui si pluginul de vip .. acolo cred ca este problema :))

_________________
-==-CS.UDP.RO #CLASSIC SERVER-==- [93.119.26.103:27015]


10 Jul 2018 15:03
Profile multumesc WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: Gun, Sorinel and 33 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group