User
Pass
2FA
 
 

plugin respanw furien

 
Post new topic   Reply to topic    Freakz Forum Index -> Help zone -> Counter-Strike AMX Mod X -> Plugins - Help / Support
Author Message364
Djrex12

[Mentally Stable]



Status: Offline
(since 11-06-2018 22:53)
Joined: 07 Jun 2017
Posts: 11, Topics: 7
Location: Romania

Reputation: 17.4

Post Posted: 14-11-2017, 20:21:45 | Translate post to: ... (Click for more languages)

un plugin de respawn pt furien
0 0
  
Back to top
View user's profile Send private message
TwisTer

[GOOGLE SEARCHER]



Status: Offline
(since 25-08-2018 19:25)
Joined: 04 May 2007
Posts: 6962, Topics: 147
Location: Romania

Reputation: 2701.4
Votes: 228

 
Post Posted: 16-11-2017, 23:26:39 | Translate post to: ... (Click for more languages)

Nu ai dat prea multe detalii, asa ca doar o sa banuiesc ce doresti :

Spoiler:



0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
luis1

[Mentally Stable]



Status: Offline
(since 16-12-2017 19:06)
Joined: 28 Aug 2017
Posts: 20, Topics: 7
Location: Romania

Reputation: 20.9
Votes: 1

Post Posted: 28-11-2017, 21:43:57 | Translate post to: ... (Click for more languages)

#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);
}

/respawn in chat e comanda, On oFF doar cei care au flag a au. bafta !

0 0
  
Back to top
View user's profile Send private message
Post new topic   Reply to topic    Freakz Forum Index -> Help zone -> Counter-Strike AMX Mod X -> Plugins - Help / Support  


The time now is 10-12-2018, 04:11:45
Copyright info

Based on phpBB ro/com

 
 
 







I forgot my password


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