View Single Post
SpliN
Junior Member
Join Date: Jun 2020
Location: Egypt
Old 10-11-2021 , 09:48   Re: Entity not wanting to get spawned
Reply With Quote #8

#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <colotchat>
#include <rog>

public plugin_precache()
{

}

public plugin_init()
{
register_plugin ("Jetpack Random Spawns","2.0b","SpliN");
ROGInitialize(250.0);
register_logevent("RoundStart",2,"1=Round_Sta rt");
}

public RoundStart(iPlayer)
{
new Float:Origin[3];
new g_ent = engfunc(EngFunc_CreateNamedEntity,engfunc(Eng Func_AllocString,"info_target"));
ROGGetOrigin(Origin)
if(pev_valid(g_ent))
{
set_pev(g_ent,pev_classname,"Jetpack")
set_pev( g_ent, pev_renderfx, kRenderFxGlowShell );
set_pev( g_ent, pev_renderamt, 125.0 );
set_pev( g_ent, pev_rendermode, kRenderTransAlpha );
set_pev( g_ent, pev_rendercolor, {0.0, 255.0, 0.0} );
engfunc(EngFunc_SetOrigin,g_ent, Origin);
}
ColorChat(0,NORMAL,"[^x04NewLifeZM^x01] a Jetpack has been Spawned in a random place in the map , Go get it !");
}
__________________
Selling Original Zombie Plague 6.2 amxx + module(.so) Contact Me For Purchuase
<a href="https://www.gametracker.com/server_info/89.41.176.19:27015/" target="_blank"><img src="https://cache.gametracker.com/server_info/89.41.176.19:27015/b_560_95_1.png" border="0" width="560" height="95" alt=""/></a>
SpliN is offline