AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Need Help whit mod!! Plzz Help!! (https://forums.alliedmods.net/showthread.php?t=51192)

exelz 02-13-2007 08:40

Need Help whit mod!! Plzz Help!!
 
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

stigma 02-13-2007 08:44

Re: Need Help whit mod
 
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)

exelz 02-13-2007 08:57

Re: Need Help whit mod
 
can you make it easyer like you type the code plzzzz. i give +karma

stigma 02-13-2007 12:17

Re: Need Help whit mod!! Plzz Help!!
 
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.

exelz 02-13-2007 14:18

Re: Need Help whit mod!! Plzz Help!!
 
ok, but if i but max ap 1000 is the game showing it in next to the health or it will show 100?

stigma 02-13-2007 18:11

Re: Need Help whit mod!! Plzz Help!!
 
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

exelz 02-13-2007 23:47

Re: Need Help whit mod!! Plzz Help!!
 
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

stigma 02-14-2007 10:57

Re: Need Help whit mod!! Plzz Help!!
 
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.

exelz 02-19-2007 12:48

Re: Need Help whit mod!! Plzz Help!!
 
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


All times are GMT -4. The time now is 00:42.

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