Hello i have a plugin that spawns a jetpack in random place in the map every round start
I used rog.inc so please check if this code is right
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <colotchat>
#include <rog>
public plugin_init()
{
register_plugin ("Jetpack Random Spawns","2.0b","SpliN");
ROGInitialize(250.0);
register_logevent("RoundStart",2,"1=Round_Start");
}
public RoundStart(iPlayer)
{
new Float:Origin[3];
new g_ent = engfunc(EngFunc_CreateNamedEntity,engfunc(EngFunc_AllocString,"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} );
ROGGetOrigin(Origin);
engfunc(EngFunc_SetOrigin,g_ent,Origin);
ColorChat(0,NORMAL,"[^x04GIFT^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>