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

Entity not wanting to get spawned


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SpliN
Junior Member
Join Date: Jun 2020
Location: Egypt
Old 10-10-2021 , 09:27   Entity not wanting to get spawned
Reply With Quote #1

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_pevg_entpev_renderfxkRenderFxGlowShell );
set_pevg_entpev_renderamt125.0 );
set_pevg_entpev_rendermodekRenderTransAlpha );
set_pevg_entpev_rendercolor, {0.0255.00.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>
SpliN is offline
 



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 06:16.


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