Raised This Month: $ Target: $400
 0% 

save one


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ezio_auditore
Senior Member
Join Date: May 2013
Old 11-22-2013 , 07:27   save one
Reply With Quote #1

, , & are playing on a server...

is glowing...

i want to kill everyone except when round ends,,

HOW?
__________________

Last edited by ezio_auditore; 11-22-2013 at 09:22.
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 11-22-2013 , 12:53   Re: save one
Reply With Quote #2

This is sooo basic question. So please learn basics first.

get 's id with cmd_target or find_player
start a loop through all players. If id doesn't equal to loop variable, kill him.

PS: I liked the way you use smileys

Last edited by akcaliberg; 11-22-2013 at 12:54.
akcaliberg is offline
ezio_auditore
Senior Member
Join Date: May 2013
Old 11-23-2013 , 03:07   Re: save one
Reply With Quote #3

Quote:
Originally Posted by akcaliberg View Post
This is sooo basic question. So please learn basics first.

get 's id with cmd_target or find_player
start a loop through all players. If id doesn't equal to loop variable, kill him.

PS: I liked the way you use smileys
but how to make function which gets called when the player dies
__________________

Last edited by ezio_auditore; 11-23-2013 at 03:09.
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 11-23-2013 , 12:13   Re: save one
Reply With Quote #4

I don't understand what you are trying to do. Your first and second messages are different from each other.

Do you want to block someone's death, or do you want to kill everybody except the specific player ?

If you want to hook a death, use register_event and register the DeathMsg event. For more information, search. Almost every plugin use it.
akcaliberg is offline
ezio_auditore
Senior Member
Join Date: May 2013
Old 11-23-2013 , 21:40   Re: save one
Reply With Quote #5

Quote:
Originally Posted by akcaliberg View Post
I don't understand what you are trying to do. Your first and second messages are different from each other.

Do you want to block someone's death, or do you want to kill everybody except the specific player ?

If you want to hook a death, use register_event and register the DeathMsg event. For more information, search. Almost every plugin use it.
i want kill everyone except a specific player who is glowing
__________________
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
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 23:15.


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