Raised This Month: $51 Target: $400
 12% 

amx_freeze


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands       
Silverice146
Member
Join Date: Mar 2005
Location: In a box
Old 05-29-2005 , 02:08   amx_freeze
Reply With Quote #1

Hey, my second plugin post so if its crappy tell me and ill try my best.

Basically what this plugin does is use a not-well-known command that checks the players fps, but also freezes them and, not in other players sight, spins them. If you find a person with really crappy fps and they are not too great of people, try it out on them. I have demos, but it wont let me post them

Code:
/* Commands - amx_freeze <name> amx_fastfreeze <name> <--- this one will do it multiple times, them make them commit suicide. thx */ #include <amxmodx> #include <amxmisc> new PLUGIN[]="amx_freeze" new AUTHOR[]="Silverice146" new VERSION[]="1.0" public plugin_init() {     register_plugin(PLUGIN,VERSION,AUTHOR)     register_concmd("amx_freeze", "freeze", ADMIN_KICK, "<name> makes a player freeze where they are")     register_concmd("amx_fastfreeze", "fastfreeze", ADMIN_SLAY, "<name> makes a player freeze multiple time, then slays them") } public freeze(id,level,cid) {        new arg[32]     read_argv(1,arg,31)     new user=cmd_target(id,arg,5)         if(!user)         {         return PLUGIN_HANDLED     }         new authid2[16], name2[32], authid[16], name[32]     get_user_authid(id,authid,15)     get_user_name(id,name,31)     get_user_authid(id,authid2,15)     get_user_name(id,name2,31)         client_cmd(user, "timerefresh; wait; timerefresh")     client_print(user,print_chat,"Hahahahahaha %s just spun out of control")     return PLUGIN_HANDLED } public fastfreeze(id,level,cid) {     new arg[32]     read_argv(1,arg,31)     new user=cmd_target(id,arg,5)     if(!user)         {         return PLUGIN_HANDLED     }     new authid2[16], name2[32], authid[16], name[32]     get_user_authid(id,authid,15)     get_user_name(id,name,31)     get_user_authid(id,authid2,15)     get_user_name(id,name2,31)         client_cmd(user, "timerefresh;wait;wait;timerefresh;wait;wait;timerefresh;wait;wait;wait;wait;wait;wait;wait;kill")     client_print(user, print_chat, "%s: Oops!")     return PLUGIN_HANDLED }
Attached Files
File Type: sma Get Plugin or Get Source (amx_freeze.sma - 815 views - 1.7 KB)
__________________
Silverice146 is offline
Send a message via AIM to Silverice146
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 05-29-2005 , 02:13  
Reply With Quote #2

Whats your purpose of all this:
Code:
   new authid2[16], name2[32], authid[16], name[32]     get_user_authid(id,authid,15)     get_user_name(id,name,31)     get_user_authid(id,authid2,15)     get_user_name(id,name2,31)

----------------------------------------------------------
Also, you don't need:
Code:
if(!cmd_access(id,level,cid,2))         {         return PLUGIN_HANDLED         }
when you have:
Code:
register_concmd("amx_freeze", "freeze", ADMIN_KICK, "<name> makes a player freeze where they are")     register_concmd("amx_fastfreeze", "fastfreeze", ADMIN_SLAY, "<name> makes a player freeze multiple time, then slays them")
----------------------------------------------------------
Also, you need to fix these lines where it says "timrefresh":
Code:
client_cmd(user, "timerefresh;wait;wait;timerefresh;wait;wait;timrefresh;wait;wait;wait;wait;wait;wait;wait;kill")
Code:
client_cmd(user, "timrefresh; wait; timerefresh")
I don't know what those are so correct me if I'm wrong.
----------------------------------------------------------
Sorry to pick on ya but other than that, nice job
__________________
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
Silverice146
Member
Join Date: Mar 2005
Location: In a box
Old 05-29-2005 , 02:25  
Reply With Quote #3

LOL I FORGOT TO SAVE IT LOL I EDITED it but i forgot to save it lol ill stop yelling now thx
__________________
Silverice146 is offline
Send a message via AIM to Silverice146
Front Line
Senior Member
Join Date: Jan 2005
Old 05-29-2005 , 02:26  
Reply With Quote #4

One problem...

how to 3rd ppl view this...?
eh?

isn't that the point.
__________________
My plugins...

Are all Here...Click Me
Front Line is offline
Silverice146
Member
Join Date: Mar 2005
Location: In a box
Old 05-29-2005 , 02:29  
Reply With Quote #5

what do you mean? u see them freeze but when it checks ur fps it spins u around 1.5 times

EDIT: o and all the name checking and stuff i included because ive seen it in other plugins so i figured i needed it still kinda noobie at this (lol kinda is a bit weak)
__________________
Silverice146 is offline
Send a message via AIM to Silverice146
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 05-29-2005 , 02:41  
Reply With Quote #6

lol, it's ok, we all started off the same way too... if ya need any help just talk to me on AIM
__________________
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-30-2005 , 00:12  
Reply With Quote #7

Sounds interesting.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
SuperMan911
Junior Member
Join Date: Jun 2005
Location: Chicago
Old 06-19-2005 , 20:03  
Reply With Quote #8

Good job silver. I like this plugin.
__________________
-------------------=SuperMan=-------------------
-----------We all believe in SuperMan-----------
SuperMan911 is offline
Send a message via AIM to SuperMan911
SuperMan911
Junior Member
Join Date: Jun 2005
Location: Chicago
Old 06-19-2005 , 21:00  
Reply With Quote #9

hey silverice, cud you like post a new version that you can make them not die on the fastfreeze??? Just saying, but good job. Another one of the Evil plugins
__________________
-------------------=SuperMan=-------------------
-----------We all believe in SuperMan-----------
SuperMan911 is offline
Send a message via AIM to SuperMan911
Silverice146
Member
Join Date: Mar 2005
Location: In a box
Old 06-19-2005 , 21:18  
Reply With Quote #10

sure ill pm u it
__________________
Silverice146 is offline
Send a message via AIM to Silverice146
Reply



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 04:41.


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