Raised This Month: $ Target: $400
 0% 

XP Based Plugin - Tutorial!


Post New Thread Reply   
 
Thread Tools Display Modes
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-01-2006 , 23:45   Re: XP Based Plugin - Tutorial!
Reply With Quote #71

this may be my newbishness speaking again but in the plugin init u wrote:
Code:
register_menucmd(register_menuid("menu_ChooseAnimal"),1023,"DoChooseAnimal");
shouldnt it be:
Code:
register_menucmd(register_menuid("menu_ChooseAnimal"),],0123,"DoChooseAnimal");
*changed 1023 into 0123*
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
TheNewt
Donor
Join Date: Jun 2006
Location: Where I live.
Old 07-01-2006 , 23:53   Re: XP Based Plugin - Tutorial!
Reply With Quote #72

Actually it works the first way too, and in my opinion is a bit cleaner.
TheNewt is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 07-02-2006 , 06:25   Re: XP Based Plugin - Tutorial!
Reply With Quote #73

By the way, my tutorial will use the new menu system.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
TheNewt
Donor
Join Date: Jun 2006
Location: Where I live.
Old 07-02-2006 , 11:02   Re: XP Based Plugin - Tutorial!
Reply With Quote #74

Yay! <3 v3x!! lol, I'm way past the XP/levels part of my plugin. But I can't wait anyways!
TheNewt is offline
Xum
Member
Join Date: Jun 2006
Old 07-09-2006 , 20:59   Re: XP Based Plugin - Tutorial!
Reply With Quote #75

v3x if you'll make a tutorial please make xp loading/saving using nVault.
__________________
[IMG]http://img236.**************/img236/9858/xulogo2pq.gif[/IMG]Xu Share Website CjtServer
My Superhero 22/7 gameserver
ip: 64.94.171.241:27055 and the pasword is: qwerty
Xum is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 07-10-2006 , 07:33   Re: XP Based Plugin - Tutorial!
Reply With Quote #76

Quote:
Originally Posted by Xum
v3x if you'll make a tutorial please make xp loading/saving using nVault.
no v3x use both :p
__________________
- Bye bye!
nightscreem is offline
TheLinx
BANNED
Join Date: Jun 2006
Location: Somewhere i belong (swe)
Old 07-27-2006 , 06:29   Re: XP Based Plugin - Tutorial!
Reply With Quote #77

Quote:
Originally Posted by RapHero2000
your the man!!!!! ivwe been looking for a good tutriol for my new mod im making , you saved my life!!! gj +krama!!!!

Lol, he spells GREAT!

btw, how to add more and more (for an example) run speed per level??

Last edited by TheLinx; 07-27-2006 at 06:38.
TheLinx is offline
Send a message via ICQ to TheLinx Send a message via AIM to TheLinx Send a message via MSN to TheLinx Send a message via Yahoo to TheLinx Send a message via Skype™ to TheLinx
TheLinx
BANNED
Join Date: Jun 2006
Location: Somewhere i belong (swe)
Old 07-27-2006 , 13:54   Re: XP Based Plugin - Tutorial!
Reply With Quote #78

aww, it worked fine the first time, but then the errorlog says:

L 07/27/2006 - 135:04: Function "ChangeTactic" was not found
L 07/27/2006 - 135:04: [AMXX] Displaying debug trace (plugin "amxx_tacticmod.amxx")
L 07/27/2006 - 135:04: [AMXX] Run time error 19: function not found
L 07/27/2006 - 135:04: [AMXX] [0] amxx_tacticmod.sma::plugin_init (line 71)

whats the wrong??
TheLinx is offline
Send a message via ICQ to TheLinx Send a message via AIM to TheLinx Send a message via MSN to TheLinx Send a message via Yahoo to TheLinx Send a message via Skype™ to TheLinx
TheNewt
Donor
Join Date: Jun 2006
Location: Where I live.
Old 07-27-2006 , 16:06   Re: XP Based Plugin - Tutorial!
Reply With Quote #79

Woot another Swede!
To add more run speed per level its very simple.
go into the plugin_init() and register an event for when players change weapons
Code:
public plugin_init() {     // ...     register_event("CurWeapon", "Event_CurWeapon", "be", "1=1"); }
And have event_curweapon check speed, since speed resets when you change weapons, we want to renew it to what we want.
Inside it we will calculate how much speed the player should recieve per level. And then give the player that speed.
Code:
public Event_CurWeapon(id) {     new Float:Speed = 300.0+(g_PlayerLevel[id]*50)     set_user_maxspeed(id, Float:Speed) }

As for your err's, you need to give more info then just the error log. Show us whats on line 71.
__________________
Quote:
toe3_ left the chat room. (G-lined (AUTO Excessive connections from a single host.))
TheNewt is offline
TheLinx
BANNED
Join Date: Jun 2006
Location: Somewhere i belong (swe)
Old 07-28-2006 , 05:23   Re: XP Based Plugin - Tutorial!
Reply With Quote #80

Quote:
Originally Posted by MysticDeath
Show us whats on line 71.
register_menucmd(register_menuid("menu_Choose Tactic"),1023,"DoChooseTactic");


Thanks for helping
TheLinx is offline
Send a message via ICQ to TheLinx Send a message via AIM to TheLinx Send a message via MSN to TheLinx Send a message via Yahoo to TheLinx Send a message via Skype™ to TheLinx
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 12:37.


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