Raised This Month: $ Target: $400
 0% 

Is it possible to force client to sleep.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 07-31-2009 , 23:10   Re: Is it possible to force client to sleep.
Reply With Quote #5

Quote:
Originally Posted by ƒa†es™ View Post
How do i make a plugin that can plant a trap when a person step into my trap he will fade to black + can't move for some second ?

After seeing your codes i still don't understand.
What you dont understand?

About the Get angles & origin utilitie... you dont have to understand the code.. use the plugin to get the origin of a position in a map (/getmenu) and then you can set the origin to the trap, but to do the trap you have to create an entity (i think), and if you dont understand this code you cant do a "trap" cuz that is more advanced... maybe try to see the code in blockmaker plugins.

About screenfade, well.. here an example:

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN    "Fade Example"
#define AUTHOR    "Alucard"
#define VERSION    "1.0"

new g_fade

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
g_fade get_user_msgid("ScreenFade")
    
    
register_clcmd("say /fademe""FadeHandler")
}

public 
FadeHandler(id)
{
    
Fade(id,255,0,0,20)
}

stock Fade(id,red,green,blue,alpha)
{
    
message_begin(MSG_ONE,g_fade,{0,0,0},id)
    
write_short(1<<10)
    
write_short(1<<10)
    
write_short(1<<12)
    
write_byte(red)
    
write_byte(green)
    
write_byte(blue)
    
write_byte(alpha)
    
message_end()

I know this plugin work but maybe should be:

PHP Code:
public FadeHandler(id)
{
    
message_begin(MSG_ONE,g_fade,{0,0,0},id)
    
write_short(1<<10)
    
write_short(1<<10)
    
write_short(1<<12)
    
write_byte(255//red
    
write_byte(0//green
    
write_byte(0//blue
    
write_byte(20//alpha
    
message_end()

But i am not sure if using the stock is better or not.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
 



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 18:26.


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