Idei pluginuri

Discutii despre tot ce nu se incadreaza in celelalte categorii.

Moderators: Moderatori ajutatori, Moderatori

Post Reply
User avatar
k i n g
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 3092
Joined: 17 Sep 2012, 12:23
Detinator Steam: Da
CS Status: x
Reputatie: Fost moderator ajutator
Restrictie moderator
Nume anterior: k1NNG , TheKing
1.5/3
Utilizator neserios ( tepar )
Location: Pitesti
Has thanked: 34 times
Been thanked: 101 times

08 Feb 2015, 12:04

Salutari, am nevoie de cateva idei pentru pluginuri, am timp liber si vreau sa il ocup cu ceva, toate vor fii puse gratuit.
RoyalServer 2
User avatar
VegaS
Fost moderator
Fost moderator
Posts: 5963
Joined: 28 Sep 2014, 16:12
Detinator Steam: Da
Reputatie: Fost eXtream Mod
Fost intermediar
Fost membru Club eXtreamCS
Fond eXtream: 0
Location: Zalău, Sălaj

08 Feb 2015, 12:20

Dacă-mi faci ăsta când stai spec pe zombie, ești boier. :gusta
| Afiseaza codul
Image
Pozitia mea preferata este CEO.
User avatar
JusT.
Membru, skill +2
Membru, skill +2
Posts: 761
Joined: 24 Jun 2013, 14:27
Detinator Steam: Da
SteamID: justsstyle
Reputatie: Fost Membru Club eXtreamCS (5 apr - 5 mai - acces in club)
Has thanked: 1 time
Been thanked: 4 times

08 Feb 2015, 12:36

Un sistem de xp + clase pentru modul paintball cu diferite arme si gravity,speed,health mai mare de la level la level.
Sunt destul de sigur ca nu mai exista asa ceva.
dddd_heyhey
Membru, skill 0
Membru, skill 0
Posts: 83
Joined: 23 Dec 2014, 23:23
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

08 Feb 2015, 14:09

VegaS wrote:Dacă-mi faci ăsta când stai spec pe zombie, ești boier. :gusta
| Afiseaza codul
Image

Code: Select all

#include amxmodx
#include amxmisc
#include cstrike
#include fakemeta
#include hamsandwich
#include csx
#include SpecialGeoip
#include fcs

#define TASK_PRESENTS 1337
#define TASK_SHOWHUD 2674

#define ID_PRESENTS (TaskIndex - TASK_PRESENTS)
#define ID_SHOWHUD (TaskIndex - TASK_SHOWHUD)


// Variabile
new MesajSync, MesajSync2


// Cvaruri
new cvar_hudenable

public plugin_init()
{
   register_plugin("Hud Info", "1.1", "")
   
   // Register Cvars
   cvar_hudenable = register_cvar("credits_hudstats", "1")
   
   // Register Messages
   MesajSync = CreateHudSyncObj()
   MesajSync2 = CreateHudSyncObj()
   
   register_message(get_user_msgid("SayText"), "message")
   register_logevent("round_start", 2, "1=Round_Start")

   
}

public client_putinserver(id)
{
   set_task(1.0, "MesajHUD", id+TASK_SHOWHUD, .flags = "b")
   return 1;
}


public MesajHUD(TaskIndex)
{
   static id
   id = ID_SHOWHUD;
   
   if (!is_user_alive(id))
   {
      id = pev(id, pev_iuser2)
      
      if(!is_user_alive(id)) return;
   }
   
   if (get_pcvar_num(cvar_hudenable))
   {
      if(id != ID_SHOWHUD)
      {
         new nume[32], szcountry[128], szcity[128];
         get_user_name(id, nume, 31)
         GetClientGeoData(id, CountryName, szcountry, 127)
         GetClientGeoData(id, City, szcity, 127)
         set_hudmessage(0, 100, 250, -1.0, 0.78, 0, 6.0, 1.1, 0.0, 0.0, -1)
         //ShowSyncHudMsg(ID_SHOWHUD, MesajSync, "Spectating %s^nHP: %d^nFrom: %s , %s", nume, pev(id, pev_health), szcountry, szcity)
         ShowSyncHudMsg(ID_SHOWHUD, MesajSync, "Spectating %s^nHP: %d ^nFrom: %s, %s", nume, get_user_health ( id ), szcountry, szcity )
     }
   }
}
asta il aveam pe furien :) e la fel doar ca trebuie sa pui din zp classname-ul , ammopacks si ce mai are
specialgeoip.inc | Afiseaza codul
#include < SpecialGeoipConst >

#pragma library "SpecialGeoip"

/*
	Gets client geographic data taken by Special Geoip extension!

	Make sure you use this after at least 0.2 seconds after ClientPutInServer forward has been executed!

	For DataType, you should check SpecialGeoipConst file!
*/

native GetClientGeoData( Player, DataType, Data[ ], DataLength );
specialgeoipconst.inc | Afiseaza codul
/** Special Geoip v1.0.0.1
 * by Hattrick (Claudiu HKS)
 */

#if defined _special_geoip_included
   #endinput
#endif

#define _special_geoip_included

#if AMXX_VERSION_NUM >= 175
   #pragma reqlib special_geoip

   #if !defined AMXMODX_NOAUTOLOAD
      #pragma loadlib special_geoip
   #endif
#else
   #pragma library special_geoip
#endif

/** Util functions.
 */
stock AddCommas(Num, Output[], Len)
{
   static Tmp[16], OutputPos = 0, NumPos = 0, NumLen = 0;

   OutputPos = NumPos = 0;

   if (Num < 0)
   {
      Output[OutputPos++] = '-';

      Num = abs(Num);
   }

   NumLen = num_to_str(Num, Tmp, charsmax(Tmp));

   if (NumLen <= 3)
      OutputPos += copy(Output[OutputPos], Len, Tmp);

   else
   {
      while (NumPos < NumLen && OutputPos < Len)
      {
         Output[OutputPos++] = Tmp[NumPos++];

         if (NumLen - NumPos && !((NumLen - NumPos) % 3))
            Output[OutputPos++] = ',';
      }

      Output[OutputPos] = '^0';
   }
}

stock GeoipStripAddress(Address[])
{
   static Iterator = 0;

   for (Iterator = strlen(Address) - 1; Iterator >= 0; Iterator--)
   {
      if (Address[Iterator] == ':')
      {
         Address[Iterator] = '^0';

         break;
      }
   }
}

stock GeoipFloatCommas(Float:Value, Buffer[], Size)
{
   AddCommas(floatround(Value), Buffer, Size);
}

stock GeoipNumCommas(Value, Buffer[], Size)
{
   AddCommas(Value, Buffer, Size);
}

/** Math predefinitions.
 */
#define F_Cos floatcos
#define F_Sin floatsin

stock Float:F_ACos(Float:Value)
{
   return floatacos(Value, radian);
}

stock Float:F_ASin(Float:Value)
{
   return floatasin(Value, radian);
}

/** Defines Geoip charsets.
 */
enum GeoCharset
{
   GC_ISO8859 =	0,	// Normal characters.
   GC_UTF8 =	1	// Special characters.
};

/** Defines Geoip informations.
 */
enum GeoInfo
{
   /** Some examples below.
    */
   GI_Country =		0,	// Romania		United States
   GI_CountryCode =	1,	// RO			US
   GI_CountryCode3 =	2,	// ROU			USA
   GI_Region =		3,	// Cluj			New York
   GI_TimeZone =		4,	// Europe/Bucharest	America/New_York
   GI_City =		5,	// Turda			New Rochelle
   GI_ContinentCode =	6,	// EU			NA
   GI_RegionCode =		7,	// 13			NY
   GI_Latitude =		8,	// 46.566700		40.911499
   GI_Longitude =		9,	// 23.783300		-73.782303
   GI_AreaCode =		10,	// 0			914
   GI_PostalCode =		11,	// N/A			N/A
   GI_MetroCode =		12,	// 0			501
   GI_DmaCode =		13,	// 0			501
   GI_NetMask =		14,	// 21			22
   GI_Continent =		15,	// Europe			North America
   GI_Charset =		16	// 1			1
};

/** Retrieves a result.
 *
 * @param Address		The IP address to retrieve information from.
 * @param Info		The information to retrieve.
 * @param Buffer		The variable to store result in.
 * @param Size		The variable that represents the buffer size.
 *
 * @return		True if success.
 */
native /* bool */		bool:GeoipInfo(const Address[], GeoInfo:Info, Buffer[], Size);

/** Changes charset.
 *
 * @param Charset		The charset to set.
 *
 * @return		True.
 */
native /* void */		GeoipCharset(GeoCharset:Charset);

/** Retrieves distance.
 *
 * Thanks Arkshine (@Forums.AlliedMods.Com) for this.
 * 0.017453 means PI / 180U and 3959U and 6371U means Earth radius both for imperial and metrical measurement systems.
 *
 * @param Address		The first IP address.
 * @param Other		The second IP address.
 * @param Imperial		Whether or not to use imperial measurement system.
 *
 * @return		The distance, if any. Otherwise, zero.
 */
stock /* long double */	Float:GeoipDistance(const Address[], const Other[], bool:Imperial = true)
{
   static AddressLatitude[16], AddressLongitude[16], OtherLatitude[16], OtherLongitude[16], \
      Float:fAddressLatitude = 0.0, Float:fAddressLongitude = 0.0, Float:fOtherLatitude = 0.0, Float:fOtherLongitude = 0.0;

   if (GeoipInfo(Address, GI_Latitude, AddressLatitude, charsmax(AddressLatitude)) && GeoipInfo(Other, GI_Latitude, OtherLatitude, charsmax(OtherLatitude)) && \
      GeoipInfo(Address, GI_Longitude, AddressLongitude, charsmax(AddressLongitude)) && GeoipInfo(Other, GI_Longitude, OtherLongitude, charsmax(OtherLongitude)))
      {
         fAddressLatitude = str_to_float(AddressLatitude) * 0.017453, fOtherLatitude = str_to_float(OtherLatitude) * 0.017453;
         fAddressLongitude = str_to_float(AddressLongitude) * 0.017453, fOtherLongitude = str_to_float(OtherLongitude) * 0.017453;

         return Imperial ? \
            F_ACos(F_Sin(fAddressLatitude) * F_Sin(fOtherLatitude) + F_Cos(fAddressLatitude) * F_Cos(fOtherLatitude) * F_Cos(fOtherLongitude - fAddressLongitude)) * 3959.0 : \
            F_ACos(F_Sin(fAddressLatitude) * F_Sin(fOtherLatitude) + F_Cos(fAddressLatitude) * F_Cos(fOtherLatitude) * F_Cos(fOtherLongitude - fAddressLongitude)) * 6371.0;
   }

   return 0.0;
}

/** Retrieves distance between client and server.
 *
 * Experimental function. This will only work whether server's IP address is the real one (not the local one).
 *
 * @param Client		Client to compare distance with.
 * @param Imperial		Whether or not to use imperial measurement system.
 *
 * @return		The distance, if any. Otherwise, zero.
 */
stock /* long double */	Float:GeoipClientDistance(Client, bool:Imperial = true)
{
   static ServerAddress[64], ClientAddress[64], \
      Float:Distance = 0.0;

   if (!is_user_connected(Client) || is_user_bot(Client))
   {
      return 0.0;
   }

   get_cvar_string("net_address", ServerAddress, charsmax(ServerAddress));

   GeoipStripAddress(ServerAddress);

   get_user_ip(Client, ClientAddress, charsmax(ClientAddress), 1);

   Distance = GeoipDistance(ClientAddress, ServerAddress, Imperial);

   if (Distance == 0.0)
   {
      get_cvar_string("ip", ServerAddress, charsmax(ServerAddress));

      GeoipStripAddress(ServerAddress);

      Distance = GeoipDistance(ClientAddress, ServerAddress, Imperial);
   }

   return Distance;
}
Image

Image
I AM GOD
User avatar
k i n g
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 3092
Joined: 17 Sep 2012, 12:23
Detinator Steam: Da
CS Status: x
Reputatie: Fost moderator ajutator
Restrictie moderator
Nume anterior: k1NNG , TheKing
1.5/3
Utilizator neserios ( tepar )
Location: Pitesti
Has thanked: 34 times
Been thanked: 101 times

08 Feb 2015, 16:06

Mai astept :)
Probabil o sa fac acel sistem xp pentru pb.
Post Reply

Return to “Discutii generale”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 409 guests