Raised This Month: $ Target: $400
 0% 

Class help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 03-11-2006 , 18:00   Class help
Reply With Quote #1

I wanna make it so, when a player types /changeninja to change their class, it won't change until the next round. So I can cut down on the people that change classes every 10 secs to get all the powers.

Also, I want to make it so, Swift loses their extra speed every 10 seconds or so, for about 2 seconds, then gets the powers back.

Here's what I got so far.
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
Werewolf
Senior Member
Join Date: Jan 2006
Location: Sweden
Old 03-12-2006 , 10:26  
Reply With Quote #2

Set tasks. And does your class things work? I made a new thing.
Code:
new g_isWerewolf[33] g_isWerewolf[id] = (g_PlayerClass[id] == CLASS_WEREWOLF) if(g_isWerewolf[id] = true) { set_user_health(id, 200) return PLUGIN_CONTINUE }
Still wont work. But your problem should be easy to fix with tasks
example here.
Code:
    set_task(10.0, "swiftevents")     set_task(10.0, "reset", id)     return 0; } public swiftevents(id) {     set_user_maxspeed(id, 320.0)     client_cmd(id, "cl_sidespeed 320")     client_cmd(id, "cl_backspeed 320")     client_cmd(id, "cl_forwardspeed 320")     set_task(2.0, "Swift") }
Could look like that. And the task is under Swift(id) under the switch closing brace. And I don't think you have to add id after the event. + You made a mistake here:
Code:
public plugin_precahce()
Change that to
Code:
public plugin_precache()
Attached Files
File Type: sma Get Plugin or Get Source (ninjamod.sma - 634 views - 10.3 KB)
Werewolf is offline
Jordan
Veteran Member
Join Date: Aug 2005
Old 03-12-2006 , 10:39  
Reply With Quote #3

Werewolves... oo very nice.
Jordan is offline
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 03-13-2006 , 18:04  
Reply With Quote #4

Thanks man, no wonder the models weren't working ROFL!

Will try this in a few mins.
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
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 20:14.


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