Witam czy ktos by mi mógł ten plugin przerobic aby bylo odliczanie do jego wlonczenia po lewej stronie po czasie wlancza sie plugin czyli friendly fire
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <hamsandwich>
#include <amxmisc>
#include <fun>
#include <cstrike>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Administrator"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1);
register_clcmd("say /bitwa", "ff")
}
public ff(id)
{
if(cs_get_user_team(id) == CS_TEAM_CT)
{
server_cmd("amx_cvar mp_friendlyfire 1")
client_print(0,print_center,"KILLDAY !!!")
}
if(cs_get_user_team(id) == CS_TEAM_CT)
{
get_user_godmode(id)
}
}
public fwHamPlayerSpawnPost(id){
server_cmd("amx_cvar mp_friendlyfire 0")
}
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
wlanczanie ff po 30 sekwlanczanie ff po 30 sek
Started By
zielo
, 02.04.2011 14:10
5 replies to this topic
#1
Posted 02.04.2011 14:10
#2
Posted 02.04.2011 15:29
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
new Odliczanie[33];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /bitwa", "bitwa")
}
public bitwa(id)
{
Odliczanie[id] = 30
if(task_exists(id + 3431))
{
remove_task(id + 3431);
}
set_task(1.0, "Koniec", id + 3431, _, _, "b");
return PLUGIN_CONTINUE;
}
public Koniec(task_id)
{
new id = task_id - 3431
set_hudmessage(0, 255, 0, 0.03, 0.50, 2, 0.02, 1.0, 0.01)
show_hudmessage(id, "%d sek. do FF", Odliczanie[id])
Odliczanie[id] -= 1
if(Odliczanie[id] <= 0)
{
if(task_exists(task_id))
{
remove_task(task_id)
}
server_cmd("amx_cvar mp_friendlyfire 0");
}
}
#3
Posted 02.04.2011 15:35
jak juz to
#include <amxmodx> #include <amxmisc> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "author" #define TASK_ID 666 new Odliczanie; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say /bitwa", "bitwa") } public bitwa(id) { Odliczanie = 30 remove_task(TASK_ID); set_task(1.0, "Koniec", TASK_ID, _, _, "b"); server_cmd("amx_cvar mp_friendlyfire 1"); return PLUGIN_CONTINUE; } public Koniec() { set_hudmessage(0, 255, 0, 0.03, 0.50, 2, 0.02, 1.0, 0.01) show_hudmessage(0, "%d sek. do FF", Odliczanie) if(Odliczanie-- <= 0) { remove_task(TASK_ID) server_cmd("amx_cvar mp_friendlyfire 0"); } }ale oba plugi srednio maja sens napisz co chcialbys aby bylo w pluginie
#4
Posted 02.04.2011 15:48
ale oba plugi srednio maja sens
Dokładnie, wystarczy spammer, który będzie spammował komendą i będą niezłe kwiatki
#5
Posted 02.04.2011 17:08
a mozecie dopisac mi te wasze do mojego pluga
Dodano 02 kwiecień 2011 - 17:21:
dodajcie to do mojego pluga
Dodano 02 kwiecień 2011 - 19:11:
a potraficie tak zrobic zeby ct bylo nie smiertelne
Dodano 02 kwiecień 2011 - 17:21:
dodajcie to do mojego pluga
Dodano 02 kwiecień 2011 - 19:11:
a potraficie tak zrobic zeby ct bylo nie smiertelne
#6
Posted 03.04.2011 11:44
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users