Raised This Month: $ Target: $400
 0% 

When a player dies disables variable?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dragooon
Junior Member
Join Date: Feb 2011
Old 02-02-2013 , 17:47   When a player dies disables variable?
Reply With Quote #1

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?
dragooon is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 02-03-2013 , 01:21   Re: When a player dies disables variable?
Reply With Quote #2

I didn't understand but Ithink you should use deathmsg event
__________________
simanovich is offline
xDrugz
Senior Member
Join Date: Jul 2011
Location: return 4;
Old 02-03-2013 , 08:01   Re: When a player dies disables variable?
Reply With Quote #3

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.
__________________
xDrugz is offline
P1raten
Senior Member
Join Date: Feb 2010
Old 02-03-2013 , 08:32   Re: When a player dies disables variable?
Reply With Quote #4

Quote:
Originally Posted by simanovich View Post
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.
__________________
No salvation. Only madness.
P1raten is offline
dragooon
Junior Member
Join Date: Feb 2011
Old 02-03-2013 , 13:17   Re: When a player dies disables variable?
Reply With Quote #5

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
dragooon is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-03-2013 , 13:22   Re: When a player dies disables variable?
Reply With Quote #6

Quote:
Originally Posted by dragooon View Post
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 View Post
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.
__________________
fysiks is offline
xDrugz
Senior Member
Join Date: Jul 2011
Location: return 4;
Old 02-03-2013 , 14:35   Re: When a player dies disables variable?
Reply With Quote #7

Quote:
Originally Posted by dragooon View Post
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 ..
__________________
xDrugz is offline
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 20:33.


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