Raised This Month: $12 Target: $400
 3% 

Can someone remove the say command...and make it work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PinHeaDi
Senior Member
Join Date: Jul 2013
Location: Bulgaria
Old 08-09-2015 , 16:43   Can someone remove the say command...and make it work
Reply With Quote #1

Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>

public plugin_precache() 
{
   precache_model("models/sky.mdl")
}
 
public plugin_init() 
{
   register_plugin("Apokalyptic sky","1.0","")
   register_clcmd("say /sky","dark_sky")
}
 
public dark_sky(id)
{
        new g_SkyEnt = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"))
        if (pev_valid(g_SkyEnt))
        {
                set_pev(g_SkyEnt, pev_solid, SOLID_NOT)
                new Float:origin[3]
                pev(id, pev_origin, origin)
                entity_set_origin(g_SkyEnt,origin)
                entity_set_float(g_SkyEnt,EV_FL_animtime,2.0)
                entity_set_float(g_SkyEnt,EV_FL_framerate,1.0)
                entity_set_int(g_SkyEnt,EV_INT_sequence,0)
                entity_set_model(g_SkyEnt,"models/sky.mdl")
                dllfunc(DLLFunc_Spawn, g_SkyEnt)
        }
}
PinHeaDi is offline
Kosidone
Member
Join Date: Aug 2014
Old 08-10-2015 , 05:01   Re: Can someone remove the say command...and make it work
Reply With Quote #2

try .

Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>

public plugin_precache() 
{
   precache_model("models/sky.mdl")
}
 
public plugin_init() 
{
   register_plugin("Apokalyptic sky","1.0","")
//   register_clcmd("say /sky","dark_sky")
}
 
public dark_sky(id)
{
        new g_SkyEnt = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"))
        if (pev_valid(g_SkyEnt))
        {
                set_pev(g_SkyEnt, pev_solid, SOLID_NOT)
                new Float:origin[3]
                pev(id, pev_origin, origin)
                entity_set_origin(g_SkyEnt,origin)
                entity_set_float(g_SkyEnt,EV_FL_animtime,2.0)
                entity_set_float(g_SkyEnt,EV_FL_framerate,1.0)
                entity_set_int(g_SkyEnt,EV_INT_sequence,0)
                entity_set_model(g_SkyEnt,"models/sky.mdl")
                dllfunc(DLLFunc_Spawn, g_SkyEnt)
        }
}

Last edited by Kosidone; 08-10-2015 at 05:02.
Kosidone is offline
PinHeaDi
Senior Member
Join Date: Jul 2013
Location: Bulgaria
Old 08-10-2015 , 05:33   Re: Can someone remove the say command...and make it work
Reply With Quote #3

Code:
//// sky.sma
//
// C:\Users\SSadistic\Desktop\Zombie_Escape_2.5f\Zombie_Escape_2.5f\addons\amxmodx\scripting\sky.sma(1) : error 010: invalid function or declaration
// C:\Users\SSadistic\Desktop\Zombie_Escape_2.5f\Zombie_Escape_2.5f\addons\amxmodx\scripting\include\engine.inc(253) : error 017: undefined symbol "kRenderFxNone"
//
// 2 Errors.
// Could not locate output file compiled\sky.amx (compile failed).
//
// Compilation Time: 0,59 sec
__________________
PinHeaDi is offline
4ever16
Veteran Member
Join Date: Apr 2015
Old 08-11-2015 , 03:12   Re: Can someone remove the say command...and make it work
Reply With Quote #4

Remove say /sky or replace it with something like say /writewhatyouwanthere

Last edited by 4ever16; 08-11-2015 at 03:15.
4ever16 is offline
PinHeaDi
Senior Member
Join Date: Jul 2013
Location: Bulgaria
Old 08-11-2015 , 11:55   Re: Can someone remove the say command...and make it work
Reply With Quote #5

Quote:
Originally Posted by 4ever16 View Post
Remove say /sky or replace it with something like say /writewhatyouwanthere
Same error
__________________
PinHeaDi is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 08-11-2015 , 13:21   Re: Can someone remove the say command...and make it work
Reply With Quote #6

Quote:
Originally Posted by PinHeaDi View Post
Same error
It seems like your compiler is broken. Maybe an include that is bad or something else.
My compiler compile this just fine.

You can also try this "online compiler"
it compiles the sma without any errors.
https://spider.limetech.org/
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
Reply


Thread Tools
Display Modes

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 04:04.


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