Raised This Month: $ Target: $400
 0% 

respawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AAleaderNik
Member
Join Date: Dec 2005
Old 04-07-2006 , 00:09  
Reply With Quote #1

thanks chron but do you have a solution to the code cuz the one given doesnt work
AAleaderNik is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 04-07-2006 , 00:12  
Reply With Quote #2

didn't you see the link I sent you. My approved working multi-modded respawn plugin. It's very simple coding too.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
AAleaderNik
Member
Join Date: Dec 2005
Old 04-07-2006 , 01:29  
Reply With Quote #3

ok so if i wanted to just say /revive blah would it be

Code:
register_clcmd ("/say" "/revive <player name>")
or somethin like that
AAleaderNik is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 04-07-2006 , 17:19  
Reply With Quote #4

no it wouldnt be. good luck with that.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 04-07-2006 , 17:31  
Reply With Quote #5

Code:
#include <amxmodx> #include <amxmisc> #include <fun> public plugin_init() {     register_plugin("Got", "Milk", "?");         register_clcmd("say", "HandleSay");     register_clcmd("say_team", "HandleSay"); } public HandleSay(id) {         new message[512];     new said[2][64];         read_args(message , 511);     remove_quotes(message);     trim(message);         if ( !strlen(message) )         return PLUGIN_HANDLED;         strbreak(message, said[0], 63, said[1], 63);         if ( equali(said[0], "/respawn") || equali(said[0], "/spawn" ) || equali(said[0], "/revive" ) ) {                 if ( ! is_user_admin(id) ) {             remove_task(id);             return PLUGIN_HANDLED;         }                 new target;                 if ( ! strlen(said[1]) )             target = id;                 else             target = cmd_target(id, said[1], 2);                 if ( ! target || is_user_alive(target) || task_exists(target) )             return PLUGIN_HANDLED;                 set_task(0.2, "Respawn", target, _, _,  "a", 2);                 return PLUGIN_HANDLED;     }         return PLUGIN_CONTINUE; } public Respawn(index) spawn(index);
[ --<-@ ] Black Rose is offline
AAleaderNik
Member
Join Date: Dec 2005
Old 04-07-2006 , 23:24  
Reply With Quote #6

what i meant by that is make it where if said /revive joe it would revive a guy on the server called joe because i think the could you gave me just made it so i say /revive then everyone respawns?
AAleaderNik is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 04-08-2006 , 06:25  
Reply With Quote #7

noooo. example:
Code:
say /revive joe
would revive guy named joe
and if the user didn't enter any name after /revive the USER will be revived
[ --<-@ ] Black Rose is offline
thomas_rox3
Junior Member
Join Date: Jan 2006
Old 04-08-2006 , 08:49  
Reply With Quote #8

Ok what you could do is getthe ADMIN SLASH plugin and a revive plugin and then all you would have to do is say /revive thomas 100

Hope this helps
thomas_rox3 is offline
Send a message via MSN to thomas_rox3
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 16:34.


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