Raised This Month: $ Target: $400
 0% 

My command.


Post New Thread Reply   
 
Thread Tools Display Modes
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-27-2008 , 05:38   Re: My command.
Reply With Quote #11

do some delay like 0.2-0.4 seconds to give weapon
__________________
xPaw is offline
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-27-2008 , 05:48   Re: My command.
Reply With Quote #12

I think "return PLUGIN_CONTINUE" can show my plugin command,/respawn.How to do it?
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-27-2008 , 06:58   Re: My command.
Reply With Quote #13

Anyone can help me?Need now.Never mind if can't helping me.
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-27-2008 , 07:08   Re: My command.
Reply With Quote #14

PHP Code:
public Cmd_Respawnid )
{
    if( !
get_pcvar_nump_On ) )
    {
        
client_printidprint_chat"Manual Respawn is off!" );
        return 
PLUGIN_HANDLED;
    }
    
    new 
limit;
    if( ++
g_iRespawnCountid ] > ( limit get_pcvar_nump_Limit ) ) )
    {
        
client_printidprint_chat"You have respawned yourself too much. Wait to new round." );
        return 
PLUGIN_HANDLED;
    }
    
    if( !
is_user_aliveid ) )
    {
        new 
name[32]
        
get_user_name(id,name,31)    
        
ExecuteHamBHam_CS_RoundRespawnid );
        
client_printidprint_chat"%s use Manual Respawn.%d respawn left.", ( name,limit g_iRespawnCountid ] ) );
  
        
give_item(id,"weapon_mp5navy")
        
give_item(id,"ammo_9mm")
        
give_item(id,"ammo_9mm")
        return 
PLUGIN_CONTINUE;
    } else {
        
client_printidprint_chat"You must be dead to acces Manual Respawn." );
        return 
PLUGIN_CONTINUE;
    }
    
    return 
PLUGIN_CONTINUE;

__________________
xPaw is offline
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-27-2008 , 07:19   Re: My command.
Reply With Quote #15

If I want set the health of client that respawn,like this?

PHP Code:
public Cmd_Respawnid 

    if( !
get_pcvar_nump_On ) ) 
    { 
        
client_printidprint_chat"Manual Respawn is off!" ); 
        return 
PLUGIN_HANDLED
    } 
     
    new 
limit
    if( ++
g_iRespawnCountid ] > ( limit get_pcvar_nump_Limit ) ) ) 
    { 
        
client_printidprint_chat"You have respawned yourself too much. Wait to new round." ); 
        return 
PLUGIN_HANDLED
    } 
     
    if( !
is_user_aliveid ) ) 
    { 
        new 
name[32
        
get_user_name(id,name,31)     
        
ExecuteHamBHam_CS_RoundRespawnid ); 
        
client_printidprint_chat"%s use Manual Respawn.%d respawn left.", ( name,limit g_iRespawnCountid ] ) ); 
   
        
give_item(id,"weapon_mp5navy"
        
give_item(id,"ammo_9mm"
        
give_item(id,"ammo_9mm"
        return 
PLUGIN_CONTINUE
    } else { 
        
client_printidprint_chat"You must be dead to acces Manual Respawn." ); 
        return 
PLUGIN_CONTINUE
    } 
     
    return 
PLUGIN_CONTINUE

To..

PHP Code:
public Cmd_Respawnid 

    if( !
get_pcvar_nump_On ) ) 
    { 
        
client_printidprint_chat"Manual Respawn is off!" ); 
        return 
PLUGIN_HANDLED
    } 
     
    new 
limit
    if( ++
g_iRespawnCountid ] > ( limit get_pcvar_nump_Limit ) ) ) 
    { 
        
client_printidprint_chat"You have respawned yourself too much. Wait to new round." ); 
        return 
PLUGIN_HANDLED
    } 
     
    if( !
is_user_aliveid ) ) 
    { 
        new 
name[32
        
get_user_name(id,name,31)     
        
ExecuteHamBHam_CS_RoundRespawnid ); 
        
client_printidprint_chat"%s use Manual Respawn.%d respawn left.", ( name,limit g_iRespawnCountid ] ) ); 
   
        
give_item(id,"weapon_mp5navy"
        
give_item(id,"ammo_9mm"
        
give_item(id,"ammo_9mm"
        
set_user_health(id,50)
        return 
PLUGIN_CONTINUE
    } else { 
        
client_printidprint_chat"You must be dead to acces Manual Respawn." ); 
        return 
PLUGIN_CONTINUE
    } 
     
    return 
PLUGIN_CONTINUE

Right?
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-27-2008 , 07:47   Re: My command.
Reply With Quote #16

Quote:
Originally Posted by xPaw View Post
do some delay like 0.2-0.4 seconds to give weapon
Can you help do delay?I have no idea to do it.

And about return PLUGIN_CONTINUE,still same.No message and no weapon.
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 12-27-2008 , 11:27   Re: My command.
Reply With Quote #17

I don't want to sound possessive, but come on - You actually posted this plugin with about 3 more lines and added yourself to the authors... And now you're asking help from other people? Don't post plugins you haven't made by yourself without saying who is the actual coder... You just posted what I gave you! Not only that, you also credited hleV? You didn't even use a single part of the code he gave you...
First add more than 10 ~ 15 lines before adding yourself to the authors...

I don't have the right to say this, as I'm not that good of a coder, but try learning a bit more before posting and upgrading other people's plugins...


Roger Out.
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ

Last edited by Dores; 12-27-2008 at 11:37.
Dores is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-27-2008 , 12:07   Re: My command.
Reply With Quote #18

[img]http://img264.**************/img264/5866/globalruleszv5.jpg[/img]

Please read these. If you continue to double post, you will find your topic locked
__________________
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
ianglowz
Senior Member
Join Date: Nov 2008
Old 12-27-2008 , 20:59   Re: My command.
Reply With Quote #19

@Dores
I'm sorry.Thanks for the code.Now I will not edit anything.Just use your code.

@YamiKaitou
Sorry about double post.I don't read the rules before post.I try to qoute,then I think submit post is save.
__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 12-27-2008 , 21:25   Re: My command.
Reply With Quote #20

Quoting your message will post a new message. Use the "edit" button to edit your message.
Spunky is offline
Send a message via AIM to Spunky
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 20:21.


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