Raised This Month: $ Target: $400
 0% 

Need help with saving xp method and more


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
pRED*
Join Date: Dec 2006
Old 06-18-2007 , 04:40   Re: Need help with saving xp method and more
Reply With Quote #6

I think you missed my point on some things.

Firstly look a few posts below Xuntrics main xp tutorial. PM has posted a very similar code snippet with lots of bugs and stuff fixed. You should be able to cut and paste what you need to get a basic vault system running.
Spend some time reading and understanding what the plugin does and how it works then adapt it to work for your purposes.

For the flashlight..
To block a users flashlight (using engine module, I can do a fakemeta example as well if you want)

just call enable_flashlight(id) to enable and disabled_flashlight(id) to disable.
client_impulse is automatically run by the engine module when a user enters an impulse command

Code:
new bool:flashdisabled[33] public client_connect(id) {     flashdisabled[id]=false } public disable_flashlight(id) {     flashdisabled[id]=true     client_cmd(id,"impulse 100")     //might wanna inform the user as well } public enable_flashlight(id) {     flashdisabled[id]=false     //might wanna inform the user as well } public client_impulse(id,impulse) {     if (flashdisabled[id] && impulse==100)     {         //user has flashlight disabled and they sent the impulse 100 command (flashlight)         return PLUGIN_HANDLED         //plugin_handled will block the impulse cmd     }     return PLUGIN_CONTINUE }

Care to expand more on your preferred approach for revivals. I'm pretty sure cheap suit's will have the basic code outlines you need just not in the exact form you want
pRED* 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 10:39.


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