Jump to content
GIGN Forum

Plugins!


Recommended Posts

Gribēju pajautāt, vai ir plugins/skripts, kas atļauj adminiem ar C flagu redzēt, ko dzīvie/mirušie raksta čatā, kad admins sēž specos (neredz ko dzīvie raksta) un kad spēlē (neredz ko mirušie raksta), lai varētu redzēt!!

Parādījusies man baigā apetīte pēc tāda plugina :lolza:

If you know, if there exist's this plugin...please send me PM or write here...! :)

Link to comment
Share on other sites

Nu ir gatavs(nelikshu attachmentos, vnk iekopeeshu skriptu - cerems maakat nokompileet, ja ne tad ejiet amxmodx.org - web compiler)

#include <amxmodx>

#include <amxmisc>

#define PLUGIN "Admin Dead Chat"

#define VERSION "1.0"

#define AUTHOR "Sh!nE*"

new msg_say

public plugin_init() {

register_plugin(PLUGIN, VERSION, AUTHOR)

register_clcmd("say","admin_chat")

msg_say = get_user_msgid("SayText")

}

public admin_chat(id)

{

new players[32],num

get_players(players,num)

new text[192], name[32]

read_args(text,191)

get_user_name(id,name,31)

remove_quotes(text)

for(new i = 0; i < num; i++)

{

if(!is_user_alive(players[id]) && !is_user_alive(id))

return PLUGIN_CONTINUE

if(is_user_admin(players) && !is_user_alive(id))

{

new print_text[192]

format(print_text,191,"^x03%s ^x01: %s",name,text)

print_admin(print_text, players)

}

}

return PLUGIN_CONTINUE

}

print_admin(print_text[], id)

{

message_begin(MSG_ALL, msg_say, {0,0,0}, id)

write_byte(id)

write_string(print_text)

message_end()

}

pielaboju gljuku ja abi (gan admins gan players) ir dead tad neraadis 2 message..

piem:

Sh!nE* : SHIT

Sh!nE* : SHIT

uujj par tavu C flagu XD aizmirsu

luuk ar tavu C Flagu:

#include <amxmodx>

#include <amxmisc>

#define PLUGIN "Admin Dead Chat"

#define VERSION "1.0"

#define AUTHOR "Sh!nE*"

new msg_say

public plugin_init() {

register_plugin(PLUGIN, VERSION, AUTHOR)

register_clcmd("say","admin_chat")

msg_say = get_user_msgid("SayText")

}

public admin_chat(id)

{

new players[32],num

get_players(players,num)

new text[192], name[32]

read_args(text,191)

get_user_name(id,name,31)

remove_quotes(text)

for(new i = 0; i < num; i++)

{

if(!is_user_alive(players[id]) && !is_user_alive(id))

return PLUGIN_CONTINUE

if(get_user_flags(players == ADMIN_KICK) && !is_user_alive(id))

{

new print_text[192]

format(print_text,191,"^x03%s ^x01: %s",name,text)

print_admin(print_text, players)

}

}

return PLUGIN_CONTINUE

}

print_admin(print_text[], id)

{

message_begin(MSG_ALL, msg_say, {0,0,0}, id)

write_byte(id)

write_string(print_text)

message_end()

}

Edited by shine
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...