It is currently 22 Feb 2019 20:34



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 21 posts ]  Go to page Previous  1, 2
 cerere plugin 
Author Message
Membru, skill +1
Membru, skill +1

Joined: 02 Jan 2017 03:01
Posts: 219
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: DA
SteamID: NU
Fond eXtream: 0
merge acesta dar vreau acel mesaj ce apare sus event vip silver free sa apara in chat sau daca nu sa fie dezactivat

Multumesc anticipat

_________________
Image


13 Jan 2019 17:34
Profile multumesc WWW
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 24 Aug 2011 11:24
Posts: 1952
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Fond eXtream: 0
Code:
#include <amxmodx>

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

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")
   
   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(20 >= ora || ora < 8)
   {
      if(!vip_free)
         color(0, ".v%s.g Eventul.e Free VIP.g a fost activat!", TAG)
      vip_free = true
      server_cmd("amx_default_access ^"t^"")
   }
   else
   {
      if(vip_free)
         color(0, ".v%s.g Eventul.e Free VIP.g a fost dezactivat!", TAG)
      vip_free = false
      server_cmd("amx_default_access ^"z^"")
   }
   server_cmd("amx_reloadadmins")
}

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


13 Jan 2019 18:21
Profile multumesc ICQ YIM
Membru, skill +1
Membru, skill +1

Joined: 02 Jan 2017 03:01
Posts: 219
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: DA
SteamID: NU
Fond eXtream: 0
merge dar daca dai retry ...nu mai merge ...

_________________
Image


13 Jan 2019 19:08
Profile multumesc WWW
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 24 Aug 2011 11:24
Posts: 1952
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Fond eXtream: 0
merge și cu retry


13 Jan 2019 20:47
Profile multumesc ICQ YIM
Membru, skill +1
Membru, skill +1

Joined: 02 Jan 2017 03:01
Posts: 219
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: DA
SteamID: NU
Fond eXtream: 0
mie nu imi merge daca te reconectez pe server...

Code:
#include <amxmodx>

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

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")
   
   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(20 >= ora || ora < 13)
   {
      if(!vip_free)
         color(0, ".v%s.g Eventul.e Free VIP.g a fost activat!", TAG)
      vip_free = true
      server_cmd("amx_default_access ^"t^"")
   }
   else
   {
      if(vip_free)
         color(0, ".v%s.g Eventul.e Free VIP.g a fost dezactivat!", TAG)
      vip_free = false
      server_cmd("amx_default_access ^"z^"")
   }
   server_cmd("amx_reloadadmins")
}

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


MERGE PLUGINUL DAR NU MERGE ORA LA.M PUS INTRE ORA 20 13 EU LA ORA 17 AVEAM VIP SI NU APARE MESAJU VIPUL ESTE ACTIV SAU VIPU SA DEZACTIVAT

_________________
Image


Last edited by HecaTe on 16 Jan 2019 08:17, edited 1 time in total.

fara dublu post



14 Jan 2019 08:38
Profile multumesc WWW
Membru, skill +1
Membru, skill +1

Joined: 02 Jan 2017 03:01
Posts: 219
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: DA
SteamID: NU
Fond eXtream: 0
up.

_________________
Image


16 Jan 2019 17:34
Profile multumesc WWW
Moderator ajutator
Moderator ajutator
User avatar

Joined: 10 May 2013 13:25
Posts: 2921
Location: Gura Humorului
Detinator Steam: Nu
CS Status: Everyone is looking at ur shoes
Reputatie: Moderator ajutator
Fost scripter eXtreamCS
Fond eXtream: 0
cereri-pluginuri/pluginuri-des-cautate-amxmodx-t23259.html#p171940

Nr 6

_________________
„Peste douăzeci de ani vei fi dezamăgit din cauza lucrurilor pe care nu le-ai făcut, nu din cauza celor pe care le-ai făcut.” - Mark Twain
„Asa e si in viata, hotii castiga, prostii care invata pierd.” - Mihai Nemeș

Pluginurile mele publice | Afiseaza codul
Control HE Damage(s)
[Zombie mod] Liderul oamenilor
NO RUSH (MANUAL)
Salvatorul Craciunului
Harry Potter's Magic Wand [0.0.3]
New HE Grenade Effects
Upgrades Menu -> Health/Armor/Damage

Serverele care au achizitonat pluginurile mele: #1 #2

CONTACT: sef_yontu@yahoo.com | skype: cyp_yontu


16 Jan 2019 19:18
Profile multumesc YIM WWW
Membru, skill +1
Membru, skill +1

Joined: 02 Jan 2017 03:01
Posts: 219
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: DA
SteamID: NU
Fond eXtream: 0
am tot incercat dar nu ...merge poate nu fac eu cv corect vreau free vip de la ora 20:00 pana la ora 13:00 vipu este pe flagu t va multumesc anticipat

_________________
Image


20 Jan 2019 00:21
Profile multumesc WWW
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 24 Aug 2011 11:24
Posts: 1952
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Fond eXtream: 0
vezi să ai plg bun pentru. admin.amxx
să ai ora setată corect pe server
Code:
#include <amxmodx>

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

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(20 >= ora || ora <= 13)
   {
      if(!vip_free)
         color(0, ".v%s.g Este ora.e 20:00.g!!Toti jucatori aveti vip free!", TAG)
      vip_free = true
      server_cmd("amx_default_access ^"t^"")
   }
   else
   {
      if(vip_free)
         color(0, ".v%s.g Este ora.e 21:00.g!!Eventul free s-a sfarsit!", TAG)
      vip_free = false
      server_cmd("amx_default_access ^"z^"")
   }
   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, "EVENT VIP 20:00 - 13: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();
         }
      }
   }
}


20 Jan 2019 00:34
Profile multumesc ICQ YIM
Display posts from previous:  Sort by  
Reply to topic   [ 21 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: Baidu [Spider], Boss de Boss, iriminescu0132 and 79 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