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

[Req] Simple Code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kosidone
Member
Join Date: Aug 2014
Old 07-03-2015 , 16:50   [Req] Simple Code
Reply With Quote #1

solved

Last edited by Kosidone; 11-11-2015 at 14:00.
Kosidone is offline
MaSTeR64
Member
Join Date: Apr 2015
Location: Serbia <3
Old 07-03-2015 , 16:59   Re: [Req] Simple Code
Reply With Quote #2

You mean a scout without even one bullet?
MaSTeR64 is offline
Kosidone
Member
Join Date: Aug 2014
Old 07-03-2015 , 17:02   Re: [Req] Simple Code
Reply With Quote #3

yeap :"D sorry for my bad english :S

Last edited by Kosidone; 07-03-2015 at 17:02.
Kosidone is offline
BaD CopY
Senior Member
Join Date: Oct 2014
Location: Home
Old 07-03-2015 , 19:34   Re: [Req] Simple Code
Reply With Quote #4

What grade of admin can use thet command ? Give scouts to all players or to specific player ?
BaD CopY is offline
Send a message via Yahoo to BaD CopY Send a message via Skype™ to BaD CopY
Kosidone
Member
Join Date: Aug 2014
Old 07-03-2015 , 19:37   Re: [Req] Simple Code
Reply With Quote #5

Just Free for All
Kosidone is offline
BaD CopY
Senior Member
Join Date: Oct 2014
Location: Home
Old 07-03-2015 , 19:45   Re: [Req] Simple Code
Reply With Quote #6

what grade of admin can use thet command ?
BaD CopY is offline
Send a message via Yahoo to BaD CopY Send a message via Skype™ to BaD CopY
Kosidone
Member
Join Date: Aug 2014
Old 07-03-2015 , 19:47   Re: [Req] Simple Code
Reply With Quote #7

i don't want specifically admin must write this any player can take Scout with that command!

Last edited by Kosidone; 07-03-2015 at 19:48.
Kosidone is offline
BaD CopY
Senior Member
Join Date: Oct 2014
Location: Home
Old 07-03-2015 , 19:55   Re: [Req] Simple Code
Reply With Quote #8

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

#define PLUGIN "Free Scouts"
#define VERSION "1.0"
#define AUTHOR "BaD CopY"


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

public 
give_scout(id)
{
    
give_iteem(id"weapon_scout")

When player say/scout player will get scout. its untested and if you have any problem, say me..
BaD CopY is offline
Send a message via Yahoo to BaD CopY Send a message via Skype™ to BaD CopY
Old 07-03-2015, 20:22
Kosidone
This message has been deleted by Kosidone.
MaSTeR64
Member
Join Date: Apr 2015
Location: Serbia <3
Old 07-04-2015 , 05:45   Re: [Req] Simple Code
Reply With Quote #9

Quote:
Originally Posted by BaD CopY View Post
PHP Code:
public give_scout(id)
{
    
give_iteem(id"weapon_scout")

I think it isnt suppost to be give_iteem...

Use
PHP Code:
give_item(id"weapon_scout"

Last edited by MaSTeR64; 07-04-2015 at 05:45.
MaSTeR64 is offline
Shiina.Mashiro
Senior Member
Join Date: Sep 2014
Location: Vietnam
Old 07-04-2015 , 06:11   Re: [Req] Simple Code
Reply With Quote #10

1. You forgot the fun module.
2. You forgot to set ammo to 0.
__________________
Shiina.Mashiro is offline
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 17:45.


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