Yüksek zıplama
Moderatör: Moderatörler
-
By.King ►EmrullaH◄
Yasaklı Üye
- Mesajlar: 4297
- Kayıt: Cmt Şub 24, 2018 6:05 pm
- Konum: İstanbul
- İletişim:
-
By.King ►EmrullaH◄
Yasaklı Üye
- Mesajlar: 4297
- Kayıt: Cmt Şub 24, 2018 6:05 pm
- Konum: İstanbul
- İletişim:
-
emrahbaba
Konu Sahibi - Mesajlar: 458
- Kayıt: Prş Eki 04, 2018 9:39 pm
- Server Ip/DNS: 213.238.173.92
- Clan İsmi: MaviBere ~ CsDm
Yüksek zıplama
Ya zombi insan yeşil renk olucak diğerleri normal takım renk olucak hala çözemedim ugrastim yine yardimci olurmusunuzBy.King ►EmrullaH◄ yazdı: Cmt Nis 06, 2019 8:51 am@omertas14544Kod: Tümünü seç
/* ------------------------------------------------------------------------------------------------- * * Plugin generaly made for my friend that begged it from me :P * Basicly got to thank alot ppl to correct the mistakes ;) * * If you want to enable BIOHAZARD zombie mod, delete the doubleslash from begining */ #define USING_BIOHAZARD 1 /* --------------------------------------------------------------------------------------------------*/ #if defined USING_BIOHAZARD //Added this to use less data, whilst using zp & bh would make plugin bit more crowded. #include <biohazard> //including biohazard stuff #define PLUGIN "[BIOHAZARD] Chat" //plugin name #define IsZombie is_user_zombie #else #include <zombieplague> //inluding zp stuff #define PLUGIN "[ZP] Chat" //plugin name #define IsZombie zp_get_user_zombie #endif #include <amxmodx> //inluding main amxx #define VERSION "1.5" //version #define AUTHOR "Lure.d" //author public plugin_init( ) { register_plugin( PLUGIN , VERSION , AUTHOR ); //registering plugin register_cvar( "zmc_version" , VERSION , FCVAR_SPONLY|FCVAR_SERVER ) register_clcmd( "say" , "say_handle" ); //registering say handles register_clcmd( "say_team" , "say_handle" ); //registering say handles } public say_handle( plr ) { //say handle function static chat[ 175 ], name[ 32 ]; //creating variables to hold chat text and name read_args( chat , charsmax( chat ) ); //getting whatever user typed remove_quotes( chat ); //removing quotes from typed text if( equal( chat , "@" ) || equal( chat , "" ) || equali( chat , "/" )) return PLUGIN_CONTINUE; get_user_name( plr , name , charsmax( name ) ); // getting user name print( 0 , "\g[%s] \t%s: \y%s" , IsZombie( plr ) ? "ZOMBI" : "INSAN" , name , chat ); //exolent's hard coding :D log_amx( "%s -> [%s]%s: %s" , PLUGIN , IsZombie( plr ) ? "ZOMBI" : "INSAN" , name , chat ); return PLUGIN_HANDLED; //destroy original cs chat msg } stock print( const id , const input[ ] , any:... ) { //stock for other plugins to use color messages. new count = 1 , players[ 32 ] ; //defining that count start from 1, and maxplayer count array size 33(32+1) static msg[ 191 ] ; // message array holder vformat( msg , 190 , input , 3 ) ; //formatting input into msg[] array replace_all( msg , 190 , "\g" , "^4" ) ; // green txt replacement replace_all( msg , 190 , "\y" , "^1" ) ; // orange txt replacement replace_all( msg , 190 , "\t" , "^3" ) ; // team txt replacement if ( id ) players[ 0 ] = id ; else get_players( players , count , "ch" ) ; //if its sent to its own client //then we set players[0] to, othervise get player count :) for ( new i = 0 ; i < count ; i++ ) //from i to plr count each time after loop do a i++ to increment it by 1 //so it wouldnt stick at the 0 player, and again, and again... if ( is_user_connected( players[ i ] )) { //check if user is connected(the looped plr id) message_begin( MSG_ONE_UNRELIABLE , get_user_msgid( "SayText" ) , _ , players[ i ] ) ; //begin the msg write_byte( players[ i ] ) ; //write to all players(i) write_string( msg ) ; //and write the message message_end( ) ; //end it! } }Kod: Tümünü seç
\tZOMBI
| Link: | |
| Linklerini gizle |
-
By.King ►EmrullaH◄
Yasaklı Üye
- Mesajlar: 4297
- Kayıt: Cmt Şub 24, 2018 6:05 pm
- Konum: İstanbul
- İletişim:
Yüksek zıplama
Bu mesaja eklenen dosyaları görüntülemek için gerekli izinlere sahip değilsiniz.
| Link: | |
| Linklerini gizle |