User
Pass
2FA
 
 

Problema respawn
Go to page Previous  1, 2, 3    
 
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 Message4056
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: 23-04-2017, 16:27:15 | Translate post to: ... (Click for more languages)

Gore , am incercat , nu merge nici asa . Nu este de la pluginul de transfer . Este strict de la pluginul de respawn !
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: 24-04-2017, 08:44:21 | Translate post to: ... (Click for more languages)

vezi
Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

#define PLUGIN "Respawn Status"
#define VERSION "1.0"

new g_bStatus;
public plugin_init()
{
   register_plugin(PLUGIN, VERSION, "FaTzZu")
   
   RegisterHam(Ham_Killed, "player", "Ham_PlayerKilled", 0);
   
   register_clcmd("say /respawn","cmdSayRespawn")
   register_clcmd("say_team /respawn","cmdSayRespawn")
}
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;
               client_print(id, print_chat, "Respawnul a fost dezactivat !");
            }
            case false:
            {
               g_bStatus = true;
               client_print(id, print_chat, "Respawnul a fost activat !");
            }
         }
         cmdSayRespawn(id);
      }
   }
   menu_destroy(menu); 
   return PLUGIN_HANDLED;
}
public Ham_PlayerKilled(victim, attacker, shouldgib)
{
   if(g_bStatus)
      set_task(1.0,"Respawn_Player", victim);
}
public Respawn_Player(id)
{
   ExecuteHam(Ham_CS_RoundRespawn, id);
}


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

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: 24-04-2017, 14:04:31 | 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: 24-04-2017, 17:27:54 | Translate post to: ... (Click for more languages)

Ms mult Legendary , acum merge. Dar poti sa faci protectia ca inainte ? Adica acum are o protectie de 2-3 sec. dupa respawn ! Poti sa-l faci sa fie ca inainte ?? fara protectia aia . ?
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: 24-04-2017, 17:43:56 | Translate post to: ... (Click for more languages)

Poftim

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: 24-04-2017, 19:36:22 | Translate post to: ... (Click for more languages)

Problema , era de fapt . timpul de respawn . Adica acum primeste prea repede si nu am baga spec. Daca il folosesc pe ala . merge ! Ms mult pentru ajutor , Cer T/C .
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: 24-04-2017, 19:47:47 | Translate post to: ... (Click for more languages)

Cu placere, ma bucur ca am rezolvat problema in cele din urma.

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


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    


The time now is 29-04-2024, 07:55:23
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