Cerere modificare vipmenu zm

Modificari necesare ale pluginurilor

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

The Kalu
Fost administrator
Fost administrator
Posts: 13708
Joined: 09 Oct 2010, 12:39
Detinator Steam: Da
CS Status: In grajd!
SteamID: kalulord
Reputatie: Fost Administrator
Fost membru Club eXtreamCS (6 luni)
Nume anterior: Terra
Location: Romania, Ploiesti
Has thanked: 328 times
Been thanked: 646 times
Contact:

16 Jan 2022, 21:30

Foloseste bb code sursa, ala pentru code nu este ok.
L E V I N wrote:
16 Jan 2022, 21:09
mai bine rezolvați faza cu clasa .content(line-break: anywhere;) din post și scoateți de tot bb-code pentru 'sursa' că e mai de ***
ÎNAINTE DE F12
Image
DUPĂ F12(adăugare line-break)
Image
Image
RoyalServer
User avatar
levin
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 3844
Joined: 24 Aug 2011, 12:24
Detinator Steam: Da
CS Status:
Detinator server CS: ☯∴
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Location: ҳ̸Ҳ̸ҳ
Discord: devilclass
Has thanked: 36 times
Been thanked: 594 times
Contact:

16 Jan 2022, 22:35

sunt unele coduri care au peste 5k linii(fac pagina prea lungă) și nu o să stau să copiez eu așa cod..(doar dacă nu i puneți opțiunea de 'select all' că și la modelul de postare/cerere am modificat mai demult să se folosească doar bb-code [ code ] că diminuează din linii + are opțiunea de select all) + modifică codul..pentru că poate să citească emoticoane/cuvinte blocate/alte coduri gen '[ i ]', d aia zic că mai e mai bine să fie scoasă și adăugat line-break...
Pentru ajutor, faceți cerere bine detaliată, completând și respectând modelul corespunzător.
Nu-mi mai dați cereri doar pentru a mă avea în lista de prieteni.
Dacă te ajut, și mă ignori/etc > te adaug în „foe”.
Aveți grijă la cei ce încearcă să mă copieze sau să dea drept mine..Puteți lua legătura cu mine prin STEAM dacă aveți o problemă/nelămurire în acest caz! Cont de forum am doar aici.
În cazul în care utilizați ceva din ce am postat(ex: aici), e bine să fiți la curent cu modificările aduse și de aici, iar dacă sunt ceva probleme nu ezitați să luați legătura cu mine. Actualizarea unor coduri nu se vor afișa public, doar dacă se găsește ceva critic/urgent de remediat, unele fiind coduri vechi iar unele refăcute chiar recent dar private.
* Nume pe cs1.6: eVoLuTiOn \ Nume vechi: eVo
* Atelierul meu - post2819572.html#p2819572 (închis, click link ca să vedeți de ce)
User avatar
Doctor whO? <3
Membru, skill +3
Membru, skill +3
Posts: 1196
Joined: 21 Jun 2013, 12:40
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Reputatie: Fost Membru Club eXtreamCS (doua luni)
Has thanked: 109 times
Been thanked: 75 times
Contact:

17 Jan 2022, 21:03

The Kalu wrote:
16 Jan 2022, 21:04
Doctor whO? <3 wrote:
16 Jan 2022, 19:46
vezi acuma | Afiseaza codul
#include <amxmodx>
#include <cstrike> 
#include <fun>
#include <nvault>
#include <money>
#include <zombieplague>

#pragma tabsize 0

#define VAULT "SALVARE_DATE_MAPA"

native zp_get_user_exp(id)
native zp_set_user_exp(id, value)
native get_user_point(id)
native set_user_point(id, value)

new count[33][5],iVaultHandle,mapname[35]

public plugin_init(){
   register_plugin("VIP Menu", "2.0", "S3xTy")
iVaultHandle = nvault_open( VAULT );
if ( iVaultHandle == INVALID_HANDLE )set_fail_state( "Error opening nVault" ); 
   register_clcmd("vipmenu", "vipmenu", ADMIN_ALL, "vipmenu");
   register_event("HLTV", "Event_NewRound", "a", "1=0", "2=0")
   get_mapname(mapname,charsmax(mapname))
}
public plugin_end() if ( iVaultHandle != INVALID_HANDLE )nvault_close( iVaultHandle ); 

public client_putinserver(id) if(!(is_user_bot(id)||is_user_hltv(id)) LoadData(id))

public Event_NewRound() count[0][0] = count[0][1] = 0 // reset HP(0),AP(1) count on every new round

public vipmenu( id ){
   if(!is_user_alive(id) || zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id) || cs_get_user_team(id)==CS_TEAM_SPECTATOR) ChatColor(id, "!y[!gDarkCSO!y] !tThis function !yis only valid when you are !gHuman!y/!gAlive")
   else if(!(get_user_flags(id) & ADMIN_LEVEL_A)) ChatColor(id, "!y[!gDarkCSO!y] You have no access to use the!g Vip Menu");
   else{
      new menu = menu_create( "\d-\r[\yDarkCSO\r]\d- |\w Vip Weapons", "menu_handler" );
         menu_additem( menu, "\r+\w 75.000\r $" );
         menu_additem( menu, "\r+\w 150\r Points" );
         menu_additem( menu, "\r+\w 250\r Exp" );
         menu_additem( menu, "\r+\w 250\r HP" );
         menu_additem( menu, "\r+\w 150\r AP" );
      menu_setprop( menu, MPROP_EXIT, MEXIT_ALL );
      menu_display( id, menu, 0 );
   }
   return PLUGIN_HANDLED;
}
public menu_handler( id, menu, item ){
   switch( item ){
      case 0:{
         if (count[id][2]) // change 1 to your max purchase per map
         {
            ChatColor(id, "!y[!gDarkCSO!y] You can buy this item only 1 times per map")
         }else{
		zp_cs_set_user_money(id, zp_cs_get_user_money(id) + 75000)
		count[id][2]=1
		SaveData(id)
	 }
      }
      case 1:{
         if (count[id][3]) // change 1 to your max purchase per map
         {
            ChatColor(id, "!y[!gDarkCSO!y] You can buy this item only 1 times per map")
         }else{
		set_user_point(id, get_user_point(id) + 150)
		count[id][3]=1
		SaveData(id)
	 }
      }
      case 2:{
         if (count[id][4]) // change 1 to your max purchase per map
         {
            ChatColor(id, "!y[!gDarkCSO!y] You can buy this item only 1 times per map")
         } else{
		zp_set_user_exp(id, zp_get_user_exp(id) + 250)
		count[id][4]=1
		SaveData(id)
	 }
      }
      case 3:{
         if (count[id][0]) ChatColor(id, "!y[!gDarkCSO!y] You can buy this item only 1 times per round.")
         else{
		set_user_health(id, get_user_health(id) + 250)
		count[id][0]=1
	 }
      }
      case 4:{
         if (count[id][1]) ChatColor(id, "!y[!gDarkCSO!y] You can buy this item only 1 times per round")
         else{
		set_user_armor(id, get_user_armor(id) + 150)
		count[id][1]=1
	 }
      }        
   }
   menu_destroy( menu );
   return PLUGIN_HANDLED;
}

stock SaveData(const id){
	new nick[33],string[45]
	formatex(string,charsmax(string),"%s %d %d %d",mapname,count[id][2],count[id][3],count[id][4])
	nvault_set( iVaultHandle , nick , string );
}
stock LoadData(const id){
	new nick[33],szDataString[45];
	get_user_name(id,nick,charsmax(nick))
	if(nvault_get( iVaultHandle , nick , szDataString , charsmax( szDataString ) )){
		new szcount[3],szmapname[35]
		parse(szDataString,szmapname,charsmax(szmapname),szcount[0],charsmax(szcount[]),szcount[1],charsmax(szcount[]),szcount[2],charsmax(szcount[]))
		if(equali(szmapname,mapname)){
			count[id][2]=str_to_num(szcount[0])
			count[id][3]=str_to_num(szcount[1])
			count[id][4]=str_to_num(szcount[2])
		}else{
			count[id][2]=count[id][3]=count[id][4]=0
			nvault_remove(iVaultHandle,nick)
		}
	}
}

// Stock: ChatColor! nu i bun drc da mna csf
stock ChatColor(const id, const input[], any:...){
   new count = 1, players[32]
   static msg[191];vformat(msg, 190, input, 3)
   
   replace_all(msg, 190, "!g", "^4") // Green Color
   replace_all(msg, 190, "!y", "^1") // Default Color
   replace_all(msg, 190, "!t", "^3") // Team Color
   replace_all(msg, 190, "!t2", "^0") // Team2 Color
   
   if (id) players[0] = id; else get_players(players, count, "ch")
      for (new i = 0; i < count; i++){
         if (is_user_connected(players)){
            message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players)
            write_byte(players);
            write_string(msg);
            message_end();
         }
      }
}



La fel...
//// darkcso_vipmenu_new.sma
// C:\Users\h\OneDrive\Desktop\scripting clase zm\darkcso_vipmenu_new.sma(29) : error 001: expected token: ")", but found "-identifier-"
// C:\Users\h\OneDrive\Desktop\scripting clase zm\darkcso_vipmenu_new.sma(29) : error 001: expected token: ";", but found ")"
// C:\Users\h\OneDrive\Desktop\scripting clase zm\darkcso_vipmenu_new.sma(133) : error 035: argument type mismatch (argument 1)
// C:\Users\h\OneDrive\Desktop\scripting clase zm\darkcso_vipmenu_new.sma(134) : error 035: argument type mismatch (argument 4)
// C:\Users\h\OneDrive\Desktop\scripting clase zm\darkcso_vipmenu_new.sma(135) : error 035: argument type mismatch (argument 1)

Pune-l mai bine pe pastebin levin.
User avatar
levin
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 3844
Joined: 24 Aug 2011, 12:24
Detinator Steam: Da
CS Status:
Detinator server CS: ☯∴
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Location: ҳ̸Ҳ̸ҳ
Discord: devilclass
Has thanked: 36 times
Been thanked: 594 times
Contact:

17 Jan 2022, 21:11

Code: Select all

#include <amxmodx>
#include <cstrike> 
#include <fun>
#include <nvault>
#include <money>
#include <zombieplague>

#pragma tabsize 0

#define VAULT "SALVARE_DATE_MAPA"

native zp_get_user_exp(id)
native zp_set_user_exp(id, value)
native get_user_point(id)
native set_user_point(id, value)

new count[33][5],iVaultHandle,mapname[35]

public plugin_init(){
   register_plugin("VIP Menu", "2.0", "S3xTy")
iVaultHandle = nvault_open( VAULT );
if ( iVaultHandle == INVALID_HANDLE )set_fail_state( "Error opening nVault" ); 
   register_clcmd("vipmenu", "vipmenu", ADMIN_ALL, "vipmenu");
   register_event("HLTV", "Event_NewRound", "a", "1=0", "2=0")
   get_mapname(mapname,charsmax(mapname))
}
public plugin_end() if ( iVaultHandle != INVALID_HANDLE )nvault_close( iVaultHandle ); 

public client_putinserver(id) if(!(is_user_bot(id)||is_user_hltv(id))) LoadData(id)

public Event_NewRound() count[0][0] = count[0][1] = 0 // reset HP(0),AP(1) count on every new round

public vipmenu( id ){
   if(!is_user_alive(id) || zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id) || cs_get_user_team(id)==CS_TEAM_SPECTATOR) ChatColor(id, "!y[!gDarkCSO!y] !tThis function !yis only valid when you are !gHuman!y/!gAlive")
   else if(!(get_user_flags(id) & ADMIN_LEVEL_A)) ChatColor(id, "!y[!gDarkCSO!y] You have no access to use the!g Vip Menu");
   else{
      new menu = menu_create( "\d-\r[\yDarkCSO\r]\d- |\w Vip Weapons", "menu_handler" );
         menu_additem( menu, "\r+\w 75.000\r $" );
         menu_additem( menu, "\r+\w 150\r Points" );
         menu_additem( menu, "\r+\w 250\r Exp" );
         menu_additem( menu, "\r+\w 250\r HP" );
         menu_additem( menu, "\r+\w 150\r AP" );
      menu_setprop( menu, MPROP_EXIT, MEXIT_ALL );
      menu_display( id, menu, 0 );
   }
   return PLUGIN_HANDLED;
}
public menu_handler( id, menu, item ){
   switch( item ){
      case 0:{
         if (count[id][2]) // change 1 to your max purchase per map
         {
            ChatColor(id, "!y[!gDarkCSO!y] You can buy this item only 1 times per map")
         }else{
		zp_cs_set_user_money(id, zp_cs_get_user_money(id) + 75000)
		count[id][2]=1
		SaveData(id)
	 }
      }
      case 1:{
         if (count[id][3]) // change 1 to your max purchase per map
         {
            ChatColor(id, "!y[!gDarkCSO!y] You can buy this item only 1 times per map")
         }else{
		set_user_point(id, get_user_point(id) + 150)
		count[id][3]=1
		SaveData(id)
	 }
      }
      case 2:{
         if (count[id][4]) // change 1 to your max purchase per map
         {
            ChatColor(id, "!y[!gDarkCSO!y] You can buy this item only 1 times per map")
         } else{
		zp_set_user_exp(id, zp_get_user_exp(id) + 250)
		count[id][4]=1
		SaveData(id)
	 }
      }
      case 3:{
         if (count[id][0]) ChatColor(id, "!y[!gDarkCSO!y] You can buy this item only 1 times per round.")
         else{
		set_user_health(id, get_user_health(id) + 250)
		count[id][0]=1
	 }
      }
      case 4:{
         if (count[id][1]) ChatColor(id, "!y[!gDarkCSO!y] You can buy this item only 1 times per round")
         else{
		set_user_armor(id, get_user_armor(id) + 150)
		count[id][1]=1
	 }
      }        
   }
   menu_destroy( menu );
   return PLUGIN_HANDLED;
}

stock SaveData(const id){
	new nick[33],string[45]
	formatex(string,charsmax(string),"%s %d %d %d",mapname,count[id][2],count[id][3],count[id][4])
	nvault_set( iVaultHandle , nick , string );
}
stock LoadData(const id){
	new nick[33],szDataString[45];
	get_user_name(id,nick,charsmax(nick))
	if(nvault_get( iVaultHandle , nick , szDataString , charsmax( szDataString ) )){
		new szcount[3],szmapname[35]
		parse(szDataString,szmapname,charsmax(szmapname),szcount[0],charsmax(szcount[]),szcount[1],charsmax(szcount[]),szcount[2],charsmax(szcount[]))
		if(equali(szmapname,mapname)){
			count[id][2]=str_to_num(szcount[0])
			count[id][3]=str_to_num(szcount[1])
			count[id][4]=str_to_num(szcount[2])
		}else{
			count[id][2]=count[id][3]=count[id][4]=0
			nvault_remove(iVaultHandle,nick)
		}
	}
}

// Stock: ChatColor! nu i bun drc da mna csf
stock ChatColor(const id, const input[], any:...){
   new count = 1, players[32]
   static msg[191];vformat(msg, 190, input, 3)
   
   replace_all(msg, 190, "!g", "^4") // Green Color
   replace_all(msg, 190, "!y", "^1") // Default Color
   replace_all(msg, 190, "!t", "^3") // Team Color
   replace_all(msg, 190, "!t2", "^0") // Team2 Color
   
   if (id) players[0] = id; else get_players(players, count, "ch")
      for (new i = 0; i < count; i++){
         if (is_user_connected(players[i])){
            message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
            write_byte(players[i]);
            write_string(msg);
            message_end();
         }
      }
}
Pentru ajutor, faceți cerere bine detaliată, completând și respectând modelul corespunzător.
Nu-mi mai dați cereri doar pentru a mă avea în lista de prieteni.
Dacă te ajut, și mă ignori/etc > te adaug în „foe”.
Aveți grijă la cei ce încearcă să mă copieze sau să dea drept mine..Puteți lua legătura cu mine prin STEAM dacă aveți o problemă/nelămurire în acest caz! Cont de forum am doar aici.
În cazul în care utilizați ceva din ce am postat(ex: aici), e bine să fiți la curent cu modificările aduse și de aici, iar dacă sunt ceva probleme nu ezitați să luați legătura cu mine. Actualizarea unor coduri nu se vor afișa public, doar dacă se găsește ceva critic/urgent de remediat, unele fiind coduri vechi iar unele refăcute chiar recent dar private.
* Nume pe cs1.6: eVoLuTiOn \ Nume vechi: eVo
* Atelierul meu - post2819572.html#p2819572 (închis, click link ca să vedeți de ce)
User avatar
Doctor whO? <3
Membru, skill +3
Membru, skill +3
Posts: 1196
Joined: 21 Jun 2013, 12:40
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Reputatie: Fost Membru Club eXtreamCS (doua luni)
Has thanked: 109 times
Been thanked: 75 times
Contact:

17 Jan 2022, 21:29

O problema la HP si armura. Alea le vreau sa le pot lua o data pe runda. Le-am luat prima runda si in urmatoarea nu ma lasa.
User avatar
levin
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 3844
Joined: 24 Aug 2011, 12:24
Detinator Steam: Da
CS Status:
Detinator server CS: ☯∴
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Location: ҳ̸Ҳ̸ҳ
Discord: devilclass
Has thanked: 36 times
Been thanked: 594 times
Contact:

18 Jan 2022, 12:31

ai așteptat să înceapă runda pe bune sau ai dat rr?
ai ceva care modifică parcugerea rundelor?(un modul gen)
ai freeze setat pe mapă?
Pentru ajutor, faceți cerere bine detaliată, completând și respectând modelul corespunzător.
Nu-mi mai dați cereri doar pentru a mă avea în lista de prieteni.
Dacă te ajut, și mă ignori/etc > te adaug în „foe”.
Aveți grijă la cei ce încearcă să mă copieze sau să dea drept mine..Puteți lua legătura cu mine prin STEAM dacă aveți o problemă/nelămurire în acest caz! Cont de forum am doar aici.
În cazul în care utilizați ceva din ce am postat(ex: aici), e bine să fiți la curent cu modificările aduse și de aici, iar dacă sunt ceva probleme nu ezitați să luați legătura cu mine. Actualizarea unor coduri nu se vor afișa public, doar dacă se găsește ceva critic/urgent de remediat, unele fiind coduri vechi iar unele refăcute chiar recent dar private.
* Nume pe cs1.6: eVoLuTiOn \ Nume vechi: eVo
* Atelierul meu - post2819572.html#p2819572 (închis, click link ca să vedeți de ce)
User avatar
Doctor whO? <3
Membru, skill +3
Membru, skill +3
Posts: 1196
Joined: 21 Jun 2013, 12:40
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Reputatie: Fost Membru Club eXtreamCS (doua luni)
Has thanked: 109 times
Been thanked: 75 times
Contact:

18 Jan 2022, 15:03

L E V I N wrote:
18 Jan 2022, 12:31
ai așteptat să înceapă runda pe bune sau ai dat rr?
ai ceva care modifică parcugerea rundelor?(un modul gen)
ai freeze setat pe mapă?
Am si asteptatt si am si dat rr la runda si tot nu pot lua hp/ armura decât o singură data pe harta. Nu am alte plg/module care sa țină de modificarea rundelor si nu am nici freezetime activat.
User avatar
levin
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 3844
Joined: 24 Aug 2011, 12:24
Detinator Steam: Da
CS Status:
Detinator server CS: ☯∴
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Location: ҳ̸Ҳ̸ҳ
Discord: devilclass
Has thanked: 36 times
Been thanked: 594 times
Contact:

18 Jan 2022, 19:03

pune alt nume la plg și vezi dacă merge așa:)))

Code: Select all

#include <amxmodx>
#include <cstrike> 
#include <fun>
#include <nvault>
#include <money>
#include <zombieplague>

#pragma tabsize 0

#define VAULT "SALVARE_DATE_MAPA"

native zp_get_user_exp(id)
native zp_set_user_exp(id, value)
native get_user_point(id)
native set_user_point(id, value)

new count[33][5],iVaultHandle,mapname[35],maxpl

public plugin_init(){
   register_plugin("VIP Menu", "2.0", "S3xTy")
iVaultHandle = nvault_open( VAULT );
if ( iVaultHandle == INVALID_HANDLE )set_fail_state( "Error opening nVault" ); 
   register_clcmd("vipmenu", "vipmenu", ADMIN_ALL, "vipmenu");
   register_event("HLTV", "Event_NewRound", "a", "1=0", "2=0")
   get_mapname(mapname,charsmax(mapname))
	maxpl=get_maxplayers()
}
public plugin_end() if ( iVaultHandle != INVALID_HANDLE )nvault_close( iVaultHandle ); 

public client_putinserver(id) if(!(is_user_bot(id)||is_user_hltv(id))) LoadData(id)

public Event_NewRound(){
	for(new id=1;id<=maxpl;id++){
		if(!is_user_connected(id)||is_user_bot(id)||is_user_hltv(id)) continue
		count[id][0] = count[id][1] = 0 // reset HP(0),AP(1) count on every new round
	}
}

public vipmenu( id ){
   if(!is_user_alive(id) || zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id) || cs_get_user_team(id)==CS_TEAM_SPECTATOR) ChatColor(id, "!y[!gDarkCSO!y] !tThis function !yis only valid when you are !gHuman!y/!gAlive")
   else if(!(get_user_flags(id) & ADMIN_LEVEL_A)) ChatColor(id, "!y[!gDarkCSO!y] You have no access to use the!g Vip Menu");
   else{
      new menu = menu_create( "\d-\r[\yDarkCSO\r]\d- |\w Vip Weapons", "menu_handler" );
         menu_additem( menu, "\r+\w 75.000\r $" );
         menu_additem( menu, "\r+\w 150\r Points" );
         menu_additem( menu, "\r+\w 250\r Exp" );
         menu_additem( menu, "\r+\w 250\r HP" );
         menu_additem( menu, "\r+\w 150\r AP" );
      menu_setprop( menu, MPROP_EXIT, MEXIT_ALL );
      menu_display( id, menu, 0 );
   }
   return PLUGIN_HANDLED;
}
public menu_handler( id, menu, item ){
   switch( item ){
      case 0:{
         if (count[id][2]) // change 1 to your max purchase per map
         {
            ChatColor(id, "!y[!gDarkCSO!y] You can buy this item only 1 times per map")
         }else{
		zp_cs_set_user_money(id, zp_cs_get_user_money(id) + 75000)
		count[id][2]=1
		SaveData(id)
	 }
      }
      case 1:{
         if (count[id][3]) // change 1 to your max purchase per map
         {
            ChatColor(id, "!y[!gDarkCSO!y] You can buy this item only 1 times per map")
         }else{
		set_user_point(id, get_user_point(id) + 150)
		count[id][3]=1
		SaveData(id)
	 }
      }
      case 2:{
         if (count[id][4]) // change 1 to your max purchase per map
         {
            ChatColor(id, "!y[!gDarkCSO!y] You can buy this item only 1 times per map")
         } else{
		zp_set_user_exp(id, zp_get_user_exp(id) + 250)
		count[id][4]=1
		SaveData(id)
	 }
      }
      case 3:{
         if (count[id][0]) ChatColor(id, "!y[!gDarkCSO!y] You can buy this item only 1 times per round.")
         else{
		set_user_health(id, get_user_health(id) + 250)
		count[id][0]=1
	 }
      }
      case 4:{
         if (count[id][1]) ChatColor(id, "!y[!gDarkCSO!y] You can buy this item only 1 times per round")
         else{
		set_user_armor(id, get_user_armor(id) + 150)
		count[id][1]=1
	 }
      }        
   }
   menu_destroy( menu );
   return PLUGIN_HANDLED;
}

stock SaveData(const id){
	new nick[33],string[45]
	formatex(string,charsmax(string),"%s %d %d %d",mapname,count[id][2],count[id][3],count[id][4])
	nvault_set( iVaultHandle , nick , string );
}
stock LoadData(const id){
	new nick[33],szDataString[45];
	get_user_name(id,nick,charsmax(nick))
	if(nvault_get( iVaultHandle , nick , szDataString , charsmax( szDataString ) )){
		new szcount[3],szmapname[35]
		parse(szDataString,szmapname,charsmax(szmapname),szcount[0],charsmax(szcount[]),szcount[1],charsmax(szcount[]),szcount[2],charsmax(szcount[]))
		if(equali(szmapname,mapname)){
			count[id][2]=str_to_num(szcount[0])
			count[id][3]=str_to_num(szcount[1])
			count[id][4]=str_to_num(szcount[2])
		}else{
			count[id][2]=count[id][3]=count[id][4]=0
			nvault_remove(iVaultHandle,nick)
		}
	}
}

// Stock: ChatColor! nu i bun drc da mna csf
stock ChatColor(const id, const input[], any:...){
   new count = 1, players[32]
   static msg[191];vformat(msg, 190, input, 3)
   
   replace_all(msg, 190, "!g", "^4") // Green Color
   replace_all(msg, 190, "!y", "^1") // Default Color
   replace_all(msg, 190, "!t", "^3") // Team Color
   replace_all(msg, 190, "!t2", "^0") // Team2 Color
   
   if (id) players[0] = id; else get_players(players, count, "ch")
      for (new i = 0; i < count; i++){
         if (is_user_connected(players[i])){
            message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
            write_byte(players[i]);
            write_string(msg);
            message_end();
         }
      }
}
Pentru ajutor, faceți cerere bine detaliată, completând și respectând modelul corespunzător.
Nu-mi mai dați cereri doar pentru a mă avea în lista de prieteni.
Dacă te ajut, și mă ignori/etc > te adaug în „foe”.
Aveți grijă la cei ce încearcă să mă copieze sau să dea drept mine..Puteți lua legătura cu mine prin STEAM dacă aveți o problemă/nelămurire în acest caz! Cont de forum am doar aici.
În cazul în care utilizați ceva din ce am postat(ex: aici), e bine să fiți la curent cu modificările aduse și de aici, iar dacă sunt ceva probleme nu ezitați să luați legătura cu mine. Actualizarea unor coduri nu se vor afișa public, doar dacă se găsește ceva critic/urgent de remediat, unele fiind coduri vechi iar unele refăcute chiar recent dar private.
* Nume pe cs1.6: eVoLuTiOn \ Nume vechi: eVo
* Atelierul meu - post2819572.html#p2819572 (închis, click link ca să vedeți de ce)
User avatar
Doctor whO? <3
Membru, skill +3
Membru, skill +3
Posts: 1196
Joined: 21 Jun 2013, 12:40
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Reputatie: Fost Membru Club eXtreamCS (doua luni)
Has thanked: 109 times
Been thanked: 75 times
Contact:

19 Jan 2022, 15:57

Acum e ok, functioneaza cum imi trebuie mie. Multumesc :D
Post Reply

Return to “Modificari pluginuri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests