Description:
This plugin allows admins/vips (users with 't' flag) to send MOTD PMs
NOTE: You can't recive messages if you are alive..
Command:
amx_motd <player name> <message>
Screenshot:

Attached Files

Wyświetl pełny artykuł
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Napisano 07.01.2012 01:23
Napisano 07.01.2012 09:50
Napisano 07.01.2012 12:25
Napisano 11.01.2012 20:19
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#define PLUGIN "amx_motd"
#define VERSION "1.0"
#define AUTHOR "THE_ASSASSIN!, Warrior"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
register_clcmd("amx_motd", "send_message", ADMIN_LEVEL_H, "<gracz> <wiadomosc> - wysylanie wiadomosci do innego uzytkownika.");
}
public send_message(id, level, cid) {
if (!cmd_access(id, level, cid, 3))
return PLUGIN_HANDLED
new user[32], uid
read_argv(1, user, 31)
new message[256]
read_argv(2, message, 255);
new sendername[32]
get_user_name(id, sendername, 31)
uid = find_player("bhl", user)
new name[32];
get_user_name(uid, name, 31)
if (uid == 0) {
client_print(id, print_chat, "[AMXX] Nie znaleziono gracza.")
return PLUGIN_HANDLED
}
if(!is_user_alive(uid)) {
client_print(id, print_chat, "[AMXX] Nie mozna wysylac wiadomosci kiedy gracz jest zywy.")
return PLUGIN_HANDLED
}
new title[150]
format(title, 150, "Wiadomosc od [VIP] %s,", sendername)
new msgtodisplay[500]
format(msgtodisplay, 500, "[VIP] %s : %s", sendername, message)
show_motd(uid, msgtodisplay, title )
client_print(id, print_chat, "[AMXX] Wyslij wiadomosc do %s!", name)
return PLUGIN_HANDLED
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1050\\ f0\\ fs16 \n\\ par }
*/
Użytkownik matys307 edytował ten post 11.01.2012 20:23
0 użytkowników, 0 gości, 0 anonimowych