Raised This Month: $ Target: $400
 0% 

[SOLVED] Spawning armoury_entity gives wrong weapon


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 08-05-2014 , 10:07   [SOLVED] Spawning armoury_entity gives wrong weapon
Reply With Quote #1

Hello everybody,

I try to spawn a pick-up-able smoke grenade, but I always get a auto-sniper.
What am I doing wrong?

Code:
new iEnt = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "armoury_entity"))     new Float:flOrigin[3] flOrigin = g_flSpawnerPos[id]     flOrigin[1] += 20     set_pev(iEnt, pev_origin, flOrigin) set_pdata_int(iEnt, 34, CSW_SMOKEGRENADE, 4) set_pdata_int(iEnt, 35, 1, 4) set_pev(iEnt, pev_model, "models/w_smokegrenade.mdl")     ExecuteHamB(Ham_Spawn, iEnt)
__________________
Kia 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 13:02.


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