Raised This Month: $ Target: $400
 0% 

Alka and other friends,i need help again


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cyrax
Junior Member
Join Date: Apr 2007
Old 05-19-2007 , 09:04   Alka and other friends,i need help again
Reply With Quote #1

Er,I find a plugin for stop somebody shutdown CS1.5 server,if he used hegrenade or flashbang or smokegren or C4 or download some files.But the auther haven't public the *.sma file,I just have the *.amx file and the *.amxx file.But I have a core code like this.It has no punish mode.

#include
new lastWeap[33]
new DQWeap[33]
public plugin_init()
{
register_plugin("xxx","xxx","xxx")
server_cmd("sv_allowdownload 0")
register_clcmd("lastinv","MyLast")
register_event("CurWeapon", "switchweapon","be","1=1")
}
public client_connect(id)
{
lastWeap[id]=CSW_KNIFE
}
public MyLast(id)
{
new WName[32]
get_weaponname(lastWeap[id],WName,31)
engclient_cmd(id,WName)
return PLUGIN_HANDLED
}
public switchweapon(id)
{
new tmp=read_data(2)
if(DQWeap[id]!=tmp)
{
lastWeap[id]=DQWeap[id]
DQWeap[id]=tmp
}
return PLUGIN_CONTINUE
}

The auther said the punish type commands like this:
fz_chengfa 1 (default) ,if set to 0 just a warning,if set to 1 give somebody a lesson,if set to 2 let somebody need reinstall CS.
If someone can counter- translation the amx or amxx to*.sma files,or translation the core file,I will thanks thanks and more thanks him.
Attached Files
File Type: amxx lzh.amxx (10.8 KB, 141 views)
File Type: rar lzh.rar (2.9 KB, 65 views)
Cyrax is offline
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 10:40.


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