User
Pass
2FA
 
 

[rezolvat]Cerere Plugin

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support
Author Message668
XFTP

[Mentally Stable]



Status: Offline
(since 24-02-2015 21:40)
Joined: 03 Feb 2015
Posts: 24, Topics: 5
Location: Romania

Reputation: 31.8
Votes: 1

Post Posted: 15-02-2015, 22:13:13 | Translate post to: ... (Click for more languages)

Salut As dori si eu un plugin pentru sv de respawn sa fie o comanda de genul amx_tmap <map> si sa inceapa o numaratoare inversa de la 30 sec la 0 sau 60 la 0 si cand ajunge la 0 sa se schimbe mapa in mapa care am selectato cu comanda pentru ca la respawn nu avem last round ...
0 0
  
Back to top
View user's profile Send private message
-P!C@-

[Simply Normal]



Status: Offline
(since 21-04-2022 19:07)
Joined: 28 May 2012
Posts: 21086, Topics: 1601
Location: Constanta

Reputation: 1870.3
Votes: 781

Post Posted: 16-02-2015, 10:12:49 | Translate post to: ... (Click for more languages)

Mai simplu e ca dupa ce dai vot sa schimbi direct, nu trebuie sa iti bagi plugin care sa inceapa o numerotare. De altfel poti lasa sa se termine timpul pe harta respectiva si intra harta de la vot. Nu incarca serverul cu multe pluginuri inutile..



0 0
  
Back to top
View user's profile Send private message
lemonEZAH

[Licensed to kill]



Status: Offline
(since 04-11-2019 15:30)
Joined: 28 Dec 2013
Posts: 7058, Topics: 351
Location: England

Reputation: 99.3
Votes: 483

Post Posted: 20-02-2015, 19:50:33 | Translate post to: ... (Click for more languages)

Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Change map countdown"
#define VERSION "1.0"
#define AUTHOR "author"

new g_iCountDown, g_iTime, g_pcvar_schimb

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   
   register_concmd("amx_tmap", "task_CountDown", ADMIN_MAP, "<mapname>")
}

public plugin_precache()
{
   g_pcvar_schimb = register_cvar("cvar_schimbareharta", "60") //Timp pana se schimba harta dupa ce ai scris comanda in consola
   g_iTime = clamp(get_pcvar_num(g_pcvar_schimb), 30, 300)
}

public task_CountDown(id, level, cid)
{   
   if (!cmd_access(id, level, cid, 2))
      return PLUGIN_HANDLED
   
   g_iCountDown = (g_iTime-1)
   
   new arg[32]
   new arglen = read_argv(1, arg, 31)
   
   if (!is_map_valid(arg))
   {
      return PLUGIN_HANDLED
   }
   
   g_iCountDown--
   new mins = g_iCountDown/60
   new secs = g_iCountDown%60
   if (g_iCountDown>=0)
   {
      set_hudmessage(255, 215, 0, -1.0, 0.0, 0, 0.1, 0.9, 0.1, 0.2, 3)
      show_hudmessage(0, ".:: Timp pana se schimba harta - %d:%s%d ::.", mins, (secs < 10 ? "0" : ""), secs)
   }
   
   if (g_iCountDown == 0)
   {
      set_task(2.0, "changemap", 0, arg, arglen + 1)
   }
   
   return PLUGIN_HANDLED
}

public changemap(map[])
{
   server_cmd("changelevel %s", map)
}

0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by TwisTer, 16 March 2015 14:39



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support  


The time now is 30-07-2025, 08:11:24
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password