plugin respanw furien

 
Post new topic   Reply to topic    Freakz Forum Index -> Help zone -> Counter-Strike AMX Mod X -> Requests and help AMX Mod X -> Plugins
Author Message245
Djrex12

[Mentally Stable]



Status: Offline
(online 6 days ago)
Joined: 07 Jun 2017
Posts: 11, Topics: 7
Location: Romania

Reputation: 17.4

Post Posted: 14-11-2017, 21: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
(online 9 hours ago)
Joined: 04 May 2007
Posts: 6961, Topics: 146
Location: Romania

Reputation: 2718.4
Votes: 228

 
Post Posted: 17-11-2017, 00: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, 22: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

  Topic locked


This forum section is closed, you cannot post any messages in it anymore


 
Post new topic   Reply to topic    Freakz Forum Index -> Help zone -> Counter-Strike AMX Mod X -> Requests and help AMX Mod X -> Plugins  


The time now is 18-06-2018, 02:55:30
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