Raised This Month: $ Target: $400
 0% 

code help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nordy
Senior Member
Join Date: Apr 2006
Location: Latvia
Old 05-14-2006 , 04:10   code help
Reply With Quote #1

hi
can some1 give me code for endless bullets (no reload)
and code for multiplier damage
and regen health
it will be beter if they will be all toghether..
thx
nordy is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 05-14-2006 , 04:52  
Reply With Quote #2

Unlimited Ammo
Code:
    new Weapon_ID = read_data(2)     new Clip = read_data(3)             if(Weapon_ID == CSW_C4     || Weapon_ID == CSW_KNIFE     || Weapon_ID == CSW_HEGRENADE     || Weapon_ID == CSW_SMOKEGRENADE     || Weapon_ID == CSW_FLASHBANG) {         return PLUGIN_CONTINUE     }     new sWeaponName[32]     get_weaponname(Weapon_ID, sWeaponName, 31)      if(Clip < 1)     {           give_item(id, sWeaponName)             engclient_cmd(id, sWeaponName)     }

Health Regeneration
Code:
set_task(RegenRate, "Task_HealthRegen", id, _, _, "b") public Task_HealthRegen(id) {       if(!is_user_alive(id) || !is_user_connected(id))     {         if(task_exists(id)) {             remove_task(id)         }         return PLUGIN_CONTINUE     }         new iHealth = get_user_health(id)     if(iHealth < 100)     {         iHealth += RegenPoints         set_user_health(id, iHealth)         if(get_user_health(id) > 100) {             set_user_health(id, 100)         }     }     return PLUGIN_CONTINUE }

Damage Multiplier
Code:
public Event_Damage(id) {     new iDamage = read_data(2)     new iNewDamage = iDamage * 2 // eg of 2X Damage    set_user_health(id, get_user_health(id) - iNewDamage) // triple damage (original damage + 2X original damage) }
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
nordy
Senior Member
Join Date: Apr 2006
Location: Latvia
Old 05-14-2006 , 04:55  
Reply With Quote #3

wow thxx a lot... from where do you get these???
nordy is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 05-14-2006 , 04:57  
Reply With Quote #4

Upgrades Mod 2.0
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
nordy
Senior Member
Join Date: Apr 2006
Location: Latvia
Old 05-14-2006 , 04:57  
Reply With Quote #5

ou oky
emm can you put them toghether and with a comand to active them?
nordy is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 05-14-2006 , 04:59  
Reply With Quote #6

Lol, Sorry cant right now.
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
nordy
Senior Member
Join Date: Apr 2006
Location: Latvia
Old 05-14-2006 , 07:12  
Reply With Quote #7

realy no1 can help??
nordy is offline
atomic
Veteran Member
Join Date: Jan 2005
Location: What The Foot?
Old 05-14-2006 , 07:36  
Reply With Quote #8

there is a search
Attached Files
File Type: amx admin_ammo.amx (5.8 KB, 79 views)
__________________
atomic is offline
nordy
Senior Member
Join Date: Apr 2006
Location: Latvia
Old 05-14-2006 , 07:45  
Reply With Quote #9

i know this but i need these 3 toghether lol
nordy is offline
nordy
Senior Member
Join Date: Apr 2006
Location: Latvia
Old 05-14-2006 , 09:09  
Reply With Quote #10

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <cstrike> #include <engine> #define PLUGIN "Unstopable" #define VERSION "1.1" #define AUTHOR "Nordy" new gCurrentWeapon[33]     new RegenPoints public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_clcmd("amx_unstop", "cmd_unstop")     register_clcmd("amx_stopme", "cmd_stop")     register_event("CurWeapon","weapon_switch","be","1=1")   } public cmd_unstop(id, level, cid) {     if (!cmd_access(id, level, cid, 2))     //Check if they have the required admin to do it.              return PLUGIN_HANDLED                 set_user_footsteps (id, 1)                  //Set Silent footsteps     cs_set_user_armor (id, 700, CsArmorType:2)              //500AP helm&vest armor.     set_user_health(id, 700)                    //Set 500 HP     set_user_gravity (id, 0.25)                     //Set gravity to 200     new Float:speed = get_user_maxspeed(id) + 600.0;     set_user_maxspeed(id , speed);                  //Set maxspeed to fast     set_user_rendering(id,kRenderFxNone,0,0,0,kRenderTransAdd,0)    //Set Invisible         (get_user_button(id) & IN_ATTACK)     entity_set_vector (id, EV_VEC_punchangle, Float:{0.0, 0.0, 0.0})         return PLUGIN_HANDLED } public cmd_stop(id, level, cid) {     if (!cmd_access(id, level, cid, 2))     //Check if they have the required admin to do it.          return PLUGIN_HANDLED                     set_user_footsteps (id, 0)                  //Set regular footsteps     cs_set_user_armor (id, 100, CsArmorType:2)          // Set regular armor     set_user_health(id, 100)                    // Set regular health     set_user_gravity (id, 1.0)                  //Set 800 gravity     set_user_maxspeed (id, 0.0)                     //Set regular speed     set_user_rendering(id,kRenderFxNone,0,0,0,kRenderNormal,25)     //Set Visible         return PLUGIN_HANDLED } public weapon_switch(id) {      {        new Float:maxSpeed = get_cvar_float("amx_unstop");        new weaponid = read_data(2)          if(gCurrentWeapon[id] != weaponid) {             gCurrentWeapon[id] = weaponid             set_user_maxspeed(id,maxSpeed)          }       } } public Task_HealthRegen(id) {       new iHealth = get_user_health(id)     if(iHealth < 100)     {         iHealth += RegenPoints         set_user_health(id, iHealth)         if(get_user_health(id) > 100) {             set_user_health(id, 100)         }     } }  public Event_Damage(id) {     new iDamage = read_data(2)     new iNewDamage = iDamage * 10 // eg of 2X Damage    set_user_health(id, get_user_health(id) - iNewDamage) // triple damage (original damage + 2X original damage) }


i got this working but i can't get for this unlimited ammo working help ME!!!
nordy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode