User
Pass
2FA
 
 

Problema respawn
Go to page Previous  1, 2, 3  Next    
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support
Author Message4054
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

Post Posted: 20-04-2017, 17:09:09 | Translate post to: ... (Click for more languages)

Nu mai primesc respawn deloc,. acum !
1 0
  
Back to top
View user's profile Send private message
ZPLegendary

[Mentally Stable]



Status: Offline
(since 03-10-2019 20:59)
Joined: 13 Jan 2017
Posts: 142, Topics: 7
Location: Polovragi, GJ

Reputation: 15.4
Votes: 17

     
Post Posted: 20-04-2017, 17:37:21 | Translate post to: ... (Click for more languages)

Vezi asa
Spoiler:


Be the one, not anyone.
Currently working on Zombie Legendary 8.1


0 0
  
Back to top
View user's profile Send private message
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

Post Posted: 20-04-2017, 22:43:24 | Translate post to: ... (Click for more languages)

La fel , nu mai primesc respawn !
0 0
  
Back to top
View user's profile Send private message
ZPLegendary

[Mentally Stable]



Status: Offline
(since 03-10-2019 20:59)
Joined: 13 Jan 2017
Posts: 142, Topics: 7
Location: Polovragi, GJ

Reputation: 15.4
Votes: 17

     
Post Posted: 21-04-2017, 10:00:18 | Translate post to: ... (Click for more languages)

Poftim, l-am facut de la 0
Daca nu merge nici asa inseamna ca ai alt plugin care nu se prea intelege cu cel de respawn

Spoiler:


Be the one, not anyone.
Currently working on Zombie Legendary 8.1


0 0
  
Back to top
View user's profile Send private message
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

Post Posted: 21-04-2017, 21:34:49 | Translate post to: ... (Click for more languages)

ok , si cu ce comanda Ii dau On / Off ?
0 0
  
Back to top
View user's profile Send private message
ZPLegendary

[Mentally Stable]



Status: Offline
(since 03-10-2019 20:59)
Joined: 13 Jan 2017
Posts: 142, Topics: 7
Location: Polovragi, GJ

Reputation: 15.4
Votes: 17

     
Post Posted: 21-04-2017, 22:04:10 | Translate post to: ... (Click for more languages)

Vrei sa poti opri respawn-ul?
Sa-ti fac un cvar ?


Be the one, not anyone.
Currently working on Zombie Legendary 8.1


0 0
  
Back to top
View user's profile Send private message
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

Post Posted: 21-04-2017, 23:58:59 | Translate post to: ... (Click for more languages)

Pai poti sa faci ca inainte ? cand scriu /respawn sa apara meniul ala "On" "Off" ? si sa aiba acces doar cei cu imunitate !
0 0
  
Back to top
View user's profile Send private message
GoreSpintecatoru.

[Inactiv o perioada]



Status: Offline
(since 09-11-2017 19:29)
Joined: 18 Feb 2017
Posts: 638, Topics: 28
Location: Romania

Reputation: 762.7
Votes: 40

       
Post Posted: 22-04-2017, 10:09:12 | Translate post to: ... (Click for more languages)

Code:
#include amxmodx
#include hamsandwich
#include fakemeta


new g_bStatus;

new TimeSpawn[33] = 0;
new bool:CanRespawn[33] = false;
new cvar[2];

public plugin_init()
{
   register_plugin("Auto Respawn", "1.2", "Legendary");
   
   RegisterHam(Ham_Killed, "player", "ham_killed", 1);
   RegisterHam(Ham_Spawn, "player", "ham_spawn", 1);
   
   register_clcmd("say /respawn","cmdSayRespawn")
   register_clcmd("say_team /respawn","cmdSayRespawn")
   
   cvar[0] = register_cvar("spawn_time", "3");
   cvar[1] = register_cvar("spawn_minplayers", "2");

   }
public client_putinserver(id){

   CanRespawn[id] = false
   TimeSpawn[id] = 0;
   set_task(5.0, "CheckTeam", id+291,_,_,"b");
}

public client_disconnect(id){

   CanRespawn[id] = false
   TimeSpawn[id] = 0;
   remove_task(id+291);
}

public cmdSayRespawn(id) {

   if(!(get_user_flags(id) & ADMIN_IMMUNITY))
   {
      client_print(id, print_chat, "Nu ai acces la comanda !");
      return PLUGIN_HANDLED;
   }

   new szText[192];
   new menu = menu_create("Change RESPAWN status", "handlerMenu");

   switch(g_bStatus)
   {
      case true: formatex(szText, 191, "RESPAWN - yON")
      case false: formatex(szText, 191, "RESPAWN - dOFF")
   }

   menu_additem(menu, szText, "1", 0)

   menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
   menu_display(id, menu, 0);

   return PLUGIN_HANDLED;
}

public handlerMenu(id, menu, item) {

   if( item == MENU_EXIT )
   {
      menu_destroy(menu);
      return PLUGIN_HANDLED;
   }

   new data[6], iName[64];
   new access, callback;
   menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
   new key = str_to_num(data);

   switch(key)
   {
      case 1:
      {
         switch(g_bStatus)
         {
            case true: g_bStatus = false;
            case false: g_bStatus = true;
         }
         cmdSayRespawn(id);
      }
   }
   menu_destroy(menu);
   return PLUGIN_HANDLED;
}

public ham_killed(id)
{
   if(!is_user_connected(id) || get_user_team(id) == 3 || get_user_team(id) == 0 || is_user_alive(id))
      return HAM_IGNORED;

   if(cvar[1] && get_playersnum() < cvar[1])
      return HAM_IGNORED;
   
   TimeSpawn[id] = cvar[0];
   
   remove_task(id+492);
   set_task(1.0, "TimerSpawn", id+492);
   CanRespawn[id] = true;
   
   return HAM_IGNORED;
}

public SpawnPlayer(id)
{
   if(!is_user_connected(id) || get_user_team(id) == 3 || get_user_team(id) == 0 || is_user_alive(id))
      return PLUGIN_CONTINUE;
   
   if(get_playersnum() < cvar[1])
      return PLUGIN_CONTINUE;
   
   TimeSpawn[id] = cvar[0];
   
   remove_task(id+492);
   set_task(1.0, "TimerSpawn", id+492);
   CanRespawn[id] = true;
   
   return PLUGIN_CONTINUE;
}

public TimerSpawn(id){
   id-=492
   
   if(!is_user_connected(id) || is_user_alive(id) || get_user_team(id) == 3 || get_user_team(id) == 0){

      CanRespawn[id] = false;
      return PLUGIN_CONTINUE;
   }
   
   if(TimeSpawn[id] > 1)
   {
      TimeSpawn[id]--;
      CanRespawn[id] = true;
      set_task(1.0, "TimerSpawn", id+492);
   }
   else
   {
      PlayerSpawn(id);
      CanRespawn[id] = false;
   }
   
   return PLUGIN_CONTINUE;
}

public PlayerSpawn(id)
{
   if(!is_user_connected(id) || is_user_alive(id) || get_user_team(id) == 3 || get_user_team(id) == 0)
      return PLUGIN_CONTINUE;
   
   ExecuteHamB(Ham_CS_RoundRespawn, id);
   CanRespawn[id] = false;
   
   return PLUGIN_CONTINUE;
}

public ham_spawn(id){

   if(task_exists(id+492))
      remove_task(id+492);
   
   CanRespawn[id] = false;
   TimeSpawn[id] = cvar[0]
}

public CheckTeam(id){

   id-=291
   
   if(!is_user_connected(id))
      return PLUGIN_CONTINUE;
   
   if(is_user_alive(id)){

      CanRespawn[id] = false;
      return PLUGIN_CONTINUE;
   }
   
   if(CanRespawn[id])
      return PLUGIN_CONTINUE;
   
   if(get_user_team(id) == 1 || get_user_team(id) == 2)
      SpawnPlayer(id);
   
   return PLUGIN_CONTINUE;
}


Regulament|My Official Website[V:1.1]|Panel JB[V:1.0]

0 0
  
Back to top
View user's profile Send private message
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

Post Posted: 22-04-2017, 16:33:46 | Translate post to: ... (Click for more languages)

Din pacate tot nu primesc respawn. Multumesc mult pentru efortul depus . Il folosesc asa default !
0 0
  
Back to top
View user's profile Send private message
GoreSpintecatoru.

[Inactiv o perioada]



Status: Offline
(since 09-11-2017 19:29)
Joined: 18 Feb 2017
Posts: 638, Topics: 28
Location: Romania

Reputation: 762.7
Votes: 40

       
Post Posted: 22-04-2017, 17:53:48 | Translate post to: ... (Click for more languages)

Cum adica?Pai ala care ti l-a dat Legendary nu mergea?

Regulament|My Official Website[V:1.1]|Panel JB[V:1.0]

0 0
  
Back to top
View user's profile Send private message
-P!C@-

[Simply Normal]



Status: Offline
(since 21-04-2022 19:07)
Joined: 28 May 2012
Posts: 21086, Topics: 1601
Location: Constanta

Reputation: 1870.3
Votes: 781

Post Posted: 22-04-2017, 19:18:45 | Translate post to: ... (Click for more languages)

DANNY* wrote:
Din pacate tot nu primesc respawn. Multumesc mult pentru efortul depus . Il folosesc asa default !

Adica fara comanda de on/off? Uite aici, fara acea comanda(nu l-am testat): https://forum.wow-freakz.com/view-post-5512181.html
Vrei sa ti-l fac sma si amxx? sau stii sa il faci?




0 0
  
Back to top
View user's profile Send private message
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

Post Posted: 22-04-2017, 20:05:33 | Translate post to: ... (Click for more languages)

Nu , nu mergea nici cu comanda nici fara !
0 0
  
Back to top
View user's profile Send private message
GoreSpintecatoru.

[Inactiv o perioada]



Status: Offline
(since 09-11-2017 19:29)
Joined: 18 Feb 2017
Posts: 638, Topics: 28
Location: Romania

Reputation: 762.7
Votes: 40

       
Post Posted: 22-04-2017, 20:12:11 | Translate post to: ... (Click for more languages)

Imi raspunzi si mie ? Iti merge cel de la ZPLegendary? Sa stiu de unde pornesc.

Regulament|My Official Website[V:1.1]|Panel JB[V:1.0]

0 0
  
Back to top
View user's profile Send private message
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

Post Posted: 22-04-2017, 23:17:02 | Translate post to: ... (Click for more languages)

Nu Gore , nu merge nici unul
0 0
  
Back to top
View user's profile Send private message
GoreSpintecatoru.

[Inactiv o perioada]



Status: Offline
(since 09-11-2017 19:29)
Joined: 18 Feb 2017
Posts: 638, Topics: 28
Location: Romania

Reputation: 762.7
Votes: 40

       
Post Posted: 23-04-2017, 08:58:29 | Translate post to: ... (Click for more languages)

Spoiler:
-> respawn.amxx

Spoiler:
->spec.amxx

Incearca cu 2 plugin-uri.


Regulament|My Official Website[V:1.1]|Panel JB[V:1.0]

0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by GoreSpintecatoru., 25 April 2017 08:09



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support  
Go to page Previous  1, 2, 3  Next    


The time now is 29-04-2024, 05:16:28
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x