Happy halloween!

,


TOPIC INCHIS!  
TOPIC LOCKED
Va informam ca pana la redeschiderea topicului doar cei din administratie vor putea continua sa posteze daca mai au ceva de adaugat si este strict necesar.

 [ 6 posts ] 
[Rezolvat] CERERE PLUGIN SHOP 
Author Message
Membru
User avatar
Posts: 83
Membru din: Tue Jan 01, 2019 11:32 pm
Status: Offline
Puncte: 83 - NOOB
Multumiri date: 2 times

Multumiri primite: 2 times
Detinator Steam: Da
SteamID: nu.

SALUT, AS DORII UN PLUGIN DE SHOP , MAI EXACT CU CREDITE , AM PLUGINUL CSO_CREDITE IAR CAND PUN SHOPUL NU FUNCTIONEAZA SI MA ENERVEAZA SI D-ASTA M-AM DECIS SA APELEZ LA SCRIPTERII SI BAIETII D-AICI! :0 :))










CSGAMERS.RO - SEMNATURAImage

Image

Image



Fri Jan 18, 2019 11:13 am
Fondator
User avatar
Posts: 1734
Membru din: Thu Sep 03, 2015 2:39 pm
Location: RO - DE
Age: 23
Status: Offline
Puncte: 1734 - TURBAT
Multumiri date: 18 times

Multumiri primite: 231 times
SteamID: Aneimar

Incearca .
Code:
/* Plugin generated by AMXX-Studio */

#include < amxmodx >
#include < cstrike >
#include < fakemeta >
#include < hamsandwich >
#include < fun >

#define PLUGIN "BaseBuilder Credits Shop"
#define VERSION "1.0.2"

#define is_user_player(%1) ( 1 <= %1 <= 32 )

native fcs_get_user_credits(client);
native fcs_set_user_credits(client, credits);


stock fcs_add_user_credits(client, credits)
{
   return fcs_set_user_credits(client, fcs_get_user_credits(client) + credits);
}

stock fcs_sub_user_credits(client, credits)
{
   return fcs_set_user_credits(client, fcs_get_user_credits(client) - credits);
}

enum Color
{
   NORMAL = 1,       // Culoarea care o are jucatorul setata in cvar-ul scr_concolor.
   GREEN,          // Culoare Verde.
   TEAM_COLOR,       // Culoare Rosu, Albastru, Gri.
   GREY,          // Culoarea Gri.
   RED,          // Culoarea Rosu.
   BLUE,          // Culoarea Albastru.
}

new TeamName[  ][  ] =
{
   "",
   "TERRORIST",
   "CT",
   "SPECTATOR"
}

new const g_szTag[ ] = "[BB Shop]";
new g_szMenuName[ ] = "\rBB\y SHOP";

enum _:iCvars
{
   ENABLE,
   
   NADES_PRICE,
   NADES_TO,
   
   HP_PRICE,
   HP_AMOUNT,
   HP_TO,
   
   AP_PRICE,
   AP_AMOUNT,
   AP_TO,
   
   SK_PRICE,
   SK_TO,
   SK_DURATION,
   
   SPEED_PRICE,
   SPEED_AMOUNT,
   SPEED_DURATION,
   SPEED_TO,
   
   GRAVITY_PRICE,
   GRAVITY_AMOUNT,
   GRAVITY_DURATION,
   GRAVITY_TO
   
   
}

enum _:WhatUserHas
{
   SPEED,
   GRAVITY,
   SK
}

new g_iCvar[ iCvars ];
new bool:g_bUserHas[ 33 ][ WhatUserHas ];

// Do not modify this.
new Ham:Ham_Player_ResetMaxSpeed = Ham_Item_PreFrame;

new SkModelV[  ] = "models/basebuilder/v_sk.mdl";
new SkModelP[  ] = "models/basebuilder/p_sk.mdl";

public plugin_init( )
{
   register_plugin( PLUGIN, VERSION, "Askhanar" );
   register_cvar( "fcs_shop_version", VERSION, FCVAR_SERVER | FCVAR_SPONLY );
   
   g_iCvar[ ENABLE ] = register_cvar( "fcsshop_enable", "1" );
   
   g_iCvar[ NADES_PRICE ] = register_cvar( "fcsshop_nades_price", "25" );
   g_iCvar[ NADES_TO ] = register_cvar( "fcsshop_nades_team", "1" );
   
   g_iCvar[ HP_PRICE ] = register_cvar( "fcsshop_hp_price", "60" );
   g_iCvar[ HP_AMOUNT ] = register_cvar( "fcsshop_hp_amount", "300" );
   g_iCvar[ HP_TO ] = register_cvar( "fcsshop_hp_team", "3" );
   
   g_iCvar[ AP_PRICE ] = register_cvar( "fcsshop_ap_price", "55" );
   g_iCvar[ AP_AMOUNT ] = register_cvar( "fcsshop_ap_amount", "500" );
   g_iCvar[ AP_TO ] = register_cvar( "fcsshop_ap_team", "3" );
   
   g_iCvar[ SK_PRICE ] = register_cvar( "fcsshop_sk_price", "100" );
   g_iCvar[ SK_TO ] = register_cvar( "fcsshop_sk_team", "1" );
   g_iCvar[ SK_DURATION ] = register_cvar( "fcsshop_sk_duration", "1" );
   
   g_iCvar[ SPEED_PRICE ] = register_cvar( "fcsshop_speed_price", "75" );
   g_iCvar[ SPEED_AMOUNT ] = register_cvar( "fcsshop_speed_amount", "500" );
   g_iCvar[ SPEED_DURATION ] = register_cvar( "fcsshop_speed_duration", "1" );
   g_iCvar[ SPEED_TO ] = register_cvar( "fcsshop_speed_team", "2" );
   
   g_iCvar[ GRAVITY_PRICE ] = register_cvar( "fcsshop_gravity_price", "80" );
   g_iCvar[ GRAVITY_AMOUNT ] = register_cvar( "fcsshop_gravity_amount", "300" );
   g_iCvar[ GRAVITY_DURATION ] = register_cvar( "fcsshop_gravity_duration", "1" );
   g_iCvar[ GRAVITY_TO ] = register_cvar( "fcsshop_gravity_team", "2" );
   
   register_clcmd( "say shop", "ClCmdSayShop" );
   register_clcmd( "say_team shop", "ClCmdSayShop" );
   register_clcmd( "say /hop", "ClCmdSayShop" );
   register_clcmd( "say_team /shop", "ClCmdSayShop" );
   
   RegisterHam( Ham_Spawn, "player", "ham_PlayerSpawnPre", true );
   RegisterHam( Ham_Killed, "player", "ham_PlayerKilledPre",true );
   RegisterHam( Ham_Player_ResetMaxSpeed, "player", "ham_PlayerResetMaxSpeedPre", true );
   RegisterHam( Ham_TakeDamage, "player", "Ham_TakeDamagePre" );

   // Add your code here...
}

public plugin_precache(  ) {

   precache_model( SkModelV );
   precache_model( SkModelP );
}

public client_putinserver( id )
{
   if( is_user_bot( id ) || is_user_hltv( id ) )
      return;
      
   g_bUserHas[ id ][ SPEED ] = false;
   g_bUserHas[ id ][ GRAVITY ] = false;
   g_bUserHas[ id ][ SK ] = false;
   
}

public client_disconnect( id )
{
   if( is_user_bot( id ) || is_user_hltv( id ) )
      return;
      
   g_bUserHas[ id ][ SPEED ] = false;
   g_bUserHas[ id ][ GRAVITY ] = false;
   g_bUserHas[ id ][ SK ] = false;
   
}

public ClCmdSayShop( id )
{
   
   
   if( get_pcvar_num( g_iCvar[ ENABLE ] ) == 0 )
   {
      ColorChat( id, RED, "^x04%s^x03 Comanda dezactivata de catre server!", g_szTag );
      return PLUGIN_HANDLED;
   }
   
   if( !is_user_alive( id ) )
   {
      ColorChat( id, RED, "^x04%s^x03 Trebuie sa fii in viata!", g_szTag );
      return PLUGIN_HANDLED;
   }
   
   
   ShopMenu( id );
   return PLUGIN_HANDLED;
   
}

public ShopMenu( id )
{
   new szMenuName[ 64 ];
   formatex( szMenuName, sizeof ( szMenuName ) -1, "%s^n\yCredite: \r%i", g_szMenuName, fcs_get_user_credits( id ) );
   new iMenu = menu_create( szMenuName, "ShopMenuHandler" );   
   new iCallBack  =  menu_makecallback( "CallBackShop" );
   
   new szBuffer[ 6 ][ 64 ], szBufferKey[ 5 ], iBufferKey = 1;
   formatex( szBuffer[ 0 ], sizeof ( szBuffer[ ] ) -1, "\r[ \yFULL\r ] \wGrenades\y       [\r %iC\y ]", get_pcvar_num( g_iCvar[ NADES_PRICE ] ) );
   formatex( szBuffer[ 1 ], sizeof ( szBuffer[ ] ) -1, "\r[ \y%i\r ] \wHP\y                [\r %iC\y ]", get_pcvar_num( g_iCvar[ HP_AMOUNT ] ), get_pcvar_num( g_iCvar[ HP_PRICE ] ) )
   formatex( szBuffer[ 2 ], sizeof ( szBuffer[ ] ) -1, "\r[ \y%i\r ] \wAP\y                  [\r %iC\y ]", get_pcvar_num( g_iCvar[ AP_AMOUNT ] ), get_pcvar_num( g_iCvar[ AP_PRICE ] ) )
   formatex( szBuffer[ 3 ], sizeof ( szBuffer[ ] ) -1, "\wSuper Knife\y          [\r %iC\y ]", get_pcvar_num( g_iCvar[ SK_PRICE ] ) );
   formatex( szBuffer[ 4 ], sizeof ( szBuffer[ ] ) -1, "\r[ \y%.1f\r ] \wSpeed\y          [\r %iC\y ]", float( get_pcvar_num( g_iCvar[ SPEED_AMOUNT ] ) ), get_pcvar_num( g_iCvar[ SPEED_PRICE ] ) );
   formatex( szBuffer[ 5 ], sizeof ( szBuffer[ ] ) -1, "\r[ \y%i\r ] \wGravity\y            [\r %iC\y ]", get_pcvar_num( g_iCvar[ GRAVITY_AMOUNT ] ), get_pcvar_num( g_iCvar[ GRAVITY_PRICE ] ) );
   
   for( new i = 0; i < 6; i++ )
   {
      formatex( szBufferKey, sizeof ( szBufferKey ) -1, "%i", iBufferKey );
      menu_additem( iMenu, szBuffer[ i ], szBufferKey, _, iCallBack );
      
      iBufferKey++;
   }
   
   menu_setprop( iMenu, MPROP_EXITNAME, "\wIesire" );
   
   menu_display( id, iMenu, 0 );

}

/*=======================================================================================s=P=u=f=?*/

public ShopMenuHandler( id, iMenu, iItem )
{
   if( iItem == MENU_EXIT )
   {
      menu_destroy( iMenu );
      return 1PLUGIN_HANDLED;
   }
   
   new data[ 6 ], iName[ 64 ];
   new iaccess, callback;
   
   menu_item_getinfo( iMenu, iItem, iaccess, data, 5, iName, 63, callback );
   
   new key = str_to_num( data );
   //new page = floatround( str_to_float( data ) / 7.0001, floatround_floor );
   
   menu_destroy( iMenu );
   switch( key )
   {
      case 1:
      {
         new iCredits, iNeededCredits;
         iCredits = fcs_get_user_credits( id );
         iNeededCredits = get_pcvar_num( g_iCvar[ NADES_PRICE ] );
         
         if( iCredits < iNeededCredits )
         {
            ColorChat( id, RED, "^x04%s^x03 NU^x01 ai destule credite, iti mai trebuie^x03 %i credite^x01 !", g_szTag, iNeededCredits - iCredits );
            return PLUGIN_HANDLED;
         }
         
         if( bUserHasAnyNade( id ) )
         {
            ColorChat( id, RED, "^x04%s^x03 Ai cel putin o grenada in mana, nu poti cumpara altele!", g_szTag );
            return PLUGIN_HANDLED;
         }
         
         fcs_sub_user_credits( id, iNeededCredits );
         ColorChat( id, RED, "^x04%s^x01 Ai cumparat^x03 FULL Grenades^x01 pentru^x03 %i credite^x01 !", g_szTag, iNeededCredits );
         
         give_item( id, "weapon_hegrenade" );
         give_item( id, "weapon_flashbang" );
         give_item( id, "weapon_flashbang" );
         give_item( id, "weapon_smokegrenade" );
         
      }
      
      case 2:
      {
         new iCredits, iNeededCredits;
         iCredits = fcs_get_user_credits( id );
         iNeededCredits = get_pcvar_num( g_iCvar[ HP_PRICE ] );
         
         if( iCredits < iNeededCredits )
         {
            ColorChat( id, RED, "^x04%s^x03 NU^x01 ai destule credite, iti mai trebuie^x03 %i credite^x01 !", g_szTag, iNeededCredits - iCredits );
            return PLUGIN_HANDLED;
         }
         
         fcs_sub_user_credits( id, iNeededCredits );
         
         new iHP = get_pcvar_num( g_iCvar[ HP_AMOUNT ] );
         ColorChat( id, RED, "^x04%s^x01 Ai cumparat^x03 %i HP^x01 pentru^x03 %i credite^x01 !", g_szTag, iHP, iNeededCredits );
         
         set_user_health( id, get_user_health( id ) + iHP );
         
      }
      
      case 3:
      {
         new iCredits, iNeededCredits;
         iCredits = fcs_get_user_credits( id );
         iNeededCredits = get_pcvar_num( g_iCvar[ AP_PRICE ] );
         
         if( iCredits < iNeededCredits )
         {
            ColorChat( id, RED, "^x04%s^x03 NU^x01 ai destule credite, iti mai trebuie^x03 %i credite^x01 !", g_szTag, iNeededCredits - iCredits );
            return PLUGIN_HANDLED;
         }
         
         fcs_sub_user_credits( id, iNeededCredits );
         
         new iAP = get_pcvar_num( g_iCvar[ AP_AMOUNT ] );
         ColorChat( id, RED, "^x04%s^x01 Ai cumparat^x03 %i AP^x01 pentru^x03 %i credite^x01 !", g_szTag, iAP, iNeededCredits );
         
         set_user_armor( id, get_user_armor( id ) + iAP );
         
      }
      
      case 4:
      {
         new iCredits, iNeededCredits;
         iCredits = fcs_get_user_credits( id );
         iNeededCredits = get_pcvar_num( g_iCvar[ SK_PRICE ] );
         
         if( iCredits < iNeededCredits )
         {
            ColorChat( id, RED, "^x04%s^x03 NU^x01 ai destule credite, iti mai trebuie^x03 %i credite^x01 !", g_szTag, iNeededCredits - iCredits );
            return PLUGIN_HANDLED;
         }
            
         fcs_sub_user_credits( id, iNeededCredits );
      
         ColorChat( id, RED, "^x04%s^x01 Ai cumparat^x03 %i Super Jnife^x01 pentru^x03 %i credite^x01 !", g_szTag, iNeededCredits );
         
         engclient_cmd( id, "weapon_knife" );
         g_bUserHas[ id ][ SK ] = true;
         set_pev( id, pev_viewmodel2, SkModelV );
         set_pev( id, pev_viewmodel, SkModelP );
      }
      
      case 5:
      {
         new iCredits, iNeededCredits;
         iCredits = fcs_get_user_credits( id );
         iNeededCredits = get_pcvar_num( g_iCvar[ SPEED_PRICE ] );
         
         if( iCredits < iNeededCredits )
         {
            ColorChat( id, RED, "^x04%s^x03 NU^x01 ai destule credite, iti mai trebuie^x03 %i credite^x01 !", g_szTag, iNeededCredits - iCredits );
            return PLUGIN_HANDLED;
         }
         
         fcs_sub_user_credits( id, iNeededCredits );
         
         new iSpeed = get_pcvar_num( g_iCvar[ SPEED_AMOUNT ] );
         ColorChat( id, RED, "^x04%s^x01 Ai cumparat^x03 %.1f Speed^x01 pentru^x03 %i credite^x01 !", g_szTag, float( iSpeed ), iNeededCredits );
         
         g_bUserHas[ id ][ SPEED ] = true;
         engfunc( EngFunc_SetClientMaxspeed, id, float( iSpeed )  );
         set_pev( id,  pev_maxspeed, float( iSpeed ) );
         
         /*   SlowHack o_O
         client_cmd( id, "cl_forwardspeed %0.1f;cl_sidespeed %0.1f;cl_backspeed %0.1f", float( iSpeed ), float( iSpeed ), float( iSpeed ) );
         */
      }
      
      case 6:
      {
         new iCredits, iNeededCredits;
         iCredits = fcs_get_user_credits( id );
         iNeededCredits = get_pcvar_num( g_iCvar[ GRAVITY_PRICE ] );
         
         if( iCredits < iNeededCredits )
         {
            ColorChat( id, RED, "^x04%s^x03 NU^x01 ai destule credite, iti mai trebuie^x03 %i credite^x01 !", g_szTag, iNeededCredits - iCredits );
            return PLUGIN_HANDLED;
         }
         
         fcs_sub_user_credits( id, iNeededCredits );
         
         new iGravity = get_pcvar_num( g_iCvar[ GRAVITY_AMOUNT ] );
         ColorChat( id, RED, "^x04%s^x01 Ai cumparat^x03 %i Gravity^x01 pentru^x03 %i credite^x01 !", g_szTag, iGravity, iNeededCredits );
         
         set_user_gravity( id, float( iGravity ) * 0.00125 );
         g_bUserHas[ id ][ GRAVITY ] = true;
      }
      
   }
   
   return PLUGIN_CONTINUE;
   
}

public CallBackShop( id, iMenu, iItem  )
{
   static _access, szInfo[ 4 ],  callback;
   menu_item_getinfo( iMenu, iItem, _access, szInfo, sizeof ( szInfo ) -1, _, _, callback );
   
   //if( szInfo[ 0 ] == '0' )   return ITEM_ENABLED;
   
    if( szInfo[ 0 ] == '1' )
   {
      if( get_pcvar_num( g_iCvar[ NADES_TO ] ) == 3 || fcs_get_user_team( id ) == get_pcvar_num( g_iCvar[ NADES_TO ] ) )
         return ITEM_ENABLED;
   }
   else if( szInfo[ 0 ] == '2' )
   {
      if( get_pcvar_num( g_iCvar[ HP_TO ] ) == 3 || fcs_get_user_team( id ) == get_pcvar_num( g_iCvar[ HP_TO ] ) )
         return ITEM_ENABLED;
   }
   else if( szInfo[ 0 ] == '3' )
   {
      if( get_pcvar_num( g_iCvar[ AP_TO ] ) == 3 || fcs_get_user_team( id ) == get_pcvar_num( g_iCvar[ AP_TO ] ) )
         return ITEM_ENABLED;
   }
   else if( szInfo[ 0 ] == '4' )
   {
      if( get_pcvar_num( g_iCvar[ SK_TO ] ) == 3 || fcs_get_user_team( id ) == get_pcvar_num( g_iCvar[ SK_TO] ) )
         return ITEM_ENABLED;
   }
   else if( szInfo[ 0 ] == '5' )
   {
      if( get_pcvar_num( g_iCvar[ SPEED_TO ] ) == 3 || fcs_get_user_team( id ) == get_pcvar_num( g_iCvar[ SPEED_TO ] ) )
         return ITEM_ENABLED;
   }
   
   else if( szInfo[ 0 ] == '6' )
   {
      if( get_pcvar_num( g_iCvar[ GRAVITY_TO ] ) == 3 || fcs_get_user_team( id ) == get_pcvar_num( g_iCvar[ GRAVITY_TO ] ) )
         return ITEM_ENABLED;
   }
   
   return ITEM_DISABLED;
}

public ham_PlayerSpawnPre(  id  )
{
   
   if( is_user_alive( id ) )
   {
      
      if( get_pcvar_num( g_iCvar[ SPEED_DURATION ] ) == 1 )
      {
         if( g_bUserHas[ id ][ SPEED ] )
         {
            new iSpeed = get_pcvar_num( g_iCvar[ SPEED_AMOUNT ] );
            engfunc( EngFunc_SetClientMaxspeed, id, float( iSpeed )  );
            set_pev( id,  pev_maxspeed, float( iSpeed ) );
            
            /*   SlowHack o_O
            client_cmd( id, "cl_forwardspeed %0.1f;cl_sidespeed %0.1f;cl_backspeed %0.1f", float( iSpeed ), float( iSpeed ), float( iSpeed ) );
            */
         }
      }
      else
         g_bUserHas[ id ][ SPEED ] = false;
         
      if( get_pcvar_num( g_iCvar[ GRAVITY_DURATION ] ) == 1 )
      {
         if( g_bUserHas[ id ][ GRAVITY ] )
            set_user_gravity( id, float( get_pcvar_num( g_iCvar[ GRAVITY_AMOUNT ] ) ) * 0.00125 );
      }
      else
         g_bUserHas[ id ][ GRAVITY ] = false;
      
      if( get_pcvar_num( g_iCvar[ SK_DURATION ] ) == 1 )
      {
         if( g_bUserHas[ id ][ SK ] )
            g_bUserHas[ id ][ SK ] = true;
      }
      else
         g_bUserHas[ id ][ SK ] = false;
   }
}


/*======================================= - ¦ Askhanar ¦ - =======================================*/

public ham_PlayerKilledPre(  id  )
{
   g_bUserHas[ id ][ SPEED ] = false;
   g_bUserHas[ id ][ GRAVITY ] = false;
   g_bUserHas[ id ][ SK ] = false;
}

public ham_PlayerResetMaxSpeedPre( id )
{

   if( is_user_alive( id )  /*&&  get_user_maxspeed(  id  )  !=  1.0*/  )
   {
      
      if( g_bUserHas[ id ][ SPEED ] )
      {
   
         static Float:flMaxSpeed;
         flMaxSpeed = float( get_pcvar_num( g_iCvar[ SPEED_AMOUNT ] ) );
         
         engfunc( EngFunc_SetClientMaxspeed, id, flMaxSpeed  );
         set_pev( id, pev_maxspeed, flMaxSpeed  );
         
      }
      
      
      /*   SlowHack o_O
         client_cmd(  id,  "cl_forwardspeed %0.1f;cl_sidespeed %0.1f;cl_backspeed %0.1f", flMaxSpeed, flMaxSpeed, flMaxSpeed );
      */
   }
}

public Ham_TakeDamagePre( iVictim, iInflictor, iAttacker, Float:fDamage ) {

   if( iVictim == iAttacker || !is_user_player( iAttacker ) )
      return HAM_HANDLED;

   if( is_user_player( iAttacker ) && get_user_weapon( iAttacker ) == CSW_KNIFE && g_bUserHas[ iAttacker ][ SK ] )
      SetHamParamFloat( 4, fDamage * 2.0 );

   return HAM_IGNORED;
}

stock bool:bUserHasAnyNade( id )
{
   
   if( user_has_weapon( id, CSW_HEGRENADE ) || user_has_weapon( id, CSW_FLASHBANG )
      || user_has_weapon( id, CSW_SMOKEGRENADE ) )
      return true;
      
   return false;
   
}

stock fcs_get_user_team( id )
{
   new iTeam = -1;
   if( cs_get_user_team( id ) == CS_TEAM_T )   iTeam = 1;
   else if( cs_get_user_team( id ) == CS_TEAM_CT )   iTeam = 2;
   
   return iTeam;
}

ColorChat(  id, Color:iType, const msg[  ], { Float, Sql, Result, _}:...  )
{
   
   // Daca nu se afla nici un jucator pe server oprim TOT. Altfel dam de erori..
   if( !get_playersnum( ) ) return;
   
   new szMessage[ 256 ];

   switch( iType )
   {
       // Culoarea care o are jucatorul setata in cvar-ul scr_concolor.
      case NORMAL:   szMessage[ 0 ] = 0x01;
      
      // Culoare Verde.
      case GREEN:   szMessage[ 0 ] = 0x04;
      
      // Alb, Rosu, Albastru.
      default:    szMessage[ 0 ] = 0x03;
   }

   vformat(  szMessage[ 1 ], 251, msg, 4  );

   // Ne asiguram ca mesajul nu este mai lung de 192 de caractere.Altfel pica server-ul.
   szMessage[ 192 ] = '^0';
   

   new iTeam, iColorChange, iPlayerIndex, MSG_Type;
   
   if( id )
   {
      MSG_Type  =  MSG_ONE_UNRELIABLE;
      iPlayerIndex  =  id;
   }
   else
   {
      iPlayerIndex  =  CC_FindPlayer(  );
      MSG_Type = MSG_ALL;
   }
   
   iTeam  =  get_user_team( iPlayerIndex );
   iColorChange  =  CC_ColorSelection(  iPlayerIndex,  MSG_Type, iType);

   CC_ShowColorMessage(  iPlayerIndex, MSG_Type, szMessage  );
      
   if(  iColorChange  )   CC_Team_Info(  iPlayerIndex, MSG_Type,  TeamName[ iTeam ]  );

}

CC_ShowColorMessage(  id, const iType, const szMessage[  ]  )
{
   
   static bool:bSayTextUsed;
   static iMsgSayText;
   
   if(  !bSayTextUsed  )
   {
      iMsgSayText  =  get_user_msgid( "SayText" );
      bSayTextUsed  =  true;
   }
   
   message_begin( iType, iMsgSayText, _, id  );
   write_byte(  id  )      
   write_string(  szMessage  );
   message_end(  );
}

CC_Team_Info( id, const iType, const szTeam[  ] )
{
   static bool:bTeamInfoUsed;
   static iMsgTeamInfo;
   if(  !bTeamInfoUsed  )
   {
      iMsgTeamInfo  =  get_user_msgid( "TeamInfo" );
      bTeamInfoUsed  =  true;
   }
   
   message_begin( iType, iMsgTeamInfo, _, id  );
   write_byte(  id  );
   write_string(  szTeam  );
   message_end(  );

   return 1;
}

CC_ColorSelection(  id, const iType, Color:iColorType)
{
   switch(  iColorType  )
   {
      
      case RED:   return CC_Team_Info(  id, iType, TeamName[ 1 ]  );
      case BLUE:   return CC_Team_Info(  id, iType, TeamName[ 2 ]  );
      case GREY:   return CC_Team_Info(  id, iType, TeamName[ 0 ]  );

   }

   return 0;
}

CC_FindPlayer(  )
{
   new iMaxPlayers  =  get_maxplayers(  );
   
   for( new i = 1; i <= iMaxPlayers; i++ )
      if(  is_user_connected( i )  )
         return i;
   
   return -1;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/










CSGAMERS.RO - SEMNATURA
(¯`*•.¸,¤°´'`°¤,¸.•*´¯)
¸,¤°´'`°•.¸O¸.•°´'`°¤,¸
|¯¯¯¯¯¯¯¯¯¯¯•.•¯¯¯¯¯¯¯¯¯¯¯|
Image
|___________.•.___________|
*´'`°¤¸¸.•'´O`'•.¸¸¤°´'`*
( _¸.•*´'`°¤¸'¸¤°´'`*•.¸_)

|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯•.•¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
Image
|___________________________.•.___________________________|

|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯•.•¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
Image
|___________________________.•.___________________________|

|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯•.•¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
Image
|___________________________.•.___________________________|




Fri Jan 18, 2019 12:47 pm
Membru
User avatar
Posts: 83
Membru din: Tue Jan 01, 2019 11:32 pm
Status: Offline
Puncte: 83 - NOOB
Multumiri date: 2 times

Multumiri primite: 2 times
Detinator Steam: Da
SteamID: nu.

pai link download?










CSGAMERS.RO - SEMNATURAImage

Image

Image



Fri Jan 18, 2019 6:28 pm
Super Moderator
User avatar
Posts: 1646
Membru din: Sat Jan 02, 2016 10:16 pm
Location: Sânnicolau Mare
Age: 20
Status: Offline
Puncte: 1646 - TURBAT
Multumiri date: 71 times

Multumiri primite: 85 times
Detinator Steam: Da
SteamID: dozerradu

Ox1g3nPwP wrote:
pai link download?


 










CSGAMERS.RO - SEMNATURA
ZM . CSGAMERS . RO

193.203.39.144:27015

[ BIOHAZARD 2020 ] => IN LUCRU




Fri Jan 18, 2019 7:46 pm
Membru
User avatar
Posts: 83
Membru din: Tue Jan 01, 2019 11:32 pm
Status: Offline
Puncte: 83 - NOOB
Multumiri date: 2 times

Multumiri primite: 2 times
Detinator Steam: Da
SteamID: nu.

Am nevoie si de modele, le ai tu ?










CSGAMERS.RO - SEMNATURAImage

Image

Image



Sat Jan 19, 2019 8:59 am
Super Moderator
User avatar
Posts: 1646
Membru din: Sat Jan 02, 2016 10:16 pm
Location: Sânnicolau Mare
Age: 20
Status: Offline
Puncte: 1646 - TURBAT
Multumiri date: 71 times

Multumiri primite: 85 times
Detinator Steam: Da
SteamID: dozerradu

Ox1g3nPwP wrote:
Am nevoie si de modele, le ai tu ?


 



Quote:
"models/basebuilder/v_sk.mdl"
"models/basebuilder/p_sk.mdl"










CSGAMERS.RO - SEMNATURA
ZM . CSGAMERS . RO

193.203.39.144:27015

[ BIOHAZARD 2020 ] => IN LUCRU




Sat Jan 19, 2019 7:48 pm
Display posts from previous:  Sort by  
   [ 6 posts ] 
TOPIC INCHIS!  
TOPIC LOCKED
Va informam ca pana la redeschiderea topicului doar cei din administratie vor putea continua sa posteze daca mai au ceva de adaugat si este strict necesar.

,


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
 
Translation/Traducere: phpBB Romania
Design realizat de catre EPIKAL pentru Counter-Strike Gamers Romania
For browsing this site is recommended to use Google Chrome with widescreen resolution 1280 x 1024 pixels. This website is Search Engine Optimization (SEO)
COPYRIGHT © CSGAMERS.RO - All right reserved.