I am trying to mave an ent but i don't seem to do it the good way.
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <engine>
#define PLUGIN "Test"
#define VERSION "1.0"
#define AUTHOR "Administrator"
new Float:outside[3] = {-51.0, -72.0, -147.0}
public plugin_init() {
register_plugin("Test", "1", "Administrator")
register_concmd("amx_testent","testent",ADMIN_IMMUNITY,"Test if an ent moves the right way")
}
public testent(id)`
{
new playerammount
new testP
playerammount = get_maxplayers()
testP = 682 + playerammount
entity_set_origin(testP, outside)
client_print(id,print_chat,"[Amxx] Test worked")
return PLUGIN_HANDLED
}
It does show [Amxx] Test worked. And the ent did move but i don't know where too. It is somewhere else then the coordinates i have given.
__________________