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

Help?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mix97
Junior Member
Join Date: Aug 2011
Old 10-14-2011 , 14:49   Help?
Reply With Quote #1

#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <cstrike>


#define PLUGIN "Test"
#define VERSION "1.0"
#define AUTHOR "Test Author "


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}

if(!is_user_alive(id)
{
give_item(id, "weapon_mp5")
give_item(id, "weapon_usp")
give_item(id, "weapon_glock")
give_item(id, "weapon_knife")
}

fix pls
Mix97 is offline
Old 10-14-2011, 15:01
Napoleon_be
This message has been deleted by Napoleon_be.
dark_style
Senior Member
Join Date: Jul 2009
Location: Bulgaria
Old 10-14-2011 , 15:31   Re: Help?
Reply With Quote #2

give_item() Requires the fun module included and.. the code you've posted will not work at all.

You must register a command or w/e you like and put the alive check and give_item() in it.

Last edited by dark_style; 10-14-2011 at 15:39.
dark_style is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 10-14-2011 , 16:35   Re: Help?
Reply With Quote #3

Quote:
Originally Posted by Napoleon_be View Post
PHP Code:
#include <amxmodx>

#define PLUGIN "Test"
#define VERSION "1.0"
#define AUTHOR "Test Author :D"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}

if(
is_user_alive(id)) 
{
    
give_item(id"weapon_mp5navy")
    
give_item(id"weapon_usp")
    
give_item(id"weapon_glock18")

Lol, how is that right?
Why do people keep trying to help without any knowledge in small?
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-14-2011 , 16:42   Re: Help?
Reply With Quote #4

Napoleon_be, each time you give [very] wrong answers. Please stop to help when you don't know what you're doing, you lead people to misunderstandings and wasting their time.
__________________

Last edited by Arkshine; 10-14-2011 at 16:44.
Arkshine is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-14-2011 , 16:49   Re: Help?
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
Napoleon_be, each time you give [very] wrong answers. Please stop to help when you don't know what you're doing, you lead people to misunderstandings and wasting their time.
For fuck sake, i know what i'm doing but i didn't mention the include that i forgot wich isn't added in his code aswell. Stop breaking people off, and this is how i learn. Shut up and go freak much.

PHP Code:
#include <amxmodx>
#include <fun>

#define PLUGIN "Test"
#define VERSION "1.0"
#define AUTHOR "Test Author :D"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /test""test")
}

public 
test(id)
{
    
    if(
is_user_alive(id)) 
    {
        
give_item(id"weapon_mp5navy")
        
give_item(id"weapon_usp")
        
give_item(id"weapon_glock18")
    }  

__________________

Last edited by Napoleon_be; 10-14-2011 at 16:52.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-14-2011 , 17:08   Re: Help?
Reply With Quote #6

wich isn't added in his code aswell ; What a lame excuse.
You learn by giving wrong code, interesting. Not lucky the user who ask help.
Anyway, your code in the first post is still wrong and will lead to misunderstandings. Remove your post or edit it.
__________________
Arkshine is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 10-14-2011 , 17:28   Re: Help?
Reply With Quote #7

If you want to learn how to script go to tutorials section instead of giving incorrect answers in scripting help.
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-14-2011 , 18:09   Re: Help?
Reply With Quote #8

Quote:
Originally Posted by Backstabnoob View Post
If you want to learn how to script go to tutorials section instead of giving incorrect answers in scripting help.
Any usefull tutorials wich are specific redirected to cs 1.6 coding? Give me right now if there are ;)
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 10-14-2011 , 20:41   Re: Help?
Reply With Quote #9

Quote:
Originally Posted by Backstabnoob View Post
If you want to learn how to script go to tutorials section instead of giving incorrect answers in scripting help.
Usefull tip: Compile & test your code before posting it.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
FoxueR
Senior Member
Join Date: Jun 2011
Old 10-14-2011 , 21:34   Re: Help?
Reply With Quote #10

Quote:
Originally Posted by drekes View Post
Usefull tip: Compile & test your code before posting it.
I rarely do either of those. To me, the point of the scripting help board is just to give people a push in the right direction. They should be able to resolve trivial mistakes in code that I give them, as long as the general process is sound.
__________________
¯\_(ツ)_/¯
FoxueR is offline
Old 10-14-2011, 23:37
lollipoptian
This message has been deleted by ConnorMcLeod. Reason: spambot
Reply



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 08:07.


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