AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   save one (https://forums.alliedmods.net/showthread.php?t=230243)

ezio_auditore 11-22-2013 07:27

save one
 
:wink:,:down: , :twisted: & :grrr: are playing on a server...

:grrr:is glowing...

i want to kill everyone except :grrr: when round ends,,

HOW?

akcaliberg 11-22-2013 12:53

Re: save one
 
This is sooo basic question. So please learn basics first.

get :grrr:'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 :3

ezio_auditore 11-23-2013 03:07

Re: save one
 
Quote:

Originally Posted by akcaliberg (Post 2064065)
This is sooo basic question. So please learn basics first.

get :grrr:'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 :3

but how to make function which gets called when the player dies

akcaliberg 11-23-2013 12:13

Re: save one
 
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.

ezio_auditore 11-23-2013 21:40

Re: save one
 
Quote:

Originally Posted by akcaliberg (Post 2064498)
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


All times are GMT -4. The time now is 23:15.

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