Cerere modificare plugin "say restart" [Rezolvat!]

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
User avatar
SeNNN[Z]aTioN
Membru, skill 0
Membru, skill 0
Posts: 76
Joined: 02 Oct 2012, 19:40
Detinator Steam: Da
Detinator server CS: HNS.FPS1000.RO
SteamID: csrobeee
Has thanked: 9 times
Contact:

26 Aug 2013, 09:18

Am si eu urmatorul plugin si as vrea sa fie ceva in genul asta cand voi da restart:
As vrea sa stiu ce pun acolo sa imi apara numele, nextmap, currentmap ...
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <engine>

#define ACCESS ADMIN_SLAY

new Float:g_LastRestart[33]

public plugin_init() 
{
	register_plugin("Restart","2.0","Alka")
	register_clcmd("say /restart","say_restart",ACCESS)
}

public say_restart(id) 
{
	if(!(get_user_flags(id) & ACCESS))
		return
    
	new Float:Time = halflife_time()
	if(Time - g_LastRestart[id] < 10.0)
		return
    
	g_LastRestart[id] = Time
 
	server_cmd("sv_restart 1")
	client_print(0, print_chat, "Adminul: .... a dat restart !!!")
	client_print(0, print_chat, "Harta Curenta: ...")
	client_print(0, print_chat, "Harta Urmatoare: ...")
	client_print(0, print_chat, "Live ! Live ! Live ! GL & HF !")
	client_print(0, print_chat, "Live ! Live ! Live ! GL & HF !")
	client_print(0, print_chat, "Live ! Live ! Live ! GL & HF !")
	client_print(0, print_chat, "Live ! Live ! Live ! GL & HF !")
	client_print(0, print_chat, "Live ! Live ! Live ! GL & HF !")
    
	set_hudmessage(255,150, 0, 0.04, 0.47, 0, 6.0, 7.0) 
	show_hudmessage(0, "Live ! Live ! Live ! GL & HF !" )
	show_hudmessage(0, "Live ! Live ! Live ! GL & HF !" )
	show_hudmessage(0, "Live ! Live ! Live ! GL & HF !" )
	show_hudmessage(0, "Live ! Live ! Live ! GL & HF !" )
	show_hudmessage(0, "Live ! Live ! Live ! GL & HF !" )
}
Connect HNS.FPS1000.RO - [ 500 GRAVITY, VIP MOD ]

Manger cu doar 5€ Cosmote/Orange
Admine FREE
VIP pe redirecte

Contact: [email protected]
RoyalServer
munir
Membru eXtream
Membru eXtream
Posts: 3193
Joined: 30 Aug 2012, 22:16
Detinator Steam: Da
CS Status: Fost scripter
Detinator server CS: Nu
SteamID: -
Reputatie: Fost super moderator
Restrictie schimbare nume
Nume anterior: falseq, cruyff
Location: Bucuresti
Has thanked: 342 times
Been thanked: 571 times
Contact:

26 Aug 2013, 09:31

Explica ce vrei defapt.. cum vrei sa apara, ce culoare (daca ai preferinte).. etc.
Retras
User avatar
alkaline
Fost moderator
Fost moderator
Posts: 734
Joined: 18 Jul 2012, 09:42
Detinator Steam: Da
Reputatie: Fost Moderator ajutator
Nume anterior: lucylucy
Fond eXtream: 0
Location: Caras-Severin
Has thanked: 5 times
Been thanked: 296 times

26 Aug 2013, 09:57

try
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <engine>

#define ACCESS ADMIN_SLAY

new Float:g_LastRestart[33]

public plugin_init() 
{
	register_plugin("Restart","2.0","Alka")
	register_clcmd("say /restart","say_restart",ACCESS)
}

public say_restart(id) 
{
	if(!(get_user_flags(id) & ACCESS))
		return
    
	new Float:Time = halflife_time()
	if(Time - g_LastRestart[id] < 10.0)
		return
    
	g_LastRestart[id] = Time
 
	server_cmd("sv_restart 1")
	client_print(0, print_chat, "Adminul: .... a dat restart !!!")
	client_print(0, print_chat, "Harta Curenta: ...")
	client_print(0, print_chat, "Harta Urmatoare: ...")
	client_print(0, print_chat, "Live ! Live ! Live ! GL & HF !")
	client_print(0, print_chat, "Live ! Live ! Live ! GL & HF !")
	client_print(0, print_chat, "Live ! Live ! Live ! GL & HF !")
	client_print(0, print_chat, "Live ! Live ! Live ! GL & HF !")
	client_print(0, print_chat, "Live ! Live ! Live ! GL & HF !")

	new name[32];
	get_user_name(id, name, 31);
	new cumap[32], nextmap[32]
	get_cvar_string("amx_nextmap",nextmap,31)
	get_mapname(cumap,31)   
	set_hudmessage(255,150, 0, 0.04, 0.47, 0, 6.0, 7.0) 
	show_hudmessage(0, "Live ! Live ! Live ! GL & HF !" )
	show_hudmessage(0, "Live ! Live ! Live ! GL & HF !" )
	show_hudmessage(0, "Live ! Live ! Live ! GL & HF !" )
	show_hudmessage(0, "Live ! Live ! Live ! GL & HF !" )
	show_hudmessage(0, "Live ! Live ! Live ! GL & HF !" )
	show_hudmessage(0, "Admin %s a dat restart" )
	show_hudmessage(0, "Current Map : %s | Next Map : %s", cumap, nextmap  )
}
User avatar
-Turbo-
Membru, skill +4
Membru, skill +4
Posts: 1664
Joined: 11 Nov 2012, 01:28
Detinator Steam: Da
CS Status: Bored !
Detinator server CS: Da
SteamID: kingforbidden
Reputatie: Utilizator neserios ( tepar )
Restrictie moderator
Ban scos ( achitat )
Nume anterior: Turbo19973
Location: Botosani
Has thanked: 49 times
Been thanked: 212 times

26 Aug 2013, 11:20

| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <engine>

#define ACCESS ADMIN_SLAY

new Float:g_LastRestart[33]

public plugin_init() 
{
	register_plugin("Restart","2.0","Alka")
	register_clcmd("say /restart","say_restart",ACCESS)
}

public say_restart(id) 
{
	if(!(get_user_flags(id) & ACCESS))
		return
    
	new Float:Time = halflife_time()
	if(Time - g_LastRestart[id] < 10.0)
		return
    
	g_LastRestart[id] = Time
 	new name[32];
	get_user_name(id, name, 31);
	new map[32], nextmap[32]
	get_cvar_string("amx_nextmap",nextmap,31)
	get_mapname(map,31) 

	server_cmd("sv_restart 1")
	client_print(0, print_chat, "Adminul: %s a dat restart !!!", name)
	client_print(0, print_chat, "Harta Curenta: %s", map)
	client_print(0, print_chat, "Harta Urmatoare: %s", nextmap)
	client_print(0, print_chat, "Live ! Live ! Live ! GL & HF !")
	client_print(0, print_chat, "Live ! Live ! Live ! GL & HF !")
	client_print(0, print_chat, "Live ! Live ! Live ! GL & HF !")
	client_print(0, print_chat, "Live ! Live ! Live ! GL & HF !")
	client_print(0, print_chat, "Live ! Live ! Live ! GL & HF !")
    
	set_hudmessage(255,150, 0, 0.04, 0.47, 0, 6.0, 7.0) 
	show_hudmessage(0, "Live ! Live ! Live ! GL & HF !" )
	show_hudmessage(0, "Live ! Live ! Live ! GL & HF !" )
	show_hudmessage(0, "Live ! Live ! Live ! GL & HF !" )
	show_hudmessage(0, "Live ! Live ! Live ! GL & HF !" )
	show_hudmessage(0, "Live ! Live ! Live ! GL & HF !" )
}
User avatar
SeNNN[Z]aTioN
Membru, skill 0
Membru, skill 0
Posts: 76
Joined: 02 Oct 2012, 19:40
Detinator Steam: Da
Detinator server CS: HNS.FPS1000.RO
SteamID: csrobeee
Has thanked: 9 times
Contact:

26 Aug 2013, 11:45

Rezolvat.
Connect HNS.FPS1000.RO - [ 500 GRAVITY, VIP MOD ]

Manger cu doar 5€ Cosmote/Orange
Admine FREE
VIP pe redirecte

Contact: [email protected]
User avatar
KrAiD.
Fost moderator
Fost moderator
Posts: 866
Joined: 15 Jun 2013, 12:14
Detinator Steam: Da
CS Status: Cat de cat activ :D
Detinator server CS: Nu
Reputatie: Fost Moderator ajutator
0.7 / 3
Has thanked: 14 times
Been thanked: 131 times
Contact:

01 Sep 2013, 01:50

Rezolvat .!
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 31 guests