Cerere Plugin Ceas

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
User avatar
Chowder;x
Membru, skill 0
Membru, skill 0
Posts: 19
Joined: 25 Jun 2012, 19:44
Detinator Steam: Da
CS Status: Joc pe propiul server.
Detinator server CS: CS.RSS-RO.com
SteamID: georg3x
Location: Bucuresti
Contact:

25 Jun 2012, 19:57

Salut, as vrea si eu pluginul acesta :

Image

Mai multe informatii : Pai il arata jos, si nu stiu cum dar la unele pluginuri imi dispare center_message. Vreau un plugin in asa cat sa fie si center message si clock in acelasi timp.
Image -Sa-Mp Player

Image -Counter Strike 1.6 Player

Steam User ~ Counter Strike 1.6 :D
RoyalServer
User avatar
tweky
Fost moderator
Fost moderator
Posts: 2705
Joined: 22 Jun 2009, 01:54
Detinator Steam: Da
CS Status: Inactiv
Detinator server CS: Da
SteamID: twekymihai
Reputatie: Fost eXtream Mod
Nume anterior: Mihaita
Fost Membru Club eXtreamCS
Location: Ilfov
Has thanked: 126 times
Been thanked: 173 times

25 Jun 2012, 20:45

Mutat in Prima pagină » eXtream - Counter-Strike 1.6 » Pluginuri » Cereri

EDIT: ia vezi boss acesta estE?
| Afiseaza codul
/********************************************************

    Show me the time plugin V1.2

    by flintst0nes http://flintst0nes.de.vu
    for   flintst0nes FUNSERVER   FAST DL
    visit steam CS1.6 @ 85.131.217.14:27025

**********************************************************

    This plugin for AMX Mod X displays the current
    server time, the time remaining on map and
    the next map coming up under the radar.

    Just install the plugin the usual way copying the
    amxx-file to addons/amxmodx/plugins and append
    showmethetime.amxx to your plugins.ini

**********************************************************

    CHANGELOG
    
    V1.25

    - added cutom msg support
    
    V1.2

    - added cvar to disable display
    - added cvars for custom positioning
    - added cvars for custom color

    V1.1

    - added cvar to hide nextmap and timeleft info

    V1.0

    - shows thetime, timeleft and nextmap

**********************************************************

    Cvars:

    amx_smtt_showinfo 0|1 default: 1
    toggles plugin activity (0 = off)

    amx_moreinfo 0|1 default: 1
    toggles timeleft and nextmap info (0 = off)

	amx_smtt_xpos 0.0 to 1.0 (floating point)
	set x position (upper left corner), default: 0.015

	amx_smtt_ypos 0 to 1 (floating point)
	set y position (upper left corner), default: 0.35

	amx_smtt_red 0 to 255 (integer)
	set display color red part, default: 0

	amx_smtt_green 0 to 255 (integer)
	set display color green part, default: 255

	amx_smtt_blue 0 to 255 (integer)
	set display color blue part, default: 0
	
	amx_smtt_custommsg "my custom string"
	displays a custom string, leave empty to disable, max 32 characters

**********************************************************/

#include <amxmodx>
#include <amxmisc>
#include <cstrike>

public plugin_init() {
	register_plugin("Show me the time","1.2","flintst0nes.de.vu")
	set_task(1.0,"Tick",0,_,_,"b")
	register_cvar("amx_smtt_showinfo","1",0)
	register_cvar("amx_smtt_moreinfo","1",0)
	register_cvar("amx_smtt_xpos","0.015",0)
	register_cvar("amx_smtt_ypos","0.35",0)
	register_cvar("amx_smtt_red","0",0)
	register_cvar("amx_smtt_green","255",0)
	register_cvar("amx_smtt_blue","0",0)
	register_cvar("amx_smtt_custommsg","flintst0nes.de.vu",0)
}

public Tick(){

    if(!get_cvar_num("amx_smtt_showinfo")){

        return PLUGIN_HANDLED

    }else{

        new players[32],num,i
        get_players(players,num)
        for(i = 0; i <= num; i++)
        {
            new id = players
            new timestring[31]
            new timeleft_minutes
            new timeleft_seconds
            new nextmap[31]
            new message[256]
            new custommessage[31]
			
            if(is_user_connected(id)) {

                get_time("%H:%M:%S",timestring,8)				
				get_cvar_string("amx_smtt_custommsg", custommessage, 31)
				
                if(get_cvar_num("amx_smtt_moreinfo")){

                    timeleft_minutes = get_timeleft()/60
                    timeleft_seconds = get_timeleft()%60

                    get_cvar_string("amx_nextmap",nextmap,31)
                                        
                    if( strcmp(custommessage, "",0) == 0 ){
                    
                    	format(message,255,"Thetime: %s^nTimeleft: %i:%i^nNextmap: %s", timestring, timeleft_minutes, timeleft_seconds, nextmap)
                    	
                    }else{
                    
                    	format(message,255,"%s^nThetime: %s^nTimeleft: %i:%i^nNextmap: %s",custommessage, timestring, timeleft_minutes, timeleft_seconds, nextmap)
                    	
                    }
                }else{
					if( strcmp(custommessage, "",0) == 0 ){
					
                    	format(message,255,"Thetime: %s", timestring)

                    }else{		                  	
                    
                    	format(message,255,"%s^nThetime: %s",custommessage, timestring)
                    	
                    }
                }
                set_hudmessage (get_cvar_num("amx_smtt_red"),get_cvar_num("amx_smtt_green"),get_cvar_num("amx_smtt_blue"), get_cvar_float("amx_smtt_xpos"), get_cvar_float("amx_smtt_ypos"), 0, 6.0, 2.0, 0.1, 0.2, 4 )
                show_hudmessage(id, message)

            }
        }
	}
    return PLUGIN_HANDLED
}
my website
:hand_over_mouth: :ghosts:

1. vevios.ro

2. minios.ro
User avatar
K1d0x
Fost moderator
Fost moderator
Posts: 800
Joined: 26 Feb 2012, 15:57
Detinator Steam: Da
CS Status: We Build Together ;3 RedFear
Detinator server CS: PuB.RedFear.Ro
SteamID: k1dox
Reputatie: Fost moderator ajutator
Location: Reșița
Been thanked: 152 times
Contact:

25 Jun 2012, 21:34

Iti dispare center_message din cauza ca prin show_hudmessage poti afisa doar un mesaj in acelasi timp nu 100 (doar daca combini toate plugin-urile cu hud, dar v-a fi un lag infernal)
Image
32slots.net - Sursa ta de încredere de KIT-uri CS 1.6
RedFear.Ro România - | Afiseaza codul
Vă aştept cu un Register pe Forum
- Suntem în căutare de Dezvoltatori & Administratori :
HTML
PHP
MYSQL
C++
Ofer Server CS spre administrare | Afiseaza codul
Condiții : 
- Să dispui de timp liber
- Să ai cunoștințe AMXX & HLDS
Boostul este asigurat de către Mine (PM pentru. detalii)
[email protected]
User avatar
Chowder;x
Membru, skill 0
Membru, skill 0
Posts: 19
Joined: 25 Jun 2012, 19:44
Detinator Steam: Da
CS Status: Joc pe propiul server.
Detinator server CS: CS.RSS-RO.com
SteamID: georg3x
Location: Bucuresti
Contact:

25 Jun 2012, 21:42

E bun dar, odata arata asta, odata arata centermessage. Nu pot face sa apara amandoua?
Image -Sa-Mp Player

Image -Counter Strike 1.6 Player

Steam User ~ Counter Strike 1.6 :D
User avatar
Chowder;x
Membru, skill 0
Membru, skill 0
Posts: 19
Joined: 25 Jun 2012, 19:44
Detinator Steam: Da
CS Status: Joc pe propiul server.
Detinator server CS: CS.RSS-RO.com
SteamID: georg3x
Location: Bucuresti
Contact:

26 Jun 2012, 11:27

Nu e ala, adica dispare centermessage. Dar pe niste servere am vazut pluginul care vi l-am arata si center message.
Image -Sa-Mp Player

Image -Counter Strike 1.6 Player

Steam User ~ Counter Strike 1.6 :D
User avatar
h4wk
Fost moderator
Fost moderator
Posts: 3806
Joined: 22 Sep 2009, 13:10
Detinator Steam: Da
Reputatie: Fost eXtream Mod
Nume anterior : DaZ , zimpe , Dan eXtream
Location: Iasi
Has thanked: 306 times
Been thanked: 321 times
Contact:

26 Jun 2012, 11:32

Try this :
| Afiseaza codul
#include <amxmodx> 

#include <amxmisc> 



new const PLUGIN[] = "New Plug-In" 

new const VERSION[] = "1.0" 

new const AUTHOR[] = "SAMURAI" 



new gCvar 



public plugin_init() 

{ 

   register_plugin(PLUGIN, VERSION, AUTHOR) 

   gCvar = register_cvar("allshow","1") 

   set_task(0.1,"showtime",0,"",0,"b") 

   set_task(1700.0,"timerepeat",0,"",0,"b",2); 

                          

} 





public showtime() 

{ 



   new timev[64] 

   get_time("%m/%d/%Y - %H:%M:%S",timev,63) 

   if(get_pcvar_num(gCvar) == 1) 

   { 

   set_hudmessage(255,255,255,0.06,0.1,0, 1.0, 3600.0, 0.1, 0.2, 13) 

   show_hudmessage(0, "The time is %s",timev) 

                 } 



} 

        



        



public timerepeat(id) 

{ 

        

   new mhours[6], mmins[6], whours[32], wmins[32], wpm[6] 

                

   get_time("%H", mhours, 5) 

   get_time("%M", mmins, 5) 

                

   new mins = str_to_num(mmins) 

   new hrs = str_to_num(mhours) 

                

   if (mins) 

          num_to_word(mins, wmins, 31) 

   else 

          wmins[0] = 0 

                

   if (hrs < 12) 

          wpm = "am " 

   else 

   { 

          if (hrs > 12) hrs -= 12 

          wpm = "pm " 

   } 



   if (hrs) 

          num_to_word(hrs, whours, 31) 

   else 

          whours = "twelve " 

                

   client_cmd(0, "spk ^"fvox/time_is_now %s_period %s%s^"", whours, wmins, wpm) 



        

   new ctime[64] 

        

   get_time("%m/%d/%Y - %H:%M:%S", ctime, 63) 

   client_print(0, print_chat, "The time is now: %s", ctime) 

        

   return PLUGIN_CONTINUE 

}

Code: Select all

"Daca ai culoare nu inseamna ca esti mai presus ca un utilizator. Culoare e un fel de "rasplata" pentru ca te implici in "ridicarea" acestei comunitati.
Unii nu realizeaza ca daca ai culoare nu inseamna ca esti smecher." -- by Alexey
:troll :troll

Spui ceva,dar faci altceva !
User avatar
Chowder;x
Membru, skill 0
Membru, skill 0
Posts: 19
Joined: 25 Jun 2012, 19:44
Detinator Steam: Da
CS Status: Joc pe propiul server.
Detinator server CS: CS.RSS-RO.com
SteamID: georg3x
Location: Bucuresti
Contact:

26 Jun 2012, 15:06

Asta e pluginul care anunta din ora in ora. Eu vreau sa fie permanent.
Image -Sa-Mp Player

Image -Counter Strike 1.6 Player

Steam User ~ Counter Strike 1.6 :D
User avatar
K1d0x
Fost moderator
Fost moderator
Posts: 800
Joined: 26 Feb 2012, 15:57
Detinator Steam: Da
CS Status: We Build Together ;3 RedFear
Detinator server CS: PuB.RedFear.Ro
SteamID: k1dox
Reputatie: Fost moderator ajutator
Location: Reșița
Been thanked: 152 times
Contact:

26 Jun 2012, 20:28

Posteaza center_message
Image
32slots.net - Sursa ta de încredere de KIT-uri CS 1.6
RedFear.Ro România - | Afiseaza codul
Vă aştept cu un Register pe Forum
- Suntem în căutare de Dezvoltatori & Administratori :
HTML
PHP
MYSQL
C++
Ofer Server CS spre administrare | Afiseaza codul
Condiții : 
- Să dispui de timp liber
- Să ai cunoștințe AMXX & HLDS
Boostul este asigurat de către Mine (PM pentru. detalii)
[email protected]
User avatar
Chowder;x
Membru, skill 0
Membru, skill 0
Posts: 19
Joined: 25 Jun 2012, 19:44
Detinator Steam: Da
CS Status: Joc pe propiul server.
Detinator server CS: CS.RSS-RO.com
SteamID: georg3x
Location: Bucuresti
Contact:

26 Jun 2012, 21:00

Code: Select all

#include <amxmodx>

#define PLUGIN "Center Message"
#define VERSION "1.0"
#define AUTHOR "Rusu"

#define TASK_INTERVAL 8.0

new const hud_messages[][] = {
	
	"DR.RSS-RO.com [ DeathRun and FUN ]"
};
public plugin_init()
{
	register_plugin( PLUGIN, VERSION, AUTHOR );
	set_task( TASK_INTERVAL, "RandomHudWithRandomColors", 0, "", 0, "b"  );
}
public RandomHudWithRandomColors()
{
	set_hudmessage( random_num( 0, 255 ), random_num( 0, 255 ), random_num( 0, 255 ), -1.0, 0.0, random_num( 0, 2 ), 6.0, 8.0 );
	show_hudmessage( 0, "%s", hud_messages[ random_num( 0, charsmax( hud_messages ) ) ] );
}
La ce te-ar ajuta center_message? Eu am zis ca vreau plugin cu ceas :| Am vazut pe ogramada servere de DR ca au center message si au si acel plugin cu ceas.
Image -Sa-Mp Player

Image -Counter Strike 1.6 Player

Steam User ~ Counter Strike 1.6 :D
User avatar
KronoS eXtream
Fost administrator
Fost administrator
Posts: 4378
Joined: 02 Apr 2009, 19:18
Detinator Steam: Da
Reputatie: Fost administrator
Fost detinator Zombie-Land.eXtream.Ro
Contribuitor
Fost Scripter eXtreamCS
Dezvoltator al listei de seriozitate eXtreamCS
Location: Bucharest
Has thanked: 551 times
Been thanked: 820 times
Contact:

26 Jun 2012, 22:06

K1d0x wrote:Iti dispare center_message din cauza ca prin show_hudmessage poti afisa doar un mesaj in acelasi timp nu 100 (doar daca combini toate plugin-urile cu hud, dar v-a fi un lag infernal)
Salut!

Exista patru canale pentru mesaje HUD , fiecare suportand cate doua mesaje.Deci poti sa afisezi opt mesaje HUD in acelasi timp :)
| Afiseaza codul
#include < amxmodx >
#include < engine >

#define PLUGIN "Ora"
#define VERSION "1.0"
#define AUTHOR "Neo"

new g_ClassName[ ] = "ora";
new g_SyncTimeDate;

public plugin_init( ) 
{
    register_plugin( PLUGIN, VERSION, AUTHOR );
    
    register_think( g_ClassName,"fw_TimeDateThink" );
    
    g_SyncTimeDate = CreateHudSyncObj( );
    
    new iEnt = create_entity( "info_target" );
    entity_set_string( iEnt, EV_SZ_classname, g_ClassName );
    entity_set_float( iEnt, EV_FL_nextthink, get_gametime( ) + 1.0 );
}

public fw_TimeDateThink( iEnt )
{
    new time[32];
    get_time( "Time: %H:%M:%S", time, 31 );
    
    set_hudmessage( 128, 128, 128, 0.8, 0.2, _, _, 1.0, _, _, -1 );
    ShowSyncHudMsg( 0, g_SyncTimeDate, "%s", time );
    
    entity_set_float( iEnt, EV_FL_nextthink, get_gametime( ) + 1.0 );
}
Modifici tu culoarea si pozitia :)
Nu efectuez tranzactii pe mess, skype etc. Aveti grija la indivizii care se dau drept mine!
Nu mai ofer suport asa ca nu imi mai trimiteti mesaje in legatura cu asta!


Zombie Plague Shade 1.2-debug1 [with Item Limiter] (12 September 2015) - Bombardier Branch
User avatar
Chowder;x
Membru, skill 0
Membru, skill 0
Posts: 19
Joined: 25 Jun 2012, 19:44
Detinator Steam: Da
CS Status: Joc pe propiul server.
Detinator server CS: CS.RSS-RO.com
SteamID: georg3x
Location: Bucuresti
Contact:

27 Jun 2012, 11:52

Asa apare la mine :
Image

Vreau sa apara asa :
Image
Image -Sa-Mp Player

Image -Counter Strike 1.6 Player

Steam User ~ Counter Strike 1.6 :D
User avatar
K1d0x
Fost moderator
Fost moderator
Posts: 800
Joined: 26 Feb 2012, 15:57
Detinator Steam: Da
CS Status: We Build Together ;3 RedFear
Detinator server CS: PuB.RedFear.Ro
SteamID: k1dox
Reputatie: Fost moderator ajutator
Location: Reșița
Been thanked: 152 times
Contact:

27 Jun 2012, 12:28

Poftim
| Afiseaza codul
#include < amxmodx >
#include < engine >

#define PLUGIN "Ora"
#define VERSION "1.0"
#define AUTHOR "Neo"

new g_ClassName[ ] = "ora";
new g_SyncTimeDate;

public plugin_init( ) 
{
    register_plugin( PLUGIN, VERSION, AUTHOR );
    
    register_think( g_ClassName,"fw_TimeDateThink" );
    
    g_SyncTimeDate = CreateHudSyncObj( );
    
    new iEnt = create_entity( "info_target" );
    entity_set_string( iEnt, EV_SZ_classname, g_ClassName );
    entity_set_float( iEnt, EV_FL_nextthink, get_gametime( ) + 1.0 );
}

public fw_TimeDateThink( iEnt )
{
    new time[32];
    get_time( "Time: %H:%M:%S", time, 31 );
    
    set_hudmessage( 128, 128, 128, -1.0, 0.87, _, _, 1.0, _, _, -1 );
    ShowSyncHudMsg( 0, g_SyncTimeDate, "%s", time );
    
    entity_set_float( iEnt, EV_FL_nextthink, get_gametime( ) + 1.0 );
}
Image
32slots.net - Sursa ta de încredere de KIT-uri CS 1.6
RedFear.Ro România - | Afiseaza codul
Vă aştept cu un Register pe Forum
- Suntem în căutare de Dezvoltatori & Administratori :
HTML
PHP
MYSQL
C++
Ofer Server CS spre administrare | Afiseaza codul
Condiții : 
- Să dispui de timp liber
- Să ai cunoștințe AMXX & HLDS
Boostul este asigurat de către Mine (PM pentru. detalii)
[email protected]
Post Reply

Return to “Cereri”

  • Information