Raised This Month: $ Target: $400
 0% 

Flashlight Wont Spawn


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Mirun.Frontier
Member
Join Date: Aug 2008
Old 07-29-2010 , 23:41   Re: Flashlight Wont Spawn
Reply With Quote #13

In short i just changed give_item to create_entity(with engine included of course)
Wouldn't expect me to put a few more lines because well usually when I start on a plugin I end up giving up whenever I mess up, and I know there will be a bunch of mess ups.

Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <engine>

#define PLUGIN "Flashlight Spawner"
#define VERSION "1.0"
#define AUTHOR "Ghost"


public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    register_concmd("say !flashlight","flashlight",-1,"Gives yourself a Flashlight!")
}

public flashlight(id)
{
    create_entity(id,"weapon_flashlight")
    return PLUGIN_HANDLED
}
__________________
I can't believe I wasted 5 years of my life not knowing how to program correctly. Went too deep into advanced coding before even learning the basics correctly. :c

Last edited by Mirun.Frontier; 07-29-2010 at 23:43.
Mirun.Frontier 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 19:48.


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