Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
{Problema] Respawn Plugin
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
Author
Message
564
DANNY*
[Mentally Stable]
Status: Offline
(since 26-04-2018 11:28)
Joined: 08 Feb 2017
Posts: 161
,
Topics: 28
Location:
Romania
Reputation:
26.7
Votes
: 1
Posted: 24-04-2018, 21:30:28
| Translate post to:
... (
Click for more languages
)
»Nume*: Respawn
»Descriere problema*: Am acest plugin care activeaza respawn-ul pe server prin cvarul sv_respawn! Totul merge perfect, doar ca imi umple log-uri de erori. Dupa ce am activat debug mod mi-a dat asta:
Code:
L 04/24/2018 - 22:14:31: [AMXX] Run time error 10: native error (native "spawn")
L 04/24/2018 - 22:14:31: [AMXX] [0] 0.sma::player_spawn (line 71)
»Poze/Sma:
Spoiler:
#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
public plugin_init(){
register_plugin("Respawn Forever", "1.0", "DANNY*")
register_event("DeathMsg","on_Death","a")
register_cvar("sv_respawn", "1")
register_clcmd("say /respawn","on_Chat")
register_clcmd("say_team /respawn","on_Chat")
set_task(20.0,"RespawnMessage",0,"",0,"b",0)
}
public RespawnMessage(){
if ( get_cvar_num("sv_respawn") ){
client_print(0, print_chat, "[AMXX]*** Daca esti mort tasteaza in chat /respawn pentru a primi respawn !")
}
}
public on_Chat(id)
{
if ( !get_cvar_num("sv_respawn") )
{
client_print(id, print_chat, "* Respawn plugin disabled")
return PLUGIN_CONTINUE
}
new szSaid[32]
read_args(szSaid, 31)
if (equali(szSaid,"^"/respawn^"") || equali(szSaid,"^"respawn^""))
{
spawn_func(id)
}
return PLUGIN_CONTINUE;
}
public spawn_func(id)
{
new parm[1]
parm[0]=id
/* Spawn the player twice to avoid the HL engine bug */
set_task(0.7,"player_spawn",72,parm,1)
set_task(0.9,"player_spawn",72,parm,1)
}
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_spawn(parm[1])
{
spawn(parm[0])
}
0
0
Back to top
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
The time now is 21-02-2025, 19:07:08
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details