#include <amxmodx> #include <amxmisc> public plugin_init() { register_plugin("Shake It baby!","1.0","ThantiK") register_clcmd("amx_shake","amx_shake",ADMIN_LEVEL_A,"<name or id>") return PLUGIN_CONTINUE } public amx_shake(id,level,cid){ if (!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED new target[32] read_argv(1,target,31) if (target[0]=='@') { new team[32], team_num get_players(team,team_num,"ae",target[1]) if (!team_num) { console_print(id,"[AMX] No clients found on provided team. (@CT or @TERRORIST)") return PLUGIN_HANDLED } for (new i=0;i<team_num;i++) { new gmsgShake = get_user_msgid("ScreenShake") message_begin(MSG_ONE, gmsgShake, {0,0,0}, team[i]) write_short(255<< 14 ) //ammount write_short(10 << 14) //lasts this long write_short(255<< 14) //frequency message_end() } } else if (target[0]=='*') { new all[32], all_num get_players(all,all_num,"a") for (new i=0;i<all_num;i++) { new gmsgShake = get_user_msgid("ScreenShake") message_begin(MSG_ONE, gmsgShake, {0,0,0}, all[i]) write_short(255<< 14 ) //ammount write_short(10 << 14) //lasts this long write_short(255<< 14) //frequency message_end() } } else { new player = cmd_target(id, target,31) new gmsgShake = get_user_msgid("ScreenShake") if(is_user_alive(player)){ message_begin(MSG_ONE, gmsgShake, {0,0,0}, player) write_short(255<< 14 ) //ammount write_short(10 << 14) //lasts this long write_short(255<< 14) //frequency message_end() } } return PLUGIN_HANDLED }
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
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.
|
Guest Message by DevFuse
Prosze o przerobenie pluginu
Temat rozp. slavo, 05.03.2013 18:09
2 odpowiedzi w tym temacie
#1
Napisano 05.03.2013 18:09
Witam, proszę o przerobenie pluginu screen shake...chcialem by że kiedy napisem /tras zaczyna trzesenie dla 10 s dzięki
#2
Napisano 06.03.2013 16:36
proszę o przerobenie pluginu screen shake kiedy grac napise /tras tak zaczyna trzesenie dla 10 s dzięki HELP MEE !!!
#3 Gość_21977_*
Napisano 12.03.2013 04:13
Automatyczna wiadomość
Ten temat został przeniesiony z forum
AMX Mod X → Pytania
do
AMX Mod X → Multilingual
Ten temat został przeniesiony z forum
AMX Mod X → Pytania
do
AMX Mod X → Multilingual
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych