Raised This Month: $51 Target: $400
 12% 

Avatar Mod : need a little bit help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 03-24-2008 , 16:14   Avatar Mod : need a little bit help
Reply With Quote #1

I updated my .sma and I made a xp mod of it .
There are a few things that dont work and i want to get it fixed :
After you gainged a level and a new round starts you dont get what you are supposed to get on that level , I am a little bit stuck there .
I know i use some bad methods please fix my problem and tell me where i can use better code methods


Also dont forget I need someone that can make me a fireblast attack

When you draw your knife and you press attack 1 you should see flames and hear sound of flames if the flames hit a player they will loose health .

PlzzZ help me , Thx for reading greetings Grim


if you say /xp the skill doesnt show good
and in the line if you gained a level the skill also doesnt show good
ps. Xp mod tutorial from http://forums.alliedmods.net/showthread.php?t=66497
__________________
I am out of order!

Last edited by grimvh2; 05-01-2008 at 02:35.
grimvh2 is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 03-25-2008 , 14:21   Re: Avatar Mod : need a little bit help
Reply With Quote #2

bumb because i updated my post and .sma
__________________
I am out of order!
grimvh2 is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 03-25-2008 , 15:25   Re: Avatar Mod : need a little bit help
Reply With Quote #3

this is unbelievably ugly!
all this:
Code:
new bool:Fire[33] new bool:Water[33] new bool:Earth[33] new bool:Air[33] new bool:Firespeed1[33]; new bool:Firespeed2[33]; new bool:Firespeed3[33]; new bool:Firespeed4[33]; new bool:Firespeed5[33]; new bool:Firespeed6[33]; new bool:Waterspeed1[33]; new bool:Waterspeed2[33]; new bool:Waterspeed3[33]; new bool:Waterspeed4[33]; new bool:Waterspeed5[33]; new bool:Waterspeed6[33]; new bool:Earthspeed1[33]; new bool:Earthspeed2[33]; new bool:Earthspeed3[33]; new bool:Earthspeed4[33]; new bool:Earthspeed5[33]; new bool:Earthspeed6[33]; new bool:Airspeed1[33]; new bool:Airspeed2[33]; new bool:Airspeed3[33]; new bool:Airspeed4[33]; new bool:Airspeed5[33]; new bool:Airspeed6[33];
can be combined into this:
Code:
#define CLASS_FIRE 0 #define CLASS_WATER 1 #define CLASS_EARTH 2 #define CLASS_WIND 3 new Class[33]; //then set this class var to what they are instead of multiple bools on a single id //then for all those levels: new Float:Speed[33]; //then set this varribale to what speed they should get instead of multiple bools. like Speed[i] = 256.0
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 03-25-2008 , 15:55   Re: Avatar Mod : need a little bit help
Reply With Quote #4

Thx for the reply but its like i said i am bad at coding and need some help with cleaning my code

EDIT : i changed the #dedine CLASS_ and that stuff but i dont know how to work with
the new Float:speed[33];

I also updated my .sma

EDIT 2: I also updated that ugly stuff with the new bool:Firespeed1 , etc
I did not do it like you told me but its better I think
__________________
I am out of order!

Last edited by grimvh2; 03-26-2008 at 04:55.
grimvh2 is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 03-26-2008 , 05:51   Re: Avatar Mod : need a little bit help
Reply With Quote #5

how to prevent this??(look attachment)

i use this code

PHP Code:
public plugin_init()
{
       
register_clcmd("say /avatarhelp""func_avatarhelp");
}

public 
func_avatarhelp(id)
{
       
show_motd(id"/addons/amxmodx/configs/avatarhelp.txt""Avatar Help")

my avatarhelp.txt looks like this

Code:
Avatar : The Legend of Aang

Skills :
Fire :
-Passieve :
Level 1 : Nothing
Level 2:  hp 110
Level 3:  hp 120 
Level 4:  hp 120,  speed 320 (default speed is 250)
Level 5:  hp 120,  speed 370
Level 6:  hp 130,  speed 370 , gravity 700 (default gravity is 800)
-Actief :

Water :
-Passieve :
Level 1 : Nothing
Level 2:  speed 290
Level 3:  hp 110,  speed 290
Level 4:  hp 110,  speed 350
Level 5:  hp 120,  speed 400
Level 6:  hp 125,  speed 450 
-Actief :

Earth :
-Passieve :
Level 1 : hp 100,  speed 215,  gravity 900
Level 2:  hp 130,  speed 220,  gravity 890
Level 3:  hp 160,  speed 230,  gravity 840
Level 4:  hp 190,  speed 240,  gravity 800
Level 5:  hp 230,  speed 250,  gravity 800
Level 6:  hp 250,  speed 250 , gravity 800
-Actief :

Air :
-Passieve :
Level 1 : hp 75,   speed 270
Level 2:  hp 80,   speed 300
Level 3:  hp 85,   speed 370
Level 4:  hp 95,   speed 440,  gravity 700
Level 5:  hp 100,  speed 520, gravity 600
Level 6:  hp 115,  speed 590, gravity 400
-Actief :
__________________
I am out of order!

Last edited by grimvh2; 05-01-2008 at 02:35.
grimvh2 is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 03-26-2008 , 08:46   Re: Avatar Mod : need a little bit help
Reply With Quote #6

becuase you have to write your motd in html. add <br /> to the end of each line.
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 03-26-2008 , 08:48   Re: Avatar Mod : need a little bit help
Reply With Quote #7

ok thx , can you also take a look to the new .sma plz
__________________
I am out of order!
grimvh2 is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 03-26-2008 , 08:50   Re: Avatar Mod : need a little bit help
Reply With Quote #8

my eyes bleed when i look at your code, the only problem with it is the whole thing, so no sorry. I will not rewrite your plugin.
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 03-26-2008 , 09:12   Re: Avatar Mod : need a little bit help
Reply With Quote #9

can you first take a look at the update?
__________________
I am out of order!
grimvh2 is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 03-26-2008 , 15:03   Re: Avatar Mod : need a little bit help
Reply With Quote #10

no.
__________________
DO NOT PM me about avp mod.
Rolnaaba 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:13.


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