Raised This Month: $ Target: $400
 0% 

Need Help whit mod!! Plzz Help!!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
exelz
Member
Join Date: Oct 2006
Old 02-13-2007 , 08:40   Need Help whit mod!! Plzz Help!!
Reply With Quote #1

i am making a mod but i need help.
1.Hou can i make a armor like this:
name: Flame armor and it adds 60 armor. And hou can i make taha 100 is not max armor and health
2.Hou can i make a item that adds extra dmg to all weapons dmg
3.Hou can i make that i can buy all thing whit money that money what i use to buy like M4A1 and if i dont have money to buy then i cant buy
4. Hou can i make save XP?
5.Hou can i make a Menu where i can choose:
1.Armors(adds armor)
Bronce Armor
Steel Armor
Flame Body
2.Weapons(adds extra dmg)
Dagger
Sword
Blade
3.Items(HP potions that most bind and they recover 20 HP/other items)
HP Potions
Reign - makes you on fire but you dont lose HP, adds super speed, gravity, extra dmg, extra armor, extra HP
__________________

Last edited by exelz; 02-13-2007 at 10:35.
exelz is offline
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 02-13-2007 , 08:44   Re: Need Help whit mod
Reply With Quote #2

Make some variable called, maxHP & maxAp, where you describe the max armor and hp, and on every roundstart you just check

Code:
if (player_hp < 100) if (player_armor < 100)

Last edited by stigma; 02-13-2007 at 08:53.
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
exelz
Member
Join Date: Oct 2006
Old 02-13-2007 , 08:57   Re: Need Help whit mod
Reply With Quote #3

can you make it easyer like you type the code plzzzz. i give +karma
__________________
exelz is offline
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 02-13-2007 , 12:17   Re: Need Help whit mod!! Plzz Help!!
Reply With Quote #4

You could do like this:

Code:
public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_event("HLTV","give_hp","a")     register_cvar("sv_maxhp","125",ADMIN_KICK)     register_cvar("sv_maxap","125",ADMIN_KICK)         return PLUGIN_CONTINUE } public give_hp(id) {         new players[32],numPlayers,playerid     get_players(players,numPlayers,"ah")         for (new i; i < numPlayers ;i++) {                 playerid = players[i]                     if (get_user_health(playerid) <= 100) {                             set_user_health(playerid,get_cvar_num("sv_maxhp"))             set_user_armor(playerid,get_cvar_num("sv_maxap"))                         }     } }

This would set the max hp/ap to the ammout you've set in the cvar. (Default 125) - The event would be triggered every round start.
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
exelz
Member
Join Date: Oct 2006
Old 02-13-2007 , 14:18   Re: Need Help whit mod!! Plzz Help!!
Reply With Quote #5

ok, but if i but max ap 1000 is the game showing it in next to the health or it will show 100?
__________________
exelz is offline
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 02-13-2007 , 18:11   Re: Need Help whit mod!! Plzz Help!!
Reply With Quote #6

It is not showing 1000 ap.
But the ap is still set to 1000, so if your ap goes below 0, it will just start from the beginning until your out of ap
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
exelz
Member
Join Date: Oct 2006
Old 02-13-2007 , 23:47   Re: Need Help whit mod!! Plzz Help!!
Reply With Quote #7

i need like that in beggining of the round players have 100HP and 0AP when they type /menu in the chat they can buy wepaons that gives extra dmg to all weapons and armors that adds armor. Thats why i need that player can but max 1000 AP whit an armor
__________________
exelz is offline
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 02-14-2007 , 10:57   Re: Need Help whit mod!! Plzz Help!!
Reply With Quote #8

You cant extra shop items in the shopmeu.. But you can make your own menu, where your own item..

How about reading som tutorials, or see some other threads... Theres alot of them.
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
exelz
Member
Join Date: Oct 2006
Old 02-19-2007 , 12:48   Re: Need Help whit mod!! Plzz Help!!
Reply With Quote #9

i cant find! and i need a easy menu
and the code when 1. is choosen it will open menu where is list Ex. armros
__________________
exelz is offline
Reply


Thread Tools
Display Modes

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 00:42.


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