Ebbe bele lehet írni hol éledjen ujra a játékos?
/* AMXX Mod script.
*
* (c) Copyright 2004, dk�sz�t�: Geesu
* Ez a f�jl csak t�j�koztat�! ( Nincs garancia ).
*
* V�ltoz�snapl�
* 1.1:
* Hozz�adva a /respawn parancs, ha a j�t�kos halott.
* Hozz�adva egy plugin cvar.
* 1.0:
* Pisztoly ad a j�t�kosoknak, amikor �jra�lednek.
* sv_checkpistols cvar hozz�adva, ha a plugint scoutknivez_ vagy ka_ mapokon akarj�k haszn�lni.
* sv_respart cvar hozz�adva, hogy ki/be lehessen a plugint kapcsolni.
*/
new const VERZIO[] = "1.1"
#include <amxmodx>
#include <fun>
#include <cstrike>
#define DISABLE_CS 0
// team ids
#define UNASSIGNED 0
#define TS 1
#define CTS 2
#define AUTO_TEAM 5
new bool:g_PistolsDisabled = false
public plugin_init(){
register_plugin("Respawn Forever", VERZIO, "Pimp Daddy (OoTOAoO)")
register_event("DeathMsg","on_Death","a")
register_cvar("sv_checkpistols", "1")
register_cvar("sv_respawn", "1")
register_cvar("respawn_forever_version", VERZIO, FCVAR_SERVER)
register_clcmd("say","on_Chat")
register_clcmd("say_team","on_Chat")
}
public on_Chat(id)
{
if ( !get_cvar_num("sv_respawn") )
{
client_print(id, print_chat, "* Respawn plugin kikapcsolva!")
return PLUGIN_CONTINUE
}
new szSaid[32]
read_args(szSaid, 31)
if (equali(szSaid,"^"/respawn^"") || equali(szSaid,"^"respawn^"") || equali(szSaid,"^"/ujra^""))
{
spawn_func(id)
}
return PLUGIN_HANDLED;
}
public check_pistols()
{
/* Determine if we should give players a pistol or not */
if ( get_cvar_num("sv_checkpistols") )
{
set_task(1.0, "check_pistols")
new mapname[32]
get_mapname(mapname,31)
if ( containi(mapname,"ka_")!=-1 || containi(mapname,"scoutzknivez")!=-1 )
g_PistolsDisabled = true
}
}
public spawn_func(id)
{
new parm[1]
parm[0]=id
/* Spawn the player twice to avoid the HL engine bug */
set_task(0.5,"player_spawn",72,parm,1)
set_task(0.7,"player_spawn",72,parm,1)
set_task(0.9, "hud", id)
/* Then give them a suit and a knife */
set_task(0.9,"player_giveitems",72,parm,1)
}
public hud( id )
{
set_hudmessage(0, 255, 255, -1.0, 0.67, 0, 6.0, 6.0)
show_hudmessage(id, "Sikeresen Ujraledtel!")
}
public on_Death()
{
if ( !get_cvar_num("sv_respawn") )
return PLUGIN_CONTINUE
new victim_id = read_data(2)
spawn_func( victim_id )
return PLUGIN_CONTINUE
}
public player_giveitems(parm[1])
{
new id = parm[0]
give_item(id, "item_suit")
give_item(id, "weapon_knife")
give_item(id, "weapon_flashbang")
return PLUGIN_CONTINUE
}
public player_spawn(parm[1])
{
spawn(parm[0])
}
Ezek az ujra éledési helyek!
Kód:
-2198 -538 179 8 -34 0 0 -3 -34 0
-1675 -298 179 6 -30 0 0 -2 -30 0
-876 -997 213 10 45 0 0 -3 45 0
341 -869 51 5 134 0 0 -2 134 0
-492 -229 51 5 -69 0 0 -2 -69 0
-723 487 51 4 -35 0 0 -1 -35 0
363 457 51 5 -126 0 0 -2 -126 0
742 -341 51 3 131 0 0 -1 131 0
434 1754 51 4 -96 0 0 -1 -96 0
281 2729 147 6 -34 0 0 -2 -34 0
1050 2973 179 6 -58 0 0 -2 -58 0
1302 2463 102 13 -87 0 0 -4 -87 0
1766 1911 108 7 142 0 0 -2 142 0
1659 346 115 6 108 0 0 -2 108 0
1550 57 -137 1 125 0 0 0 125 0
743 1176 51 5 -116 0 0 -2 -116 0
744 558 51 9 -114 0 0 -3 -114 0
-1185 1263 99 16 -3 0 0 -5 -3 0
-2134 1179 83 5 25 0 0 -2 25 0
-1635 1629 51 7 116 0 0 -2 116 0
-2031 3091 83 3 -77 0 0 -1 -77 0
-1416 2825 54 6 -115 0 0 -2 -115 0
-1238 2077 51 5 55 0 0 -2 55 0
-804 2643 -22 4 -53 0 0 -1 -53 0
-281 2466 -56 5 -125 0 0 -2 -125 0
-491 1712 -76 7 52 0 0 -2 52 0
-105 2280 -76 6 -49 0 0 -2 -49 0
481 2495 -76 3 -126 0 0 -1 -126 0
691 2372 51 9 -37 0 0 -3 -37 0
1106 227 51 1 81 0 0 0 81 0
-1000 -997 204 11 137 0 0 -4 137 0
-1465 91 51 7 130 0 0 -2 130 0
-1924 609 83 3 -53 0 0 -1 -53 0
-268 -572 51 0 11 0 0 0 11 0
-778 1300 -60 7 41 0 0 -2 41 0
-1767 987 83 9 43 0 0 -3 43 0
-983 -286 205 9 -137 0 0 -3 -137 0
-23 1576 51 9 -135 0 0 -3 -135 0
1128 2350 147 11 83 0 0 -4 83 0
-2086 2408 51 8 -39 0 0 -3 -39 0