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 , 14:27   Re: Is it possible to force client to sleep.
Reply With Quote #3

This maybe can help you to freeze a player:

http://forums.alliedmods.net/showthread.php?t=81608
http://forums.alliedmods.net/showthread.php?t=29450

This maybe can help you to get origins to do the trap:

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

#define PLUGIN    "Get angles & origin"
#define AUTHOR    "Alucard"
#define VERSION    "2.0"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /origin""get_origin")
    
register_clcmd("say /angles""get_angles")
    
register_clcmd("say /vangles""get_vangles")
    
register_clcmd("say /getmenu""get_menu")
}

public 
get_menu(id)
{
    new 
menu menu_create("\yGet Menu:""get_show")
    
    
menu_additem(menu"\wOrigin""1"0)
    
menu_additem(menu"\wAngles""2"0)
    
menu_additem(menu"\wV Angles""3"0)
    
    
menu_setprop(menu,MPROP_EXITNAME,"Salir")
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)
    
    
menu_display(idmenu0
    return 
PLUGIN_HANDLED
}

public 
get_show(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    
    new 
iData[6]
    new 
iAccess
    
new iCallback
    
new iName[64]
    
    
menu_item_getinfo(menuitemiAccessiData5iName63iCallback)
    
    switch(
str_to_num(iData))
    {
        case 
1:
        {
            
get_origin(id)
            
menu_display(idmenu0)
        }
        case 
2:
        {
            
get_angles(id)
            
menu_display(idmenu0)
        }
        case 
3:
        {
            
get_vangles(id)
            
menu_display(idmenu0)
        }
    }
    return 
PLUGIN_HANDLED
}

public 
get_origin(id)
{
    new 
Float:fOrigin[3]
    
pev(id pev_origin fOrigin)
    
client_print(idprint_chat"origin: %f, %f, %f"fOrigin[0], fOrigin[1], fOrigin[2])
    return 
PLUGIN_HANDLED
}

public 
get_angles(id)
{
    new 
Float:fAngles[3]
    
pev(id pev_angles fAngles)
    
client_print(idprint_chat"angles: %f, %f, %f"fAngles[0], fAngles[1], fAngles[2])
    return 
PLUGIN_HANDLED
}

public 
get_vangles(id)
{
    new 
Float:fVAngles[3]
    
pev(id pev_v_angle fVAngles)
    
client_print(idprint_chat"v_angles: %f, %f, %f"fVAngles[0], fVAngles[1], fVAngles[2])
    return 
PLUGIN_HANDLED

And this maybe can help you to do a fade to black:

PHP Code:
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()

__________________
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