hlmod.hu

Magyar Half-Life Mód közösség!
Pontos idő: 2024.04.19. 19:04



Jelenlévő felhasználók

Jelenleg 246 felhasználó van jelen :: 0 regisztrált, 0 rejtett és 246 vendég

A legtöbb felhasználó (1565 fő) 2020.11.21. 11:26-kor tartózkodott itt.

Regisztrált felhasználók: nincs regisztrált felhasználó az elmúlt 5 percben aktív felhasználók alapján

Utoljára aktív
Ahhoz hogy lásd ki volt utoljára aktív, be kell jelentkezned.



Az oldal teljeskörű
használatához regisztrálj.

Regisztráció

Kereső


Új téma nyitása  Hozzászólás a témához  [ 4 hozzászólás ] 
Szerző Üzenet
HozzászólásElküldve: 2014.12.14. 17:15 
Offline
Jómunkásember
Avatar

Csatlakozott: 2013.12.15. 19:13
Hozzászólások: 495
Megköszönt másnak: 289 alkalommal
Megköszönték neki: 14 alkalommal
Hali, Az egyik nézői infós plugin-ban beállítom, hogy adminokat ne mutasson, de mégis mutatja a sima playernek. Nekem van adminom, neki nincs. Ekkor ugye nem kellene, hogy mutassa neki, hogy nézem.
Előre is kösz.

Kód:
Cvarok:
- si_enabled - plugin ki-be kapcsolása (0-1)
- si_list_enabled - néző lista ki-be kapcsolása(0-1)
- si_keys_enabled - billentyű lista ki-be kapcsolása (0-1)
- si_immunity - admin láthatatlanság ki-be kapcsolása (0-1)
- si_msg_r - karakterszínek piros értéke (0-999)
- si_msg_g - karakterszínek zöld értéke (0-999)
- si_msg_b - karakterszínek kék értéke (0-999)


SMA Forráskód: [ Mindet kijelol ]/*SpecInfo v1.3.1Copyright (C) 2007-2008 Ian (Juan) Cammarata This program is free software: you can redistribute it and/or modifyit under the terms of the GNU Affero General Public License aspublished by the Free Software Foundation, either version 3 of theLicense, or (at your option) any later version. This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.--------------------------------------------------------------------------------http://ian.cammarata.usJan 05 17:39  Description:This plugin displays a list of spectators currently viewing the live player.This list is visible to the living player as well as other players currentlyspectating that player. Also spectators can see which movement commands thethe live player is using.   Commands:say /speclist : Toggle viewing list of spectators.say /speckeys : Toggle viewing keys of player you are spectating.say /spechide : Immune admins toggle whether or not they're hidden from list.say /showkeys : View your own keys on screen while alive.  Cvars (First value is default):si_enabled <1|0> : Enables all plugin functionality. si_list_enabled <1|0> : Enables spectator list.si_keys_enabled <1|0> : Enables spectator key view.si_list_default <1|0> : Default on/off state for spec list when a client joins.si_keys_default <1|0> : Default on/off state for key view when a client joins. si_immunity <0|1> : Enables admin immunity; Admins won't show on spec list. si_msg_r <45|...> : HUD message red value.si_msg_g <89|...> : HUD message green value.si_msg_b <116|...> : HUD message blue value.  Notes:Make sure you place the specinfo.txt file in addons\amxmodx\data\lang  Supported Languages:English (100%)Spanish (100%) - Thanks to Mely for checking these.German (63%) - Thanks to [S]killer for this translation.  Change Log:Key (+ added | - removed | c changed | f fixed) v1.3.1 (Jan 5, 2008)f: Eliminated a bug introduced in 1.3 as well as the occasional index out of bounds error it caused. v1.3 (Nov 21, 2007)+: Command "/showkeys" to view your own keys.c: Minor code optimizations. v1.2 (Jul 14, 2007)+: Command "say /spechide" for immune to toggle hidden state.c: Lots of code optimizations.f: Always showing keys even when disabled.f: Hud messaged getting messed up when too many names are on the list. (No seriously, for real this time.) v1.1 (Jul 06, 2007)+: Show number of people spectating.c: Names truncated shorter than 20 chars when lots of players on the list.c: Spectator list moved further right. (Even further when you're alive.)f: Hud messaged getting messed up when too many names are on the list. (Same as last time, but it's fixed for good.) v1.0.1 (June 07, 2007)f: Hud messaged getting messed up when too many names are on the list. v1.0 (June 02, 2007)!Initial Release*/#include <amxmodx>#include <amxmisc>#include <engine>#include <fakemeta> new const VERSION[ ] = "1.3.1"new const TRKCVAR[ ] = "specinfo_version"#define IMMUNE_FLAG ADMIN_IMMUNITY #define KEYS_STR_LEN 31#define LIST_STR_LEN 610#define BOTH_STR_LEN KEYS_STR_LEN + LIST_STR_LEN //cl_prefs constants#define FL_LIST ( 1 << 0 )#define FL_KEYS ( 1 << 1 )#define FL_OWNKEYS ( 1 << 2 )#define FL_HIDE ( 1 << 3 ) //cvar pointersnew p_enabled, p_list_enabled, p_keys_enabled, p_list_default, p_keys_default;new p_red, p_grn, p_blu, p_immunity; //data arraysnew cl_keys[33], cl_prefs[33];new keys_string[33][KEYS_STR_LEN + 1], list_string[33][LIST_STR_LEN + 1]new cl_names[33][21], spec_ids[33][33]; public plugin_init( ){ register_plugin( "SpecInfo", VERSION, "Ian Cammarata" ); register_cvar( TRKCVAR, VERSION, FCVAR_SERVER ); set_cvar_string( TRKCVAR, VERSION );  p_enabled = register_cvar( "si_enabled", "1" ); p_list_enabled = register_cvar( "si_list_enabled", "1" ); p_keys_enabled = register_cvar( "si_keys_enabled", "1" ); p_list_default = register_cvar( "si_list_default", "1" ); p_keys_default = register_cvar( "si_keys_default", "1" ); p_immunity = register_cvar( "si_immunity", "1" ); p_red = register_cvar( "si_msg_r", "45" ); p_grn = register_cvar( "si_msg_g", "89" ); p_blu = register_cvar( "si_msg_b", "116" );  register_clcmd( "say /speclist", "toggle_list", _, "Toggle spectator list." ); register_clcmd( "say /speckeys", "toggle_keys", _, "Toggle spectator keys." ); register_clcmd( "say /showkeys", "toggle_ownkeys", _, "Toggle viewing own keys." ); register_clcmd( "say /spechide", "toggle_hide", IMMUNE_FLAG, "Admins toggle being hidden from list." );  set_task( 1.0, "list_update", _, _, _, "b" ); set_task( 0.1, "keys_update", _, _, _, "b" );  register_dictionary( "specinfo.txt" );} public client_connect( id ){ cl_prefs[id] = 0; if( !is_user_bot( id ) ) { if( get_pcvar_num( p_list_default ) ) cl_prefs[id] |= FL_LIST; if( get_pcvar_num( p_keys_default ) ) cl_prefs[id] |= FL_KEYS; } get_user_name( id, cl_names[id], 20 ); return PLUGIN_CONTINUE;} public client_infochanged( id ){ get_user_name( id, cl_names[id], 20 ); return PLUGIN_CONTINUE;} public list_update( ){ if( get_pcvar_num( p_enabled ) && get_pcvar_num ( p_list_enabled ) ) { new players[32], num, id, id2, i, j; for( i = 1; i < 33; i++ ) spec_ids[i][0] = 0;  get_players( players, num, "bch" ); for( i = 0; i < num; i++ ) { id = players[i]; if( !( get_user_flags( id ) & IMMUNE_FLAG && get_pcvar_num( p_immunity ) && cl_prefs[id] & FL_HIDE ) ) { id2 = pev( id, pev_iuser2 ); if( id2 ) { spec_ids[ id2 ][ 0 ]++; spec_ids[ id2 ][ spec_ids[ id2 ][ 0 ] ] = id; } } } new tmplist[ LIST_STR_LEN + 1 ], tmpstr[41]; new count, namelen, tmpname[21]; for( i=1; i<33; i++ ) { count = spec_ids[i][0]; if( count ) { namelen = ( LIST_STR_LEN - 10 ) / count; clamp( namelen, 10, 20 ); format( tmpname, namelen, cl_names[i] ); formatex( tmplist, LIST_STR_LEN - 1, "^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t(%d) %s %s:^n", count, "%L", tmpname); for( j=1; j<=count; j++ ) { format( tmpname, namelen, cl_names[spec_ids[i][j]]); formatex( tmpstr, 40, "^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t%s", tmpname ); if( strlen( tmplist ) + strlen( tmpstr ) + ( 11 - j ) < ( LIST_STR_LEN - 1 ) ) format( tmplist, LIST_STR_LEN - 10, "%s%s^n", tmplist, tmpstr ); else { format( tmplist, LIST_STR_LEN, "%s...^n", tmplist ); break; } } if( count < 10 ) format( tmplist, LIST_STR_LEN, "%s^n^n^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^t^tSpecInfo v%s^n", tmplist, VERSION ); for( j+=0; j<10; j++ ) format( tmplist, LIST_STR_LEN, "%s%s", tmplist, "^n" ); list_string[i] = tmplist; } } get_players( players, num, "ch" ); for( i=0; i<num; i++ ) clmsg( players[i] ); } return PLUGIN_HANDLED;} public keys_update( ){ if( !get_pcvar_num( p_enabled ) && !get_pcvar_num( p_keys_enabled ) ) return;  new players[32], num, id, i; get_players( players, num, "a" ); for( i = 0; i < num; i++ ) { id = players[i]; formatex( keys_string[id], KEYS_STR_LEN, " ^n^t^t%s^t^t^t%s^n^t%s %s %s^t^t%s", cl_keys[id] & IN_FORWARD ? "W" : " .", "%L", cl_keys[id] & IN_MOVELEFT ? "A" : ".", cl_keys[id] & IN_BACK ? "S" : ".", cl_keys[id] & IN_MOVERIGHT ? "D" : ".", "%L" );  //Flags stored in string to fill translation char in clmsg function keys_string[id][0] = 0; if( cl_keys[id] & IN_JUMP ) keys_string[id][0] |= IN_JUMP; if( cl_keys[id] & IN_DUCK ) keys_string[id][0] |= IN_DUCK;  cl_keys[id] = 0; }  new id2; get_players( players, num, "ch" ); for( i=0; i<num; i++ ) { id = players[i]; if( is_user_alive( id ) ) { if( cl_prefs[id] & FL_OWNKEYS ) clmsg( id ); } else { id2 = pev( id, pev_iuser2 ); if( cl_prefs[id] & FL_KEYS && id2 && id2 != id ) clmsg( id ); } } } public server_frame( ){ if( get_pcvar_num( p_enabled ) && get_pcvar_num( p_keys_enabled ) ) { new players[32], num, id; get_players( players, num, "a" ); for( new i = 0; i < num; i++ ) { id = players[i]; if( get_user_button( id ) & IN_FORWARD ) cl_keys[id] |= IN_FORWARD; if( get_user_button( id ) & IN_BACK ) cl_keys[id] |= IN_BACK; if( get_user_button( id ) & IN_MOVELEFT ) cl_keys[id] |= IN_MOVELEFT; if( get_user_button( id ) & IN_MOVERIGHT ) cl_keys[id] |= IN_MOVERIGHT; if( get_user_button( id ) & IN_DUCK ) cl_keys[id] |= IN_DUCK; if( get_user_button( id ) & IN_JUMP ) cl_keys[id] |= IN_JUMP; } } return PLUGIN_CONTINUE} public clmsg( id ){ if( !id ) return;  new prefs = cl_prefs[id];  new bool:show_own = false; if( is_user_alive( id ) && prefs & FL_OWNKEYS ) show_own = true;  if( is_user_alive( id ) && !show_own ) { if( prefs & FL_LIST && spec_ids[id][0] && get_pcvar_num( p_list_enabled ) ) { set_hudmessage( get_pcvar_num( p_red ), get_pcvar_num( p_grn ), get_pcvar_num( p_blu ), 0.7, /*x*/ 0.1, /*y*/ 0, /*fx*/ 0.0, /*fx time*/ 1.1, /*hold time*/ 0.1, /*fade in*/ 0.1, /*fade out*/ 3 /*chan*/ ); show_hudmessage( id, list_string[id], id, "SPECTATING" ); } } else { new id2; if( show_own ) id2 = id; else id2 = pev( id, pev_iuser2 ); if( !id2 ) return;  if( prefs & FL_LIST || prefs & FL_KEYS || show_own ) { set_hudmessage( get_pcvar_num( p_red ), get_pcvar_num( p_grn ), get_pcvar_num( p_blu ), 0.48, /*x*/ 0.14, /*y*/ 0, /*fx*/ 0.0, /*fx time*/ prefs & FL_KEYS || show_own ? 0.1 : 1.1, /*hold time*/ 0.1, /*fade in*/ 0.1, /*fade out*/ 3 /*chan*/ ); new msg[BOTH_STR_LEN + 1]; if( prefs & FL_LIST && get_pcvar_num( p_list_enabled ) && spec_ids[id2][0] ) formatex(msg,BOTH_STR_LEN,list_string[id2],id,"SPECTATING"); else msg ="^n^n^n^n^n^n^n^n^n^n^n^n"; if( get_pcvar_num( p_keys_enabled ) && ( prefs & FL_KEYS || show_own ) ) { format( msg, BOTH_STR_LEN, "%s%s", msg, keys_string[id2][1] ); format( msg, BOTH_STR_LEN, msg, id, keys_string[id2][0] & IN_JUMP ? "JUMP" : "LAME", id, keys_string[id2][0] & IN_DUCK ? "DUCK" : "LAME" ); } show_hudmessage( id, msg ); } }} public set_hudmsg_flg_notify( ){ set_hudmessage( get_pcvar_num( p_red ), get_pcvar_num( p_grn ), get_pcvar_num( p_blu ), -1.0, /*x*/ 0.8, /*y*/ 0, /*fx*/ 0.0, /*fx time*/ 3.0, /*hold time*/ 0.0, /*fade in*/ 0.0, /*fade out*/ -1 /*chan*/ );} public toggle_list( id ){ set_hudmsg_flg_notify( ); cl_prefs[id] ^= FL_LIST; show_hudmessage( id, "%L", id, cl_prefs[id] & FL_LIST ? "SPEC_LIST_ENABLED" : "SPEC_LIST_DISABLED" ); return PLUGIN_HANDLED;} public toggle_keys( id ){ set_hudmsg_flg_notify( ); cl_prefs[id] ^= FL_KEYS; show_hudmessage( id, "%L", id, cl_prefs[id] & FL_KEYS ? "SPEC_KEYS_ENABLED" : "SPEC_KEYS_DISABLED" ); return PLUGIN_HANDLED;} public toggle_ownkeys( id ){ set_hudmsg_flg_notify( ); cl_prefs[id] ^= FL_OWNKEYS; show_hudmessage( id, "%L", id, cl_prefs[id] & FL_OWNKEYS ? "SPEC_OWNKEYS_ENABLED" : "SPEC_OWNKEYS_DISABLED" ); return PLUGIN_HANDLED;} public toggle_hide( id, level, cid ){ if( cmd_access( id, level, cid, 0 ) ) { set_hudmsg_flg_notify( ); cl_prefs[id] ^= FL_HIDE; show_hudmessage( id, "%L", id, cl_prefs[id] & FL_HIDE ? "SPEC_HIDE_ENABLED" : "SPEC_HIDE_DISABLED" ); } return PLUGIN_HANDLED;} 


A hozzászólást 1 alkalommal szerkesztették, utoljára ZiT3K 2021.02.13. 02:48-kor.

Hozzászólás jelentése
Vissza a tetejére
   
HozzászólásElküldve: 2014.12.14. 17:35 
Offline
Tiszteletbeli
Avatar

Csatlakozott: 2014.09.08. 22:21
Hozzászólások: 3014
Megköszönt másnak: 96 alkalommal
Megköszönték neki: 555 alkalommal
"a" jog kell hozzá és amxx.cfg-be a cvar normálisan! és megy. Ha nem,akkor te csinálsz vmit rosszul

_________________
GitHub - mforce

Ők köszönték meg mforce nek ezt a hozzászólást: ZiT3K (2014.12.14. 17:47)
  Népszerűség: 2.27%


Hozzászólás jelentése
Vissza a tetejére
   
HozzászólásElküldve: 2014.12.14. 17:46 
Offline
Jómunkásember
Avatar

Csatlakozott: 2013.12.15. 19:13
Hozzászólások: 495
Megköszönt másnak: 289 alkalommal
Megköszönték neki: 14 alkalommal
CSAK ez a plguin van bent most!
VAN MINDEN JOGOM!
amxx.cfg:

Kód:
// AMX Mod X Configuration File
echo Executing AMX Mod X Configuration File

// Default access for all non admin players (see users.ini for access details)
//
// Default value: "z"
amx_default_access "z"

// Name of setinfo which should store a password on a client (you should change this)
// Note: Always prefix the field with an underscore (aka: "_")
// (Example: setinfo _pw "password")
//
// Default value: "_pw"
amx_password_field "_pw"

// Mode of logging to a server
// 0 - disable logging, players won't be checked (and access won't be set)
// 1 - normal mode which obey flags set in accounts
// 2 - kick all players not on list
//
// Default value: 1
amx_mode 1

// Show admins activity
// 0 - disabled
// 1 - show without admin name
// 2 - show with name
//
// Default value: 2
amx_show_activity 2

// Frequency in seconds and text of scrolling message
//
// Default value: "Welcome to %hostname% -- This server is using AMX Mod X" 600
amx_scrollmsg "Welcome to %hostname% -- This server is using AMX Mod X" 600

// Center typed colored messages (last parameter is a color in RRRGGGBBB format)
//
// Default values: "Welcome to %hostname%" "000255100"
//                 "This server is using AMX ModX\nVisit http://www.amxmodx.org" "000100255"
amx_imessage "Welcome to %hostname%" "000255100"
amx_imessage "This server is using AMX Mod X\nVisit http://www.amxmodx.org" "000100255"

// Frequency in seconds of colored messages
//
// Default value: 180
amx_freq_imessage 180

// Ban times for the main ban menu (amx_banmenu)
// Use 0 for permanent ban
// Default values: 0 5 10 15 30 45 60
amx_plmenu_bantimes 0 5 10 15 30 45 60

// Slap damage amounts for the main slap menu (amx_slapmenu)
// Slay is automaticall inserted as the first option
// Default values: 0 1 5
amx_plmenu_slapdmg 0 1 5

// Set in seconds how fast players can chat (chat-flood protection)
//
// Default value: 0.75
amx_flood_time 0.75

// Amount of slots to reserve.
//
// Default value: 0
amx_reservation 0

// If you set this to 1, you can hide slots on your server.
// If server "full" of public slots and slots hidden, you must manually connect with connect console command
//
// Default value: 0
amx_hideslots 0

// Displaying of time remaining
// a - display white text on bottom
// b - use voice
// c - don't add "remaining" (only in voice)
// d - don't add "hours/minutes/seconds" (only in voice)
// e - show/speak if current time is less than this set in parameter
//
// Default value: "ab 1200" "ab 600" "ab 300" "ab 180" "ab 60" "bcde 11"
amx_time_display "ab 1200" "ab 600" "ab 300" "ab 180" "ab 60" "bcde 11"

// Announce "say thetime" and "say timeleft" with voice, set to 0 to disable.
//
// Default value: 1
amx_time_voice 1

// Minimum delay in seconds between two voting sessions
//
// Default value: 10
amx_vote_delay 10

// How long voting session goes on
//
// Default value: 10
amx_vote_time 10

// Display who votes for what option, set to 0 to disable, 1 to enable.
//
// Default value: 1
amx_vote_answers 1

// Some ratios for voting success

// Default value: 0.40
amx_votekick_ratio 0.40

// Default value: 0.40
amx_voteban_ratio 0.40

// Default value: 0.40
amx_votemap_ratio 0.40

// Default value: 0.02
amx_vote_ratio 0.02

// Max. time to which map can be extended
//
// Default value: 90
amx_extendmap_max 90

// Step for each extending
//
// Default value: 15
amx_extendmap_step 15

// If you set this to 0, clients cannot chose their language, instead they use
// whatever language the server is configured to use.
//
// Default value: 1
amx_client_languages 1

// Plugin Debug mode
// 0 - No debugging (garbage line numbers)
// 1 - Plugins with "debug" option in plugins.ini are put into debug mode
// 2 - All plugins are put in debug mode
// Note - debug mode will affect JIT performance
//
// Default value: 1
amx_debug 1

// Plugin MultiLingual Debug
// To debug a language put its 2 letter code between quotes ("en", "de", etc)
// "" means disabled
//
// Default value: ""
amx_mldebug ""

//
// Beginning of Counter-Strike package specific configurations.
//

// Rank mode
// 0 - by nick
// 1 - by authid
// 2 - by ip
//
// Default value: 1
csstats_rank 1

// Max size of the stats file
//
// Default value: 3500
csstats_maxsize 3500

// Whether or not to rank bots with csstats - set to 1 to rank bots, 0 otherwise.
//
// Default value: 0
csstats_rankbots 0

// Duration of HUD-statistics
//
// Default value: 12.0
amx_statsx_duration 12.0

// HUD-statistics display limit relative round freeze end
// Negative time will clear the HUD-statstics before the round freeze time has ended
//
// Default value: -2.0
amx_statsx_freeze -2.0
parachute_cost 0
si_immunity 1



Hozzászólás jelentése
Vissza a tetejére
   
HozzászólásElküldve: 2015.02.03. 16:03 
Offline
Fanatikus

Csatlakozott: 2015.01.28. 02:18
Hozzászólások: 160
Megköszönték neki: 31 alkalommal
Szia!


Semmit nem kell állítani, csak átkonvertálod .amxx kiterjesztésre, és kész. Ha nézel egy játékost mint adminisztrátor, nem mutatja neki hogy nézed.
Használd ezt a plugint:
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <fakemeta>
  3.  
  4. #pragma semicolon 1
  5.  
  6. #define RED 64
  7. #define GREEN 64
  8. #define BLUE 64
  9. #define UPDATEINTERVAL 1.0
  10.  
  11. // Comment below if you do not want /speclist showing up on chat
  12. #define ECHOCMD
  13.  
  14. // Admin flag used for immunity
  15. #define FLAG ADMIN_IMMUNITY
  16.  
  17. new const PLUGIN[] = "SpecList";
  18. new const VERSION[] = "1.2a";
  19. new const AUTHOR[] = "FatalisDK";
  20.  
  21. new gMaxPlayers;
  22. new gCvarOn;
  23. new gCvarImmunity;
  24. new bool:gOnOff[33] = { true, ... };
  25.  
  26. public plugin_init()
  27. {
  28. register_plugin(PLUGIN, VERSION, AUTHOR);
  29.  
  30. register_cvar(PLUGIN, VERSION, FCVAR_SERVER, 0.0);
  31. gCvarOn = register_cvar("amx_speclist", "1", 0, 0.0);
  32. gCvarImmunity = register_cvar("amx_speclist_immunity", "1", 0, 0.0);
  33.  
  34. register_clcmd("say /speclist", "cmdSpecList", -1, "");
  35.  
  36. gMaxPlayers = get_maxplayers();
  37.  
  38. set_task(UPDATEINTERVAL, "tskShowSpec", 123094, "", 0, "b", 0);
  39. }
  40.  
  41. public cmdSpecList(id)
  42. {
  43. if( gOnOff[id] )
  44. {
  45. client_print(id, print_chat, "[AMXX] You will no longer see who's spectating you.");
  46. gOnOff[id] = false;
  47. }
  48. else
  49. {
  50. client_print(id, print_chat, "[AMXX] You will now see who's spectating you.");
  51. gOnOff[id] = true;
  52. }
  53.  
  54. #if defined ECHOCMD
  55. return PLUGIN_CONTINUE;
  56. #else
  57. return PLUGIN_HANDLED;
  58. #endif
  59. }
  60.  
  61. public tskShowSpec()
  62. {
  63. if( !get_pcvar_num(gCvarOn) )
  64. {
  65. return PLUGIN_CONTINUE;
  66. }
  67.  
  68. static szHud[1102];//32*33+45
  69. static szName[34];
  70. static bool:send;
  71.  
  72. // FRUITLOOOOOOOOOOOOPS!
  73. for( new alive = 1; alive <= gMaxPlayers; alive++ )
  74. {
  75. new bool:sendTo[33];
  76. send = false;
  77.  
  78. if( !is_user_alive(alive) )
  79. {
  80. continue;
  81. }
  82.  
  83. sendTo[alive] = true;
  84.  
  85. get_user_name(alive, szName, 32);
  86. format(szHud, 45, "Spectating %s:^n", szName);
  87.  
  88. for( new dead = 1; dead <= gMaxPlayers; dead++ )
  89. {
  90. if( is_user_connected(dead) )
  91. {
  92. if( is_user_alive(dead)
  93. || is_user_bot(dead) )
  94. {
  95. continue;
  96. }
  97.  
  98. if( pev(dead, pev_iuser2) == alive )
  99. {
  100. if( !(get_pcvar_num(gCvarImmunity)&&get_user_flags(dead, 0)&FLAG) )
  101. {
  102. get_user_name(dead, szName, 32);
  103. add(szName, 33, "^n", 0);
  104. add(szHud, 1101, szName, 0);
  105. send = true;
  106. }
  107.  
  108. sendTo[dead] = true;
  109.  
  110. }
  111. }
  112. }
  113.  
  114. if( send == true )
  115. {
  116. for( new i = 1; i <= gMaxPlayers; i++ )
  117. {
  118. if( sendTo[i] == true
  119. && gOnOff[i] == true )
  120. {
  121. set_hudmessage(RED, GREEN, BLUE,
  122. 0.75, 0.15, 0, 0.0, UPDATEINTERVAL + 0.1, 0.0, 0.0, -1);
  123.  
  124. show_hudmessage(i, szHud);
  125. }
  126. }
  127. }
  128. }
  129.  
  130. return PLUGIN_CONTINUE;
  131. }
  132.  
  133. public client_connect(id)
  134. {
  135. gOnOff[id] = true;
  136. }
  137.  
  138. public client_disconnect(id)
  139. {
  140. gOnOff[id] = true;
  141. }



ZiT3K írta:
Valaki tudja a megoldást?

_________________
Általam magyarított modok:
[API] Fegyver csata v6.2 | Diablo II Mod : Lord of Destruction | DeathRun XP & Szint Mód
Kép

Ők köszönték meg excitedboy nek ezt a hozzászólást: ZiT3K (2015.08.07. 08:17)
  Népszerűség: 2.27%


Hozzászólás jelentése
Vissza a tetejére
   
Hozzászólások megjelenítése:  Rendezés  
Új téma nyitása  Hozzászólás a témához  [ 4 hozzászólás ] 


Ki van itt

Jelenlévő fórumozók: nincs regisztrált felhasználó valamint 18 vendég


Nyithatsz új témákat ebben a fórumban.
Válaszolhatsz egy témára ebben a fórumban.
Nem szerkesztheted a hozzászólásaidat ebben a fórumban.
Nem törölheted a hozzászólásaidat ebben a fórumban.
Nem küldhetsz csatolmányokat ebben a fórumban.

Keresés:
Ugrás:  
Powered by phpBB® Forum Software © phpBB Limited
Magyar fordítás © Magyar phpBB Közösség
Portal: Kiss Portal Extension © Michael O'Toole