Raised This Month: $ Target: $400
 0% 

XP Based Plugin - Tutorial!


Post New Thread Reply   
 
Thread Tools Display Modes
TheLinx
BANNED
Join Date: Jun 2006
Location: Somewhere i belong (swe)
Old 07-28-2006 , 05:37   Re: XP Based Plugin - Tutorial!
Reply With Quote #81

Quote:
Originally Posted by RapHero2000
was choose tactic a public function or did youuse the stock?????
take out the stcok and use public.
It was in:

Code:
public plugin_init()
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-28-2006 , 05:47   Re: XP Based Plugin - Tutorial!
Reply With Quote #82

to MysticDeath

And btw, i only want 1 class to get more runspeed per level...

let me guess, should it be like this;

Code:
public Event_CurWeapon(id) {    if(PlayerClass[id] == CLASS_RUN) {       new Float:Speed = 320.0+(PlayerLevel[id]*50)       set_user_maxspeed(id, Float:Speed)    } }


Is it right??


Can you help me with how to add this too:
  • HP & AP
  • Less gravity
  • More damage
Well, thanks again for the help!!

Last edited by TheLinx; 07-28-2006 at 05:52.
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-28-2006 , 11:16   Re: XP Based Plugin - Tutorial!
Reply With Quote #83

Yeah, thats a good way to check class.
For those other 3, try looking at some already existing plugins. I recommend searching for upgrade mod/plugin, its very similiar to what you are trying to accomplish here.
__________________
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-29-2006 , 13:35   Re: XP Based Plugin - Tutorial!
Reply With Quote #84

lol ok
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-29-2006 , 15:16   Re: XP Based Plugin - Tutorial!
Reply With Quote #85

Quote:
Originally Posted by RapHero2000
youll be alot better off, if you use PM's version of this that he posted , it works alot better . the other version crashed my server horably
Ok, what is the link to PM's version of this?
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-29-2006 , 17:54   Re: XP Based Plugin - Tutorial!
Reply With Quote #86

.....

I think i found out the big bug with SaveXP....

It says:

Code:
if(get_cvar_num("SaveXP") == 1) {                  LoadXP(id)

hmm...lets look at plugin_init...

Code:
public plugin_init() {     register_plugin("OMG u cant see this XD", "1.3", "TheLinx")         register_cvar("tmod_onoroff", "1")         register_event("DeathMsg", "DeathMsg", "a")         register_cvar("XP_per_kill", "25")     register_menucmd(register_menuid("menu_ChooseOMG u cant see this XD"),1023,"MenuAction_ChooseOMG u cant see this XD");         register_event("ResetHUD", "ResetHud", "b")         gmsgStatusText = get_user_msgid("StatusText") }

hmm...is it any CVAR called SaveXP? NO!!

just add this:

Code:
    register_cvar("SaveXP", "1")

and ur done! (i hope :S)
I feel like an hero now XD
I hope this helped...
/ TheLinx
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-31-2006 , 13:49   Re: XP Based Plugin - Tutorial!
Reply With Quote #87

Lol...
Quote:
youll be alot better off, if you use PM's version of this that he posted , it works alot better . the other version crashed my server horably
Quote:
. im using a version with out the saveing and it still has bugs .
These aren't really versions that you 'use'. They are more foundations and you have to build apon them. Edit them, fix them, create your own. They are basic layouts. Not complete plugins.
Quote:
Code:
    register_cvar("SaveXP", "1")
. . . I feel like an hero now XD
Thats not really that big of a deal.
__________________
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-31-2006 , 18:39   Re: XP Based Plugin - Tutorial!
Reply With Quote #88

Quote:
Originally Posted by MysticDeath
Thats not really that big of a deal.
Cant you let me feel happy?


Aww man, i am a newbie, and because of that, my help arenīt appreciated





Ill go hide in a croner and cry...
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-31-2006 , 19:07   Re: XP Based Plugin - Tutorial!
Reply With Quote #89

Lol, its only cuzz your swedish.
__________________
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-31-2006 , 19:18   Re: XP Based Plugin - Tutorial!
Reply With Quote #90

Quote:
Originally Posted by MysticDeath
Lol, its only cuzz your swedish.
??
Explain
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 01:32.


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