User
Pass
2FA
 
 

Colors

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Resources
Author Message877
r3p

[Mentally Stable]



Status: Offline
(since 06-09-2013 11:53)
Joined: 24 Jul 2013
Posts: 10, Topics: 3
Location: Romania

Reputation: 33.4
Votes: 1

Post Posted: 25-07-2013, 15:00:59 | Translate post to: ... (Click for more languages)

Descriere :

* Comanda : /colors
* Ce face ? : iti afiseaza un meniu prin care iti pot alege culoarea chatului !
* Culori disponibile { Negru, Gri, Alb, Albastru, Verde, Galben, Roz }
* Author : eu , bineinteles

Sursa:

Code:
#include < amxmodx >

#define PLUGIN "Menu Colors"
#define VERSION "1.0"
#define AUTHOR "r3p"


public plugin_init ( ) {
   register_plugin ( PLUGIN, VERSION, AUTHOR );
   
   register_clcmd ( "say /colors", "ShowMenu", -1 );
}

public ShowMenu ( id ) {   

   new menu = menu_create ( "Alege culoarea chatului : ", "MenuGiver" );

   menu_additem ( menu, "Negru", "1", 0 );
   menu_additem ( menu, "Gri", "2", 0 );
   menu_additem ( menu, "Alb", "3", 0 );
   menu_additem ( menu, "Albastru", "4", 0 );
   menu_additem ( menu, "Verde", "5", 0 );
   menu_additem ( menu, "Galben", "6", 0 );
   menu_additem ( menu, "Roz", "7", 0 );
   
   menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
   menu_display ( id, menu, 0 );

   return 1;
}

public MenuGiver ( id, menu, item ) {
   
   if ( item == MENU_EXIT )
   {
      return 1;
   }
   
   new data [ 6 ], szName [ 64 ];
   new access, callback;
   menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
   new key = str_to_num ( data );
   
   switch ( key )
   {
      case 1:
      {
         client_cmd(id, "con_color 0+0+0")
      }

      case 2:
      {
         client_cmd(id, "con_color 90+90+90")
      }

      case 3:
      {
         client_cmd(id, "con_color 255+255+255")
      }
      case 4:
      {
         client_cmd(id, "con_color 0+0+255") // albastru
      }
      case 5:
      {
         client_cmd(id, "con_color 0+255+0") // verde
      }
      case 6:
      {
         client_cmd(id, "con_color 255+255+0") // galben
      }
      case 7:
      {
         client_cmd(id, "con_color 255+0+204") // roz
      }
   }
   
   menu_destroy ( menu );
   return 1;
   
}


[size=150]My amxmodx website in romana > http://amxmodx-ro.tk/[/size]
0 0
  
Back to top
View user's profile Send private message
Happy =]]

[I'm in your mind !]



Status: Offline
(since 02-05-2020 11:17)
Joined: 17 Mar 2012
Posts: 10538, Topics: 450
Location: In mintea ta !

Reputation: 553
Votes: 204

         
Post Posted: 25-07-2013, 16:56:22 | Translate post to: ... (Click for more languages)

Mi se pare nefolositor din moment ce iti poti alege tu culoarea singur din propriul cs.





Pentru orice problema PM.
Nu ofer asistenta in privat.

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
D4mage

[Gum!Tz@]



Status: Offline
(since 08-06-2015 16:55)
Joined: 06 Apr 2013
Posts: 1324, Topics: 32
Location: Romania

Reputation: 238.5
Votes: 20

 
Post Posted: 25-07-2013, 18:16:02 | Translate post to: ... (Click for more languages)

da ai dreptate chost - dar daca se refera la intregul cs dar daca la serv pune admin_colors si ii mai bn -


0 0
  
Back to top
View user's profile Send private message
r3p

[Mentally Stable]



Status: Offline
(since 06-09-2013 11:53)
Joined: 24 Jul 2013
Posts: 10, Topics: 3
Location: Romania

Reputation: 33.4
Votes: 1

Post Posted: 26-07-2013, 13:09:36 | Translate post to: ... (Click for more languages)

Happy =]] wrote:
Mi se pare nefolositor din moment ce iti poti alege tu culoarea singur din propriul cs.


Iti poti alege din propriul cs ?
Cuk adik din optiunu ?
aaa te referi la con_color ?

Poi si ce aia amatori stiu toate codurile la culori nui mai usor sa dai /colors si bam iti alegi ...


[size=150]My amxmodx website in romana > http://amxmodx-ro.tk/[/size]
0 0
  
Back to top
View user's profile Send private message
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Resources  


The time now is 24-08-2025, 06:46:55
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password