AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Alka and other friends,i need help again (https://forums.alliedmods.net/showthread.php?t=55314)

Cyrax 05-19-2007 09:04

Alka and other friends,i need help again
 
2 Attachment(s)
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.


All times are GMT -4. The time now is 10:40.

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