Raised This Month: $32 Target: $400
 8% 

Respawn - Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
enis.unniking
Junior Member
Join Date: Jul 2019
Location: KOSOVA
Old 07-22-2019 , 04:43   Respawn - Plugin
Reply With Quote #1

This plugin serves to you to respawn your self when you are dead!

You can respawn your self by writting on chat: /respawn, and you will get respawned to your base!

This plugin don't have any BUG!

Hope you will like it!
Attached Files
File Type: sma Get Plugin or Get Source (respawn.sma - 497 views - 1.9 KB)

Last edited by enis.unniking; 07-22-2019 at 09:16.
enis.unniking is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 07-22-2019 , 06:27   Re: Respawn - Plugin
Reply With Quote #2

Respawning doesn't strip knife and pistols, no need to give them. Player doesn't actually get any primary weapons...
You are calling 2 separate functions with one command, terrible.

//why did you steal fysiks's avatar?
__________________

Last edited by <VeCo>; 07-22-2019 at 06:36.
<VeCo> is offline
enis.unniking
Junior Member
Join Date: Jul 2019
Location: KOSOVA
Old 07-22-2019 , 06:31   Re: Respawn - Plugin
Reply With Quote #3

Quote:
Originally Posted by <VeCo> View Post
Respawning doesn't strip knife and pistols, no need to give them.
You are calling 2 separate functions with one command, terrible.

//why did you steal fysiks's avatar?
Edited!

// I am new here, I just saw it I liked it, and I set it as my avatar!
enis.unniking is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-22-2019 , 07:44   Re: Respawn - Plugin
Reply With Quote #4

And what is this supposed to do? Why is it there?

PHP Code:
native give_itemindex, const item[] )] 
Stop posting trash code. You're not being helpful to anyone.
__________________

Last edited by OciXCrom; 07-22-2019 at 07:44.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 07-22-2019 , 08:31   Re: Respawn - Plugin
Reply With Quote #5

I haven't tried if this works but seems 10 times better than
register_clcmd( "say /respawn", "CTrespawn" )
register_clcmd( "say /respawn", "TTrespawn" )

Spoiler
__________________

Last edited by Relaxing; 07-22-2019 at 08:54. Reason: Stoping spectators respawn
Relaxing is offline
thEsp
BANNED
Join Date: Aug 2017
Old 07-22-2019 , 09:06   Re: Respawn - Plugin
Reply With Quote #6

Quote:
Originally Posted by Relaxing View Post
I haven't tried if this works but seems 10 times better than
register_clcmd( "say /respawn", "CTrespawn" )
register_clcmd( "say /respawn", "TTrespawn" )

Spoiler
DeathMsg is the message that appears on top right corner when someone makes a frag. So don't use it, as it does not fully indicate a death. Either register Ham_Killed or use CSX's client_death forward.

Last edited by thEsp; 01-02-2020 at 06:20.
thEsp is offline
enis.unniking
Junior Member
Join Date: Jul 2019
Location: KOSOVA
Old 07-22-2019 , 09:15   Re: Respawn - Plugin
Reply With Quote #7

Quote:
Originally Posted by OciXCrom View Post
And what is this supposed to do? Why is it there?

PHP Code:
native give_itemindex, const item[] )] 
Stop posting trash code. You're not being helpful to anyone.
This is my mistake, before I have just removed give_item...
But I forgot to delete that line! Sorry.

Edited!
enis.unniking is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 07-22-2019 , 10:08   Re: Respawn - Plugin
Reply With Quote #8

Awesome plugin (fysiks) !
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
enis.unniking
Junior Member
Join Date: Jul 2019
Location: KOSOVA
Old 07-22-2019 , 10:42   Re: Respawn - Plugin
Reply With Quote #9

Quote:
Originally Posted by JocAnis View Post
Awesome plugin (fysiks) !
THANKS

But I am not (fysiks)
enis.unniking is offline
wilianmaique
BANNED
Join Date: Nov 2016
Old 07-22-2019 , 11:06   Re: Respawn - Plugin
Reply With Quote #10

that is enough

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

#define PLUGIN  "New Plug-In"
#define VERSION "1.0.0-2"
#define AUTHOR  "Author"

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

public 
xRespawn(id)

    if(!
is_user_alive(id))
    {
        
ExecuteHamB(Ham_CS_RoundRespawnid)
    }

wilianmaique is offline
Send a message via Skype™ to wilianmaique
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 05:29.


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