hlmod.hu
https://hlmod.hu/

Furien bolt
https://hlmod.hu/viewtopic.php?f=101&t=20131
Oldal: 1 / 2

Szerző:  fabi113 [ 2015.04.03. 18:30 ]
Hozzászólás témája:  Furien bolt

Plugin Neve:
Furien bolt
Plugint készitette:
Danon
Játék:
Counter-Strike
Kategória:
Játékmenet
Eredeti link:
Nincs megadva
Jóváhagyó:


[kozep]*Furien-Bolt*[/kozep]

Leirás:Ez egy Furienn bolt mint már ciméből is kiderült
ahol külömböző dolgokat tudsz venni a boltbol pont-ér

*A pontokat ölésekkel szerzed
[kozep]Két bolt van 1)Az embereknek és 2)A Furieneknek[/kozep]

Itt egy képp*(Magyarositva van):
Kép

A forditásához szükséges a fcs.inc és a colorchat.inc

fcs.inc
Kód:
#if defined _fcs_included
   #endinput
#endif

#define _fcs_included



/*
 * Returns a players credits
 *
 * @param      client - The player index to get points of
 *
 * @return      The credits client
 *
 */

native fcs_get_user_credits(client);

/*
 * Sets <credits> to client
 *
 * @param      client - The player index to set points to
 * @param      credits - The amount of credits to set to client
 *
 * @return      The credits of client
 *
 */

native fcs_set_user_credits(client, credits);

/*
 * Adds <credits> points to client
 *
 * @param      client - The player index to add points to
 * @param      credits - The amount of credits to add to client
 *
 * @return      The credits of client
 *
 */

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

/*
 * Subtracts <credits>  from client
 *
 * @param      client - The player index to subtract points from
 * @param      credits - The amount of credits to substract from client
 *
 * @return      The credits of client
 *
 */

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


ColorChat.inc
Kód:
/* Fun functions
*
* by Numb
*
* This file is provided as is (no warranties).
*/

#if defined _colorchat_included
  #endinput
#endif
#define _colorchat_included

enum Color
{
   NORMAL = 1, // clients scr_concolor cvar color
   YELLOW = 1, // NORMAL alias
   GREEN, // Green Color
   TEAM_COLOR, // Red, grey, blue
   GREY, // grey
   RED, // Red
   BLUE, // Blue
}

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

ColorChat(id, Color:type, const msg[], {Float,Sql,Result,_}:...)
{
   new message[256];

   switch(type)
   {
      case NORMAL: // clients scr_concolor cvar color
      {
         message[0] = 0x01;
      }
      case GREEN: // Green
      {
         message[0] = 0x04;
      }
      default: // White, Red, Blue
      {
         message[0] = 0x03;
      }
   }

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

   // Make sure message is not longer than 192 character. Will crash the server.
   message[191] = '^0';

   new team, ColorChange, index, MSG_Type;
   
   if(id)
   {
      MSG_Type = MSG_ONE;
      index = id;
   } else {
      index = FindPlayer();
      MSG_Type = MSG_ALL;
   }
   
   team = get_user_team(index);
   ColorChange = ColorSelection(index, MSG_Type, type);

   ShowColorMessage(index, MSG_Type, message);
      
   if(ColorChange)
   {
      Team_Info(index, MSG_Type, TeamName[team]);
   }
}

ShowColorMessage(id, type, message[])
{
   static get_user_msgid_saytext;
   if(!get_user_msgid_saytext)
   {
      get_user_msgid_saytext = get_user_msgid("SayText");
   }
   message_begin(type, get_user_msgid_saytext, _, id);
   write_byte(id)      
   write_string(message);
   message_end();   
}

Team_Info(id, type, team[])
{
   static bool:teaminfo_used;
   static get_user_msgid_teaminfo;
   if(!teaminfo_used)
   {
      get_user_msgid_teaminfo = get_user_msgid("TeamInfo");
      teaminfo_used = true;
   }
   message_begin(type, get_user_msgid_teaminfo, _, id);
   write_byte(id);
   write_string(team);
   message_end();

   return 1;
}

ColorSelection(index, type, Color:Type)
{
   switch(Type)
   {
      case RED:
      {
         return Team_Info(index, type, TeamName[1]);
      }
      case BLUE:
      {
         return Team_Info(index, type, TeamName[2]);
      }
      case GREY:
      {
         return Team_Info(index, type, TeamName[0]);
      }
   }



SMA
AMXX
Tömörített fájl
*A fordítás a aghl.ru oldalon történik.

    Szerző:  LostLegend [ 2015.04.03. 19:12 ]
    Hozzászólás témája:  Re: Furien bolt

    Szerintem elég jó

    Szerző:  fabi113 [ 2015.04.03. 20:40 ]
    Hozzászólás témája:  Re: Furien bolt

    LostLegend írta:
    Szerintem elég jó


    Köszönöm.

    Szerző:  ultraibolya [ 2015.04.15. 19:35 ]
    Hozzászólás témája:  Re: Furien bolt

    remélem tudod,hogy amxx fájlnak tilos a zip fájlba lenni.Töröltem

    Szerző:  fabi113 [ 2015.04.16. 10:06 ]
    Hozzászólás témája:  Re: Furien bolt

    ultraibolya írta:
    remélem tudod,hogy amxx fájlnak tilos a zip fájlba lenni.Töröltem


    Köszi.

    Szerző:  jozsikaaa2000 [ 2015.04.16. 18:34 ]
    Hozzászólás témája:  Re: Furien bolt

    Nem engedi le tölteni hibás forráskód azt irja amiko át alakítanám amxx be :)

    Szerző:  LyleChriss [ 2015.04.16. 18:40 ]
    Hozzászólás témája:  Re: Furien bolt

    jozsikaaa2000 írta:
    Nem engedi le tölteni hibás forráskód azt irja amiko át alakítanám amxx be :)

    Csakcsupán azért, mert a webcomplierben nincsenek meg az include fájlok. :) Töltsd le az sma-t, és AMXx Studio-ba fordítsd le, akkor jó lesz, persze csak ha megvannak az include-ok. :D

    Szerző:  jozsikaaa2000 [ 2015.04.16. 18:45 ]
    Hozzászólás témája:  Re: Furien bolt

    Már probáltam nekem a Color chat nem jó meg még nem tudom mi :D ha el tudnád mondani mit tudok kezdeni vele
    nagyon megköszönném :D

    Szerző:  LyleChriss [ 2015.04.16. 18:57 ]
    Hozzászólás témája:  Re: Furien bolt

    A két include fájlt tedd a cstrike/addons/amxmodx/scripting/include mappába.(Annak a cs-nek a mappájába tedd, amelyire az amx mod x-et telepítetted)
    Akkor az AMX Studio le kell fordítsa.

    Csatolmányok:
    Magyarázat: Itt van a két inc fájl.
    includeok.rar [1.34 KiB]
    Letöltve 125 alkalommal.

    Szerző:  jozsikaaa2000 [ 2015.04.16. 19:10 ]
    Hozzászólás témája:  Re: Furien bolt

    Be helyeztem öket mindent ugy csináltam ahogy montad de nem jó :(

    Oldal: 1 / 2 Minden időpont UTC+02:00 időzóna szerinti
    Powered by phpBB® Forum Software © phpBB Limited
    https://www.phpbb.com/