User
Pass
2FA
 
 

Level UP - modificare plugin

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Resources
Author Message1538
Speeder890

[Mentally Stable]



Status: Offline
(since 17-06-2013 12:23)
Joined: 22 May 2013
Posts: 18, Topics: 8
Location: Romania

Reputation: 35.4
Votes: 2

Post Posted: 23-05-2013, 17:39:14 | Translate post to: ... (Click for more languages)

Salut , incerc sa fac sv sa ceara 100 , 200 , 400 , 800 , 1200 , 1600 , etc pt lvl up dar am reusit sa fac doar sa ceara cate 100 , 200 , 300 din //Register variables la pcvars[packslevelup] am setat 100 in loc de 15 , ma poate ajuta cineva sa il fac sa ceara cum am tot incercat ?
Cred ca pe aici trebuie umblat :
Daca nu rog sa modificati voi pluginul : http://www.girlshare.ro/32526102.4
Multumesc

Code:
public plugin_precache()
{
   // Register all our cvars
   cvar_welcomemsg = register_cvar("zp_xp_welcomemsg", "1");
   cvar_removeweapons = register_cvar("zp_xp_removeweapons", "0");
   cvar_removexp = register_cvar("zp_xp_removexp", "0");
   cvar_removezombie = register_cvar("zp_xp_removezombie", "0");
}

public plugin_init()
{
   // Register the plugin
   register_plugin(PLUGIN_NAME, PLUGIN_VERSION, "Huh?")
   
   // Language files
   register_dictionary("zombie_xp.txt")

   // Register the menus
   register_menu("Game Menu", KEYSMENU, "menu_game")
   register_menu("Zombie Class Menu", KEYSMENU, "menu_zclass")
   register_menu("Human Class Menu", KEYSMENU, "menu_hclass")
   
   // For setting human's skills
   register_forward(FM_PlayerPreThink, "fw_PlayerPreThink")
   
   // For setting the user human on connecting
   RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawn_Post", 1)
   
   // For setting humans speed also
   register_logevent("logevent_round_start",2, "1=Round_Start")
   
   // Register event round start for humans
   register_event("HLTV", "event_round_start", "a", "1=0", "2=0");
   
   // Register forward for our plugins
   g_fwRoundStart = CreateMultiForward("zp_round_started_human", ET_IGNORE, FP_CELL)
      
   // Set our vars to disable zombie plague functions
   set_task(1.0, "set_cvars")
   
   // Register variables
   pcvars[enable] = register_cvar("zp_xp_enable", "1")
   pcvars[packslevelup] = 100
   
   // Register client commands
   register_clcmd("zp_xp_costscale", "SetPacksLevelUp")
   register_clcmd("zp_xp_set_level", "SetLevel")
   register_clcmd("zp_xp_removexp", "RemoveXP")
   register_clcmd("zp_xp_removezombies", "RemoveZombies")
   register_clcmd("zp_xp_removeweapons", "RemoveWeapons")
   
   //trigger for handling the menu
   #if defined TRIGGER_ZP_ITEM
   g_TriggerItem = zp_register_extra_item("Zombie XP Menu", 0, 0)
   #endif
   #if defined TRIGGER_SAYMENU
   register_clcmd("say xp", "handle_say_xp")
   register_clcmd("say level", "handle_say_level")
   register_clcmd("say class", "handle_say_class")
   register_clcmd("say xpmenu", "handle_say_xpmenu")
   #endif
      
   //Settings variables
   g_msgSayText = get_user_msgid("SayText")
   
   // Format mod name
   formatex(g_modname, sizeof g_modname - 1, "Zombie XP %s", PLUGIN_VERSION)
   
   // Get Max Players
   g_maxplayers = get_maxplayers()
   
   //nVault
   gvault = nvault_open(PLUGIN_NAME);
   
   //for our HUD (shows level on screen)
   g_MsgSync2 = CreateHudSyncObj()
}

public set_cvars()
{
   // Disable zombie_plague's zombie auto menu
   if( get_pcvar_num(cvar_removezombie) == 0) set_cvar_num("zp_zombie_classes", 0);
   if( get_pcvar_num(cvar_removeweapons) == 0) set_cvar_num("zp_buy_custom", 0);
}

public plugin_natives()
{
   //natives
   register_native("zpxp_register_extra_item", "native_register_extra_item", 1)
   register_native("zpxp_register_human_class", "native_register_human_class", 1)
   register_native("zpxp_register_zombie_class", "native_register_zombie_class", 1)
   register_native("zp_get_user_human_class", "native_get_user_human_class", 1)
}

0 0
  
Back to top
View user's profile Send private message
anaconda cs
[Banned user]


Banned


Status: Offline
(since 26-12-2013 22:11)
Joined: 11 Jan 2013
Posts: 788, Topics: 55
Location: United States

Reputation: 61.4
Votes: 23

Post Posted: 17-07-2013, 18:10:07 | Translate post to: ... (Click for more languages)

nu cred ca iti da cineva free.
0 0
  
Back to top
View user's profile Send private message
Ryuk

[Cultul betivilor]



Status: Offline
(since 21-03-2021 09:45)
Joined: 18 Jul 2012
Posts: 5323, Topics: 185
Location: Independentei

Reputation: 146.3
Votes: 51

 
Post Posted: 17-07-2013, 22:47:34 | Translate post to: ... (Click for more languages)

Ma uit eu maine peste el si am sa vad de pot sa ti-l fac.
0 0
  
Back to top
View user's profile Send private message
anaconda cs
[Banned user]


Banned


Status: Offline
(since 26-12-2013 22:11)
Joined: 11 Jan 2013
Posts: 788, Topics: 55
Location: United States

Reputation: 61.4
Votes: 23

Post Posted: 18-07-2013, 13:03:54 | Translate post to: ... (Click for more languages)

naspa ca nu mai sunt scripteri pe comunitate, sau sunt dar ofera ajutor doar pe bani -
0 0
  
Back to top
View user's profile Send private message
D4mage

[Gum!Tz@]



Status: Offline
(since 08-06-2015 16:55)
Joined: 06 Apr 2013
Posts: 1324, Topics: 32
Location: Romania

Reputation: 238.5
Votes: 20

 
Post Posted: 24-07-2013, 12:04:35 | Translate post to: ... (Click for more languages)

nu inteleg Thinking deci tu vrei ca levelup sa fie mai eftin sau cum ? daca cv PM


0 0
  
Back to top
View user's profile Send private message
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Resources  


The time now is 03-12-2024, 01:39:27
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password