[inchis] Cerere Pluginuri x2

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 .
Locked
User avatar
CaTa.
Fost moderator
Fost moderator
Posts: 420
Joined: 28 Jul 2013, 15:06
Detinator Steam: Nu
Detinator server CS: In curand !
Reputatie: Fost Moderator ajutator
Location: Targu-Mures
Has thanked: 99 times
Been thanked: 19 times
Contact:

04 Dec 2013, 21:25

Salut!
Am nevoie de un plugin care sa imi arate hp si banii in hud deasupra timerului intrun hud permanent!
2 un plugin care sa permita ca cei 16000 $ banii maximi la cs sa poata sa creasca. mai exact daca am 16000 si fac un kill de 300 sa imi puna 16300 si acestia sa nu dispara la spawn. si tot asa fara ca banii sa se reseteze la spawn

Dau cate multumesc vreti!
CLICK ! | Afiseaza codul
Ma gasesti pe Messenger la id :[/b] [email protected]
Follow me on Instagram
Fa-ti cunoscut serverul de Counter-Strike pe facebook ! 
Fa-ti reclama gratis aici Click
My Plugin Furien Guns
RoyalServer
Cosmin
Fost moderator
Fost moderator
Posts: 9362
Joined: 06 Jul 2013, 22:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 547 times

04 Dec 2013, 21:44

| Afiseaza codul
/* Plugin generated by AMXX-Studio */

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

#define PLUGIN "Info"
#define VERSION "1.0"
#define AUTHOR "C0sm1N"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	RegisterHam(Ham_Spawn,"player","fwdspawn",1)
}
public fwdspawn(id)
{
		set_task(1.0,"fwdhealth",id,"b")
}

public fwdhealth( id )
{
	set_hudmessage(255, 0, 0, 0.34, 0.04, 0, 6.0, 12.0)
	show_hudmessage(id, "Health: %i  Money: %i",get_user_health(id),cs_get_user_money(id))
}
User avatar
CaTa.
Fost moderator
Fost moderator
Posts: 420
Joined: 28 Jul 2013, 15:06
Detinator Steam: Nu
Detinator server CS: In curand !
Reputatie: Fost Moderator ajutator
Location: Targu-Mures
Has thanked: 99 times
Been thanked: 19 times
Contact:

04 Dec 2013, 21:47

cosmin ai multumesc dar il testez maine
mai astept la 2
CLICK ! | Afiseaza codul
Ma gasesti pe Messenger la id :[/b] [email protected]
Follow me on Instagram
Fa-ti cunoscut serverul de Counter-Strike pe facebook ! 
Fa-ti reclama gratis aici Click
My Plugin Furien Guns
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

04 Dec 2013, 22:37

| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define VIP_LEVEL	ADMIN_LEVEL_H

#define MONEY_TIER 8000 // DON'T MESS WITH, Money total at which the plugin switches over keeping track of money
new money_total[33] // Keep track of peeps money if above MONEY_TIER
new gmsg_Money

new amx_maxmoney
new amx_startmoney

public client_connect(id)
{
   set_cvar_float("mp_startmoney", 801.0) // So you can track when to change to amx_startmoney ammount, I know.. a crude method
   money_total[id] = 0
}


public read_gmsg_Money(id) {
   if(!is_user_connected(id)) return PLUGIN_HANDLED
   
   new current_total = read_data(1)
   
   if(current_total == 801){         // If CS is spawning you with mp_startmoney default
      current_total = get_pcvar_num(amx_startmoney)      // current total is actually amx_startmoney
      cs_set_user_money(id, current_total,0)         // so set user money to amx_startmoney
      money_total[id] = 0 // reset
   }
   if(current_total >= MONEY_TIER && !money_total[id]) // If first time above MONEY_TIER
   {
      money_total[id] = current_total // Keep track of current total
      
      send_moneymsg(id,current_total-MONEY_TIER,read_data(2)) // send money msg of current total
      
      return PLUGIN_CONTINUE
   }
   if(money_total[id]) // If was over tier on last money message
   {
      money_total[id] += current_total - MONEY_TIER  // figure the term of current total - tier
      
      if(money_total[id] < MONEY_TIER){  // If less then tier set user money to money_total[id] and stop keeping track
         cs_set_user_money(id,money_total[id],1)
         money_total[id] = 0
      }
      else{
         send_moneymsg(id,current_total-MONEY_TIER,read_data(2)) // else send money message
      }
      
      return PLUGIN_CONTINUE
   }
   
   return PLUGIN_CONTINUE
}

//change flash to ammount
public send_moneymsg(id,ammount,flash)
{
   cs_set_user_money(id,MONEY_TIER,0) //Set user money to tier ammount so easy to track add and subtract terms
   
   new maxamount = get_pcvar_num(amx_maxmoney)
   
   if(money_total[id] >  maxamount)
      money_total[id] =  maxamount
   
   //send old money
   message_begin( MSG_ONE , gmsg_Money , {0,0,0}, id )
   write_long(money_total[id]-ammount)
   write_byte(0)
   message_end()
   
   //send current money
   message_begin( MSG_ONE , gmsg_Money , {0,0,0}, id ) //Send money message with ammount stored in money_total[id]
   write_long(money_total[id])
   write_byte(flash)
   message_end()
}


public find_money_target(id, level, cid)
{
   if(!cmd_access(id, level, cid, 3))
      return PLUGIN_HANDLED
   
   new target[16], ammount[8], players[32]
   new num
   
   read_argv(1,target,15)
   read_argv(2,ammount,7)
   
   if(target[0] == '@'){    //If trying to give a team money
      if(target[1] == 'C' || target[1] == 'c'){
         get_players(players, num ,"e", "CT")
      }
      else if(target[1] == 'T' || target[1] == 't'){
         get_players(players, num ,"e", "TERRORIST")
      }
      else{
         console_print(id, "*** No known team by that name. ***")
         return PLUGIN_HANDLED
      }
   }
   else if(target[0] == '#'){  //If trying to give a player(userid) money
      new userid = str_to_num(target[1])
      players[0] = find_player("k", userid)
   }
   else{  // else search for matching name to try and give money
      players[0] = find_player("bl", target)
   }
   
   if(players[0] == 0){  //If no target(s) could be found
      console_print(id, "*** No target(s) could be found. ***")
      return PLUGIN_HANDLED
   }
   else 
      give_money(players, str_to_num(ammount))
   
   return PLUGIN_HANDLED
}


public give_money(players[], ammount)
{
   new i
   while(players){
      if(money_total[players]){
         money_total[players] += ammount // Keep track of current total
         send_moneymsg(players,ammount,1) // send money msg of current total
      }
      else if( (cs_get_user_money(players) + ammount) >= MONEY_TIER){
         money_total[players] = cs_get_user_money(players) + ammount // Keep track of current total
         send_moneymsg(players,ammount,1) // send money msg of current total
      }
      else{
         ammount += cs_get_user_money(players)
         cs_set_user_money(players,ammount,1)
         money_total[players[i]] = 0
      }
      
      ++i
   }
}

public restartround() 
{ 
   for (new i=1; i<33; i++)
      money_total[i] = 0
} 

public _cs_get_user_money_ul(plug,param) {
   if(param != 1)
      return PLUGIN_HANDLED
   
   new id = get_param(1)
   
   
   if (id < 1 || id > get_maxplayers()) {
      log_error(AMX_ERR_NATIVE, "Player out of range (%d)", id)
      return PLUGIN_HANDLED
      } else {
      if (!is_user_connected(id)) {
         log_error(AMX_ERR_NATIVE, "Invalid player %d", id)
         return PLUGIN_HANDLED
      }
   }
   
   if(money_total[id] < MONEY_TIER) {
      return cs_get_user_money(id)
   }
   else {
      return money_total[id]
   }
   
   return PLUGIN_HANDLED
   
}

public _cs_set_user_money_ul(plug,param) {
   if(param != 2 && param != 3 )
      return PLUGIN_HANDLED
   
   new id = get_param(1)
   
   if (id < 1 || id > get_maxplayers()) {
      log_error(AMX_ERR_NATIVE, "Player out of range (%d)", id)
      return PLUGIN_HANDLED
      } else {
      if (!is_user_connected(id)) {
         log_error(AMX_ERR_NATIVE, "Invalid player %d", id)
         return PLUGIN_HANDLED
      }
   }
   
   new ammount = get_param(2)
   
   if(ammount >= MONEY_TIER){
      new change = ammount - money_total[id]
      money_total[id] = ammount
      send_moneymsg(id,change,get_param(3))
   }
   else{
      if (ammount < 0) ammount = 0
      cs_set_user_money(id,ammount,get_param(3))
      money_total[id] = 0
   }
   return PLUGIN_HANDLED   
}

public plugin_natives() {
   register_library("money_ul")
   register_native("cs_get_user_money_ul","_cs_get_user_money_ul")
   register_native("cs_set_user_money_ul","_cs_set_user_money_ul")
}

public plugin_init()
{
   register_plugin("Unlimited Money","2.0","NL)Ramon(NL")
   
   register_event("Money","read_gmsg_Money","b")
   register_event("TextMsg", "restartround", "a", "2&#Game_C","2&#Game_w") 
   
   amx_startmoney = register_cvar("amx_startmoney", "2000")
   amx_maxmoney = register_cvar("amx_maxmoney", "100000")
   
   register_concmd("amx_setmoney", "find_money_target",ADMIN_LEVEL_A, "{@team, #userid, or name(can be partial)} <ammount>")
   
   gmsg_Money = get_user_msgid("Money")
   
   return PLUGIN_CONTINUE
}


Maximu' de bani e 100000$ si cand intri pe server ai 2000 bani , sper ca e bine :D
User avatar
CaTa.
Fost moderator
Fost moderator
Posts: 420
Joined: 28 Jul 2013, 15:06
Detinator Steam: Nu
Detinator server CS: In curand !
Reputatie: Fost Moderator ajutator
Location: Targu-Mures
Has thanked: 99 times
Been thanked: 19 times
Contact:

05 Dec 2013, 15:54

scosmynnnn wrote:
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

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

#define PLUGIN "Info"
#define VERSION "1.0"
#define AUTHOR "C0sm1N"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	RegisterHam(Ham_Spawn,"player","fwdspawn",1)
}
public fwdspawn(id)
{
		set_task(1.0,"fwdhealth",id,"b")
}

public fwdhealth( id )
{
	set_hudmessage(255, 0, 0, 0.34, 0.04, 0, 6.0, 12.0)
	show_hudmessage(id, "Health: %i  Money: %i",get_user_health(id),cs_get_user_money(id))
}

Poate nu ai stiut dar eu vreau ca mesajul in hud sa fie permanent !
El dispare dupa vreo 3 secunde de la spawn !
CLICK ! | Afiseaza codul
Ma gasesti pe Messenger la id :[/b] [email protected]
Follow me on Instagram
Fa-ti cunoscut serverul de Counter-Strike pe facebook ! 
Fa-ti reclama gratis aici Click
My Plugin Furien Guns
Cosmin
Fost moderator
Fost moderator
Posts: 9362
Joined: 06 Jul 2013, 22:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 547 times

05 Dec 2013, 16:12

| Afiseaza codul
#include <amxmodx>
#include <fun>
#include <cstrike>

#define PLUGIN "Info"
#define VERSION "1.0"
#define AUTHOR "C0sm1N"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_logevent("roundstart", 2, "1=Round_Start")
}
public roundstart()
{
	new iPlayers[32], iNum;
	get_players(iPlayers, iNum)
	for(new i = 0; i < iNum;i++)
	{
		set_task(0.5,"fwdhealth",iPlayers,"b")
	}
}

public fwdhealth( id )
{
	new iHealth = get_user_health( id )
	new iMoney = cs_get_user_money( id )
	
	set_hudmessage(255, 0, 0, 0.34, 0.04, 0, 6.0, 12.0)
	show_hudmessage(id, "Health: %i  Money: %i",iHealth,iMoney)
}

ia vezi acum
User avatar
Mădălin
Administrator
Administrator
Posts: 5295
Joined: 06 Mar 2013, 21:40
Detinator Steam: Nu
Reputatie: Administrator
Fost manager cs.extream.ro
Web designer
Administratorul anului 2023
Has thanked: 45 times
Been thanked: 310 times
Contact:

05 Dec 2013, 16:49

Locked

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 33 guests