L 08/05/2013 - 12:01:39: [FUN] Invalid player 21 (not in-game)
L 08/05/2013 - 12:01:39: [AMXX] Displaying debug trace (plugin "amx_respawn.amxx")
L 08/05/2013 - 12:01:39: [AMXX] Run time error 10: native error (native "spawn")
L 08/05/2013 - 12:01:39: [AMXX] [0] 784.attach::respawn (line 46)
Rezolvare?
Eroare server
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
-
- Membru, skill +1
- Posts: 204
- Joined: 05 Feb 2013, 16:17
- Detinator Steam: Da
- Has thanked: 22 times
- Been thanked: 3 times
- oneeightone
- Fost moderator
- Posts: 2547
- Joined: 17 Jul 2009, 19:29
- Detinator Steam: Da
- Reputatie: Fost super moderator
Membru Club eXtreamCS (o luna)
Nick anterior : LiGHTERS
0.3 / 3 - Has thanked: 68 times
- Been thanked: 521 times
Posteaza sursa pluginului amx_respawn.
- Jerpelea
- Membru, skill 0
- Posts: 32
- Joined: 06 Mar 2012, 09:50
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Has thanked: 3 times
- Been thanked: 2 times
- Contact:
Ti-am facut eu un plugin fara buguri.
Daca te-am ajutat dai pe butonul Multumesc.
Sursa:[/b]
Daca te-am ajutat dai pe butonul Multumesc.
Sursa:
Code: Select all
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#define PLUGIN_NAME "Amx_Respawn"
#define PLUGIN_AUTHOR "Jerpelea"
#define PLUGIN_VERSION "1.0"
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
register_concmd("amx_respawn", "Respawn", ADMIN_CVAR,"<Nume> : Ii da respawn jucatorului.")
}
public Revive( id, level, cid )
{
if( !cmd_access( id, level, cid, 2 ) )
return PLUGIN_HANDLED;
new sArgument[ 32 ];
read_argv( 1, sArgument, charsmax( sArgument ) );
new player = cmd_target( id, sArgument, ( CMDTARGET_NO_BOTS | CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF ) );
if( !player )
{
console_print(id, "[Respawn] Acest jucator nu exista.")
return PLUGIN_HANDLED;
}
if( !is_user_alive(player) )
{
console_print(id, "[Respawn] Acst jucator este Mort.")
return PLUGIN_HANDLED;
}
new admin[ 32 ];
get_user_name( id, admin, charsmax( admin ) );
ExecuteHam(Ham_CS_RoundRespawn, player)
ColorChat(0, "!g%s !ti-a dat respawn lui !g%s!t", admin, player)
return PLUGIN_HANDLED;
}
stock ColorChat(const id, const input[], any:...) {
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);
replace_all(msg, 190, "!g", "^4");
replace_all(msg, 190, "!y", "^1");
replace_all(msg, 190, "!t", "^3");
if(id) players[0] = id;
else get_players(players, count, "ch"); {
for(new i = 0; i < count; i++) {
if(is_user_connected(players[i])) {
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}