SA-MP Forums Archive
Setvw war - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Setvw war (/showthread.php?tid=587484)



Setvw war - Jimmi - 31.08.2015

I have a working system of war. But if you give/attack a particular turf, I set the vw 1, but if I die sets vw 0. I wish that when you kill you may not change from vw 1 in 0. to remain until vw 1, ends the war.

http://pastebin.com/SWLQP9Qy


Re: Setvw war - LetsOWN[PL] - 31.08.2015

Quote:
Originally Posted by Jimmi
Посмотреть сообщение
I have a working system of war. But if you give/attack a particular turf, I set the vw 1, but if I die sets vw 0. I wish that when you kill you may not change from vw 1 in 0. to remain until vw 1, ends the war.

http://pastebin.com/SWLQP9Qy
Hello.
So, just remove this part, where You set vw to 0 in OnPlayerDeath callback, and it will remain 1.
Obviously, set it to 0 in proper part of code responsible for end of the event.

Greetings