AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   When a player dies disables variable? (https://forums.alliedmods.net/showthread.php?t=207449)

dragooon 02-02-2013 17:47

When a player dies disables variable?
 
Hi, I'm JB on his request, where the player can choose the FD for the next day

Code:

has_fd[id] = dzien + 1
And in the next round gets FD, but it takes 180 seconds for example, and if the player dies after 10 seconds, for example, the next day it is again FD. How do I do that if it loses the player died has_fd [id] = 0, but that was not so, that the player chooses a request FD as it does not die in the next round of FD. How to do it?

simanovich 02-03-2013 01:21

Re: When a player dies disables variable?
 
I didn't understand but Ithink you should use deathmsg event

xDrugz 02-03-2013 08:01

Re: When a player dies disables variable?
 
you trying to set free day on any player and next round it will say to all that he has a fd ?
is that correct ?
because i cant understand a word of what you want to say.

P1raten 02-03-2013 08:32

Re: When a player dies disables variable?
 
Quote:

Originally Posted by simanovich (Post 1886031)
I didn't understand but Ithink you should use deathmsg event

Yeah, hooking the DeathMsgEvent is probably the best option here.

Other than that I can't really make out what it is you want.

dragooon 02-03-2013 13:17

Re: When a player dies disables variable?
 
But how to do it in DeathMsgEvent?

Because I want to do if a player has

has_fd [id] = day + 1

is that the next round of the die in the die loses

has_fd [id]

Please send me an example

fysiks 02-03-2013 13:22

Re: When a player dies disables variable?
 
Quote:

Originally Posted by dragooon (Post 1886285)
But how to do it in DeathMsgEvent?

Please send me an example

Look for existing examples using DeathMsg to see how it's done.

Quote:

Originally Posted by dragooon (Post 1886285)
Because I want to do if a player has

has_fd [id] = day + 1

is that the next round of the die in the die loses

has_fd [id]

This doesn't make sense.

xDrugz 02-03-2013 14:35

Re: When a player dies disables variable?
 
Quote:

Originally Posted by dragooon (Post 1886285)
But how to do it in DeathMsgEvent?

Because I want to do if a player has

has_fd [id] = day + 1

is that the next round of the die in the die loses

has_fd [id]

Please send me an example

Answer my question first, i can't help you without answer.
because i cant understand you .. :|


All times are GMT -4. The time now is 20:33.

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