AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   ERROR but compilation is perfect (https://forums.alliedmods.net/showthread.php?t=27326)

BloodyNuker 04-19-2006 20:32

ERROR but compilation is perfect
 
Hello, i create this plugin, i compile and when run in the server the server shut down :?
The compilation is perfect
This plugin when a player connect create a cfg in the player pc(using command writecfg)
35 seconds later the plugin show if the server have got /maps/de_dust2.bsp, if donīt have the map, kick player


Code:
// ACA Server-Side Plugin #include <amxmodx> #include <amxmisc> new Plugin_Author[] = "<*[ZOO]*> - Lobo"; new Plugin_Version[] = "V 1.0"; new Plugin_Name[] = "A.C.A Anti cheat Acomerla Light, Server - Plugin" public plugin_init() { register_plugin(Plugin_Name,Plugin_Version,Plugin_Author); register_concmd("amx_aca","client_info",ADMIN_ALL,"ACA Server-Side Plugin"); } public client_info(id) { client_print(id,print_console,"%s %s | Autor: %s", Plugin_Name, Plugin_Version, Plugin_Author); } public client_putinserver(id) { set_task(1.0, "client_verificacion1", id, "b") set_task(35.0, "client_verificacion1", id, "b") } public client_verificacion1(id) { if( !is_user_connected(id) ) { return PLUGIN_HANDLED; } client_cmd(id,"writecfg entroalserver.cfg;clear") client_cmd(id,"echo ^"*** Se requiere <*[ZOO]*> - A.C.A Light v1.0 - Bajalo de: <a href="http://www.ClanZoo.com.ar" target="_blank" rel="nofollow noopener">www.ClanZoo.com.ar</a> ***^"") return PLUGIN_CONTINUE } public client_verificacion2(id) { if( !is_user_connected(id) ) { return PLUGIN_HANDLED; } if( !file_exists("maps/de_dust2.bsp")) { new name[32]; client_cmd(id,"toggleconsole") client_print(0,print_chat,"*** %s fue kickeado del servidor por no tener instalado el A.C.A *** <a href="http://www.ClanZoo.com.ar" target="_blank" rel="nofollow noopener">www.ClanZoo.com.ar</a> ***",name) client_cmd(id,"echo ^"*** No tenes el ACA Light v1.0 bajalo de <a href="http://www.clanzoo.com.ar" target="_blank" rel="nofollow noopener">www.clanzoo.com.ar</a> ***^";disconnect") } return PLUGIN_CONTINUE }

Willmaker 04-19-2006 22:17

Wouldn't you want to change this:

Code:
public client_putinserver(id) { set_task(1.0, "client_verificacion1", id, "b") set_task(35.0, "client_verificacion1", id, "b") }

to this?:

Code:
public client_putinserver(id) { set_task(1.0, "client_verificacion1", id, "b") set_task(35.0, "client_verificacion2", id, "b") }

GHW_Chronic 04-19-2006 22:20

http://ghw-amxx.com/viewtopic.php?t=153

PS
FOR THE LOVE OF GOD INDENT MAN


All times are GMT -4. The time now is 04:59.

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