Categoria cu cereri de pluginuri si nu numai.
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
-
Gabriel963
- Fost moderator
- Posts: 1658
- Joined: 03 Feb 2013, 13:03
- Detinator Steam: Da
- CS Status: Retried
- Reputatie: Membru Club eXtreamCS (1 luna)
Fost Moderator
- Location: Bucharest, Romania.
- Has thanked: 20 times
- Been thanked: 85 times
30 Apr 2013, 19:16
As vrea si eu un plugin de respawn pentru Deathrun fara buguri..
-
cyby
- Scripter eXtreamCS
- Posts: 1777
- Joined: 16 Jul 2011, 21:46
- Detinator Steam: Da
- Detinator server CS: Da
- Reputatie: Scripter eXtreamCS
Fost Moderator ajutator
- Has thanked: 146 times
- Been thanked: 396 times
30 Apr 2013, 20:16
- | Afiseaza codul
#include <amxmodx>
//#include <fakemeta>
#include <hamsandwich>
new conectare[33];
new countdown[33];
stock const g_BaraNume[] = "BarTime"
public plugin_init()
{
register_plugin("Simple Respawn", "1.0", "cyby")
RegisterHam(Ham_Killed, "player", "player_killed")
}
public client_putinserver(id)
{
conectare[id] = 10
countdown[id] = 0
set_task(1.0, "revive_player_first", id)
}
public client_disconnect(id)
{
conectare[id] = 0
countdown[id] = 0
remove_task(id)
}
public revive_player_first(id)
{
if(is_user_connected(id) && !is_user_alive(id))
{
set_hudmessage(127, 255, 255, 0.28, -1.0, 0, 6.0, 1.0)
if(conectare[id] > 1)
{
conectare[id]--
show_hudmessage(id, "Vei fi respawnat in %d secunde.", conectare[id])
set_task(1.0, "revive_player_first", id)
}
else if(conectare[id] == 1)
{
show_hudmessage(id, "Vei fi respawnat ACUM.")
set_task(1.0, "respawn", id)
}
}
}
public respawn(id)
{
if(is_user_connected(id) && !is_user_alive(id))
{
ExecuteHamB(Ham_CS_RoundRespawn, id)
}
}
public player_killed(victima, atacator, shouldgib)
{
if(is_user_connected(victima) && !is_user_alive(victima))
{
// by VEN
message_begin(MSG_ONE, get_user_msgid(g_BaraNume), _, victima)
write_short(3)
message_end()
countdown[victima] = 3
revive_player(victima)
}
}
public revive_player(victima)
{
if(is_user_connected(victima) && !is_user_alive(victima))
{
set_hudmessage(127, 255, 255, 0.28, -1.0, 0, 6.0, 1.0)
if(countdown[victima] > 1)
{
countdown[victima]--
show_hudmessage(victima, "Vei fi respawnat in %d secunde.", countdown[victima])
set_task(1.0, "revive_player", victima)
}
else if(countdown[victima] == 1)
{
countdown[victima]--
show_hudmessage(victima, "Vei fi respawnat ACUM.")
set_task(1.0, "revive_player", victima)
}
else if(countdown[victima] < 1)
{
respawn(victima)
}
}
}
93.114.82.17:27015 - Monster Invasion CO-OP Mod
-
snickers
- Membru, skill +3
- Posts: 1076
- Joined: 12 Feb 2010, 13:42
- Detinator Steam: Da
- Detinator server CS: Nu
- Reputatie: Membru Club eXtreamCS (o luna)
Moderator ajutator
Nume anterior: MeRRy
- Location: New York
- Has thanked: 29 times
- Been thanked: 148 times
30 Apr 2013, 20:47
Kana kana kana kana Jambe
Kana kana kana kana Jambe
Kana kana kana kana Jambe
Kana kana kana kana Jambe
-
Gabriel963
- Fost moderator
- Posts: 1658
- Joined: 03 Feb 2013, 13:03
- Detinator Steam: Da
- CS Status: Retried
- Reputatie: Membru Club eXtreamCS (1 luna)
Fost Moderator
- Location: Bucharest, Romania.
- Has thanked: 20 times
- Been thanked: 85 times
03 May 2013, 16:43
cyby wrote:- | Afiseaza codul
#include <amxmodx>
//#include <fakemeta>
#include <hamsandwich>
new conectare[33];
new countdown[33];
stock const g_BaraNume[] = "BarTime"
public plugin_init()
{
register_plugin("Simple Respawn", "1.0", "cyby")
RegisterHam(Ham_Killed, "player", "player_killed")
}
public client_putinserver(id)
{
conectare[id] = 10
countdown[id] = 0
set_task(1.0, "revive_player_first", id)
}
public client_disconnect(id)
{
conectare[id] = 0
countdown[id] = 0
remove_task(id)
}
public revive_player_first(id)
{
if(is_user_connected(id) && !is_user_alive(id))
{
set_hudmessage(127, 255, 255, 0.28, -1.0, 0, 6.0, 1.0)
if(conectare[id] > 1)
{
conectare[id]--
show_hudmessage(id, "Vei fi respawnat in %d secunde.", conectare[id])
set_task(1.0, "revive_player_first", id)
}
else if(conectare[id] == 1)
{
show_hudmessage(id, "Vei fi respawnat ACUM.")
set_task(1.0, "respawn", id)
}
}
}
public respawn(id)
{
if(is_user_connected(id) && !is_user_alive(id))
{
ExecuteHamB(Ham_CS_RoundRespawn, id)
}
}
public player_killed(victima, atacator, shouldgib)
{
if(is_user_connected(victima) && !is_user_alive(victima))
{
// by VEN
message_begin(MSG_ONE, get_user_msgid(g_BaraNume), _, victima)
write_short(3)
message_end()
countdown[victima] = 3
revive_player(victima)
}
}
public revive_player(victima)
{
if(is_user_connected(victima) && !is_user_alive(victima))
{
set_hudmessage(127, 255, 255, 0.28, -1.0, 0, 6.0, 1.0)
if(countdown[victima] > 1)
{
countdown[victima]--
show_hudmessage(victima, "Vei fi respawnat in %d secunde.", countdown[victima])
set_task(1.0, "revive_player", victima)
}
else if(countdown[victima] == 1)
{
countdown[victima]--
show_hudmessage(victima, "Vei fi respawnat ACUM.")
set_task(1.0, "revive_player", victima)
}
else if(countdown[victima] < 1)
{
respawn(victima)
}
}
}
cyby poti modifica sa fie respawnu instant nu 3 secunda si cand te baga pe server sa te bage direct fara sa astepti 5 6 secunde:).
Si sa scoti loadingbar-ul.
-
cyby
- Scripter eXtreamCS
- Posts: 1777
- Joined: 16 Jul 2011, 21:46
- Detinator Steam: Da
- Detinator server CS: Da
- Reputatie: Scripter eXtreamCS
Fost Moderator ajutator
- Has thanked: 146 times
- Been thanked: 396 times
03 May 2013, 17:14
Am vrut sa-l fac mai unicat dar... poftim cum vrei tu :)
- | Afiseaza codul
#include <amxmodx>
#include <hamsandwich>
new bool:g_firstspawn[33];
public plugin_init()
{
register_plugin("Simple Respawn", "1.0", "cyby")
RegisterHam(Ham_Killed, "player", "player_killed")
}
public client_putinserver(id)
{
g_firstspawn[id] = true
set_task(1.0, "respawn", id, _, _,"b")
}
public client_disconnect(id)
{
g_firstspawn[id] = false
remove_task(id)
}
public respawn(id)
{
if(is_user_connected(id) && !is_user_alive(id) && get_user_team(id) == 2)
{
if(g_firstspawn[id])
{
g_firstspawn[id] = false
remove_task(id)
}
ExecuteHamB(Ham_CS_RoundRespawn, id)
}
}
public player_killed(victima, atacator, shouldgib)
{
if(is_user_connected(victima) && !is_user_alive(victima))
{
set_task(0.2, "respawn", victima)
}
}
93.114.82.17:27015 - Monster Invasion CO-OP Mod
-
Gabriel963
- Fost moderator
- Posts: 1658
- Joined: 03 Feb 2013, 13:03
- Detinator Steam: Da
- CS Status: Retried
- Reputatie: Membru Club eXtreamCS (1 luna)
Fost Moderator
- Location: Bucharest, Romania.
- Has thanked: 20 times
- Been thanked: 85 times
-
Users browsing this forum: Yandex [Bot] and 35 guests