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

PLZZ HELP ME !!


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
vappe
Junior Member
Join Date: Mar 2008
Location: Norway
Old 09-30-2008 , 15:45   PLZZ HELP ME !!
#1

minimiller fixed it TYYYY !!! :)

Last edited by vappe; 10-01-2008 at 08:46.
vappe is offline
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 09-30-2008 , 15:48   Re: PLZZ HELP ME !!
#2

add a } at the end
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who donīt.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
FakeNick
Senior Member
Join Date: Feb 2008
Location: Poland
Old 09-30-2008 , 15:49   Re: PLZZ HELP ME !!
#3

In future place code in [php] tags ;].
__________________


[||||||||||] Snowball war v3.05

Pol
ish translations here ;) (PM me if you want one).


FakeNick is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 09-30-2008 , 16:06   Re: PLZZ HELP ME !!
#4

And also i dont think that will work
U used CSW_AWP and CSW_FIVESEVEN as the weapons index
They need to be 18, and 11
Like so:

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

#define Plugin "Weapon Chance"
#define Version "1.0"
#define Author "Doombringer"

#define TIME_TO_WAIT 5.0

public plugin_init()
{
      
register_plugin(PluginVersionAuthor)
      
register_logevent("round_start"2"1=Round_Start")
}

public 
main_func()
{
      new 
players[32], num
      get_players
(playersnum)

      new 
player
      
for(new 0numi++)
      {
          
player players[i]

          if(
random_num(0100) <= 1)
          { 
              
give_item(player"weapon_awp")

              
cs_set_user_bpammo(player181)
              
client_print(playerprint_chat"[HNS] You were lucky, you got a AWP with 1 bullet (1% chance)")
          }

          if(
random_num(0100) <= 15)
          {
               
give_item(player"weapon_fiveseven"

               
cs_set_user_bpammo(player112)
               
client_print(playerprint_chat"[HNS] You were lucky, you got a five seven with 2 bullets (15% chance)")
          }

          if(
random_num(0100) <= 25)
          {
               
give_item(player"weapon_hegrenade")
               
client_print(playerprint_chat"[HNS] You were lucky, you got a hegrenade (25% chance)")
          }
     }
}

public 
round_start()
{
      
set_task(TIME_TO_WAIT"main_func")

__________________
minimiller is offline
Send a message via MSN to minimiller
PvtSmithFSSF
Senior Member
Join Date: Jul 2008
Old 09-30-2008 , 16:06   Re: PLZZ HELP ME !!
#5

Code:
 public round_start()
{
set_task(TIME_TO_WAIT, "main_func")
change that to:

Code:
 public round_start()
{
set_task(TIME_TO_WAIT, "main_func")
}
PvtSmithFSSF is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-30-2008 , 16:07   Re: PLZZ HELP ME !!
#6

Quote:
Originally Posted by minimiller View Post
U used CSW_AWP and CSW_FIVESEVEN as the weapons index
They need to be 18, and 11
You could not be more wrong.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 09-30-2008 , 16:16   Re: PLZZ HELP ME !!
#7

lol thats why i said "i dont think that will work"

And ive just realised that i thought he needed cs_set_weapon_ammo
which says:
Quote:
cs_set_weapon_ammo ( index, newammo )
"index is the weapon entity's index."
Ive also just realised that this code will give the user an AWP with 10 bullits in the clip and 1 in bp
maybe u did want cs_set_weapon_ammo?
__________________
minimiller is offline
Send a message via MSN to minimiller
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-30-2008 , 16:34   Re: PLZZ HELP ME !!
#8

Just use this weapon chance plugin. It does exactly what you want, and more.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
vappe
Junior Member
Join Date: Mar 2008
Location: Norway
Old 10-01-2008 , 08:42   Re: PLZZ HELP ME !!
#9

TYY minimiller !!
vappe is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-01-2008 , 11:02   Re: PLZZ HELP ME !!
#10

As per the Global Forum Rules, you need to have a descriptive topic title. Feel free to repost the topic again, but make sure you have a descriptive topic title.


Also, it is not wise to remove your original post, others might benefit from the question/answer when they search.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Closed Thread



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 04:28.


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