It is currently 16 Jan 2019 14:54



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  [ 17 posts ]  Go to page Previous  1, 2
 cerere plugin 
Author Message
Membru, skill +1
Membru, skill +1

Joined: 02 Jan 2017 03:01
Posts: 135
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: 1666
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
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();
      }
   }
}

_________________
Stick with the best & regards Adryyy .


x , daNzeT , Arion , Chaos , Exolent , aNNakin , PoSiTiOn Of PoWeR , ExoTiQ , -UnQ- UHD , ViciousVixen , Arkshine , Askhanar , KronoS eXtream , alkaline , CryWolf , Fuffy , tre3fla , Rap^ , Hades Ownage , xPaw .


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

Joined: 02 Jan 2017 03:01
Posts: 135
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: 1666
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Fond eXtream: 0
merge și cu retry

_________________
Stick with the best & regards Adryyy .


x , daNzeT , Arion , Chaos , Exolent , aNNakin , PoSiTiOn Of PoWeR , ExoTiQ , -UnQ- UHD , ViciousVixen , Arkshine , Askhanar , KronoS eXtream , alkaline , CryWolf , Fuffy , tre3fla , Rap^ , Hades Ownage , xPaw .


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

Joined: 02 Jan 2017 03:01
Posts: 135
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
Display posts from previous:  Sort by  
Reply to topic   [ 17 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: Bing [Bot], KuramaN, Zppp.Mihai94 and 63 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