Raised This Month: $ Target: $400
 0% 

Bomb(defuser, planter)


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-20-2012 , 09:41   Re: Bomb(defuser, planter)
Reply With Quote #11

Quote:
Originally Posted by Waleed View Post
Its not working!
My code is not working?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 06-20-2012 , 10:03   Re: Bomb(defuser, planter)
Reply With Quote #12

Quote:
Originally Posted by Waleed View Post
Its not working!

Please, enable a <csx> modules.

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

public plugin_init( ) register_plugin"Bomb Planter" AMXX_VERSION_STR"Exolent[jNr]" );

public 
bomb_plantediPlanter )
{
    new 
szName32 ];
    
get_user_nameiPlanterszNamecharsmaxszName ) );
    
client_print0print_center"* %s planted the bomb!"szName );

__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 06-20-2012 at 10:04.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 06-20-2012 , 11:26   Re: Bomb(defuser, planter)
Reply With Quote #13

Please tell me you're not just copypasta coding and you're actually adding the plugin_init........

Exolent has sound code. Show us your plugin. head to toe.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
Waleed
Senior Member
Join Date: May 2012
Location: Pakistan
Old 06-20-2012 , 11:29   Re: Bomb(defuser, planter)
Reply With Quote #14

PHP Code:
#include <amxmodx>
#include <csx>
public plugin_init()
{
    
register_plugin(****, ****, ****)
}

public 
bomb_planted()
{
    
client_print(idprint_chat"Will it print this message after bomb has been planted?")


__________________
Working On:
  1. Gameplay 1 - 0% [PAUSED]

Last edited by Waleed; 06-20-2012 at 11:32.
Waleed is offline
Send a message via Skype™ to Waleed
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 06-20-2012 , 11:30   Re: Bomb(defuser, planter)
Reply With Quote #15

Use a exolent code, not me its only a example of <csx> module.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Waleed
Senior Member
Join Date: May 2012
Location: Pakistan
Old 06-20-2012 , 11:34   Re: Bomb(defuser, planter)
Reply With Quote #16

Quote:
Originally Posted by Exolent[jNr] View Post
They are forwards, so you can define whatever variable you want them to be called.

Code:
#include <amxmodx> #include <csx> public bomb_planted( iPlanter ) {     new szName[ 32 ];     get_user_name( iPlanter, szName, charsmax( szName ) );         client_print( 0, print_center, "* %s planted the bomb!", szName ); }

This is not working.Anybody try this,If its working(ITS EXOLENT'S CODE)
__________________
Working On:
  1. Gameplay 1 - 0% [PAUSED]
Waleed is offline
Send a message via Skype™ to Waleed
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 06-20-2012 , 11:35   Re: Bomb(defuser, planter)
Reply With Quote #17

You need a plugin_init otherwise it won't work. silly goose.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 06-20-2012 , 11:40   Re: Bomb(defuser, planter)
Reply With Quote #18

plugin_init isn't mandatory.

It doesn't work, because the message is printed in the center, where is overwritten by the original "The bomb has been planted" message.
__________________
<VeCo> is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 06-20-2012 , 11:46   Re: Bomb(defuser, planter)
Reply With Quote #19

Quote:
Originally Posted by <VeCo> View Post
plugin_init isn't mandatory.

It doesn't work, because the message is printed in the center, where is overwritten by the original "The bomb has been planted" message.
oh! lol....i didn't even notice that.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz 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 06:09.


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