Descărcări de pluginuri și discuții despre acestea.
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
-
SupaHotFire
- Utilizator neserios (tepar)
- Posts: 224
- Joined: 03 Oct 2016, 19:59
- Detinator Steam: Da
- Reputatie: Utilizator neserios ( tepar )
- Fond eXtream: 0
15 Dec 2016, 14:57
Descarcare:[/u]
ZippyShare | GirlShare | MEGA
- | Afiseaza codul
#include <sourcemod>
#include <sdktools>
#include <emitsoundany>
public Plugin:myinfo =
{
name = "CSGO COUNTDOWW",
author = "shoc^",
description = "",
version = "1.0",
url = "www.extreamcs.com"
};
public OnPluginStart()
{
HookEvent("round_start", OnRoundStart);
}
public OnMapStart()
{
AddFileToDownloadsTable("sound/misc/countdown/1.mp3");
AddFileToDownloadsTable("sound/misc/countdown/2.mp3");
AddFileToDownloadsTable("sound/misc/countdown/3.mp3");
AddFileToDownloadsTable("sound/misc/countdown/4.mp3");
AddFileToDownloadsTable("sound/misc/countdown/5.mp3");
PrecacheSoundAny("misc/countdown/1.mp3");
PrecacheSoundAny("misc/countdown/2.mp3");
PrecacheSoundAny("misc/countdown/3.mp3");
PrecacheSoundAny("misc/countdown/4.mp3");
PrecacheSoundAny("misc/countdown/5.mp3");
}
public OnRoundStart(Handle:event, const String:name[], bool:dontBroadcast)
{
EmitSoundToAllAny("misc/countdown/5.mp3");
CreateTimer(1.0, Timer_4);
CreateTimer(2.0, Timer_3);
CreateTimer(3.0, Timer_2);
CreateTimer(4.0, Timer_1);
CreateTimer(5.0, Timer_0);
PrintHintTextToAll("<font color='#ff0000'><b>5 Second(s) remaning</b></font>");
}
public Action:Timer_4(Handle:Timer)
{
EmitSoundToAllAny("misc/countdown/4.mp3");
PrintHintTextToAll("<font color='#00ffde'><b>4 Second(s) remaning</b></font>");
}
public Action:Timer_3(Handle:Timer)
{
EmitSoundToAllAny("misc/countdown/3.mp3");
PrintHintTextToAll("<font color='#00ff00'><b>3 Second(s) remaning</b></font>");
}
public Action:Timer_2(Handle:Timer)
{
EmitSoundToAllAny("misc/countdown/2.mp3");
PrintHintTextToAll("<font color='#fffc00'><b>2 Second(s) remaning</b></font>");
}
public Action:Timer_1(Handle:Timer)
{
EmitSoundToAllAny("misc/countdown/1.mp3");
PrintHintTextToAll("<font color='#ff9500'><b>1 Second(s) remaning</b></font>");
}
public Action:Timer_0(Handle:Timer)
{
PrintHintTextToAll("<font color='#ff0000'><b>GO GO GO!!!</b></font>")
return Plugin_Stop;
}
Nume: COUNTDOWN
Autor: shoc^
Versiune: 1.0
Descriere:
Un simplu plugin timer + sunete , acest plugin l-am folosit si pe serveru meu de minigames acu ceva timp in urma.
Comenzi: nu exista.
Cvar-uri: nu exista.
Video:
[video]https://youtu.be/8zB26tIqdLI[/video]
Instalare:
1. Fisierul countdown.smx se adauga in addons/sourcemod/scripting
2. Fisierul countdown.sp se adauga in addons/sourcemod/plugins
-
Users browsing this forum: No registered users and 2 guests