[Cerere]Plugin Respawn automat.

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
User avatar
paraParaschiv
Membru, skill +1
Membru, skill +1
Posts: 137
Joined: 12 Jun 2019, 18:06
Detinator Steam: Da
CS Status: PuNcT
Detinator server CS: « ESL.CSPOWER.RO »
SteamID: Stai LIN !
Fond eXtream: 0
Has thanked: 3 times
Been thanked: 2 times

01 Mar 2020, 15:14

Plugin Cerut:respawn automat.
Descriere (adica ce face el mai exact):cel ca csdm,dar se poate sa fie cand il bag pe sv sa imi dea direct respawn,sau daca nu sa imi dati tot folderu csdm si sa imi explicati cum il bag
Serverul impune conditii strict HLDS/REHLDS?:rehlds
Ai cautat pluginul?(daca da, precizeaza cum):da dar nu stiu saa il bag
Necesita mod special?:nu
ESL.CSPOWER.RO
RoyalServer
User avatar
mariusexeqt
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 199
Joined: 01 Jan 2020, 22:55
Detinator Steam: Da
Fond eXtream: 0
Has thanked: 4 times
Been thanked: 4 times
Contact:

01 Mar 2020, 18:27

| Afiseaza codul
new const VERSION[] =   "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


public plugin_init(){

register_plugin("Respawn Forever", VERSION, "Pimp Daddy (OoTOAoO)")
register_event("DeathMsg","on_Death","a")
register_cvar("sv_respawn", "0")
register_cvar("respawn_forever_version", VERSION, 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 disabled")
return PLUGIN_CONTINUE;
}

new szSaid[32]
read_args(szSaid, 31)

if (equali(szSaid,"^"/respawn^"") || equali(szSaid,"^"respawn^""))
{
spawn_func(id)
}
}

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)

/* Then give them a suit and a knife */
set_task(0.9,"player_giveitems",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_giveitems(parm[1])
{
new id = parm[0]

give_item(id, "item_suit")
give_item(id, "weapon_knife")
return PLUGIN_CONTINUE
}


public player_spawn(parm[1])
{
spawn(parm[0])
}
cvar " sv_respawn " 0 =off
cvar " sv_respawn " 1 =on
User avatar
paraParaschiv
Membru, skill +1
Membru, skill +1
Posts: 137
Joined: 12 Jun 2019, 18:06
Detinator Steam: Da
CS Status: PuNcT
Detinator server CS: « ESL.CSPOWER.RO »
SteamID: Stai LIN !
Fond eXtream: 0
Has thanked: 3 times
Been thanked: 2 times

01 Mar 2020, 18:55

uite frate e compilat dar uite:
/tmp/text85BHKu.sma(42) : warning 209: function "on_Chat" should return a value
Header size: 496 bytes
Code size: 1484 bytes
Data size: 1060 bytes
Stack/heap size: 16384 bytes; estimated max. usage=50 cells (200 bytes)
Total requirements: 19424 bytes

1 Warning.
Done.
ESL.CSPOWER.RO
User avatar
mariusexeqt
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 199
Joined: 01 Jan 2020, 22:55
Detinator Steam: Da
Fond eXtream: 0
Has thanked: 4 times
Been thanked: 4 times
Contact:

01 Mar 2020, 21:34

pe server ruleaza?
User avatar
paraParaschiv
Membru, skill +1
Membru, skill +1
Posts: 137
Joined: 12 Jun 2019, 18:06
Detinator Steam: Da
CS Status: PuNcT
Detinator server CS: « ESL.CSPOWER.RO »
SteamID: Stai LIN !
Fond eXtream: 0
Has thanked: 3 times
Been thanked: 2 times

11 Mar 2020, 20:22

Se poate da T/C s-a rezolvat
ESL.CSPOWER.RO
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 40 guests