Entity not wanting to get spawned
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:
|
Re: Entity not wanting to get spawned
#include <colotchat> ?
Post the rog.inc in your OP please. |
Re: Entity not wanting to get spawned
Quote:
https://forums.alliedmods.net/showthread.php?t=309495 |
Re: Entity not wanting to get spawned
There is no such entity is Jetpack either try to replace it with info_target or something else and then change its class name.
|
Re: Entity not wanting to get spawned
Do what Natsheh said. Also you may want to give it a model.
|
Re: Entity not wanting to get spawned
Quote:
Because the addons which i am using has a modul and i got this classname from the module |
Re: Entity not wanting to get spawned
I did that and still not working
|
Re: Entity not wanting to get spawned
#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 !"); } |
Re: Entity not wanting to get spawned
Define "not working". As I said before, you may want to give your jetpack a model just to confirm it is actually being spawned.
|
Re: Entity not wanting to get spawned
Don't you need to set a size or am i wrong?
|
Re: Entity not wanting to get spawned
Quote:
|
All times are GMT -4. The time now is 12:58. |
Powered by vBulletin®
Copyright ©2000 - 2023, vBulletin Solutions, Inc.