AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Plugin Problems (https://forums.alliedmods.net/showthread.php?t=2858)

Votorx 06-18-2004 22:16

Plugin Problems
 
1 Attachment(s)
I need some help making a plugin, I seem to be getting the same error over and over again when I start up the server "[AMXX] Plugin file open error (plugin "plugin name"). Does anyone know why? The compiler compiles the .sma file fine.

Also, how can I get the elapsed time of how long the server's been up for?

Thanks for you help

BTW: Here's the plugin, this is only like my second plugin so its very bad, but it still works (or should at least).

Votorx 06-18-2004 22:41

Also, can you just give me and example of what variables would be placed in these functions?

ENT_SetModel(iIndex, szModel[])
FindEntity(iIndex, szValue[])

I'm trying to make a plugin that allows me to put a model into a different mod, only I have absolutely no clue on how to do this, please help.

PM 06-20-2004 06:47

hum file open error: make sure your file is actually there and it is spelled correctly in plugins.ini ;]

FindEntity: iIndex: the search will begin on this (or after this?) entity. szValue: classname of the entity (like info_player_start or something).
ENT_SetModel: iIndex: Index of the entity; szModel: path to the (precached!) model (for example models/hehe.mdl)

Votorx 06-20-2004 16:30

Thank PM, but for some reason every time I try running the model, the server keeps freezing, why?

BTW, I figured out the problem, thanks anways.

devicenull 06-20-2004 18:10

Just a suggestion
Instead of server_cmd("amx_slay %s",name)
Use client_cmd(id,"kill)
I'm not understanding the point of that Increase variable.. you could just use 32


All times are GMT -4. The time now is 14:43.

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