Raised This Month: $ Target: $400
 0% 

Class help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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