MyNoobScriptz Posted March 5, 2024 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 76 Reputation: 3 Joined: 05/01/15 Last Seen: April 9 Share Posted March 5, 2024 Hi, how to count player in map PvP (pvp_y_1-2) 1. if count = 20 get 10 Yggdrasil Berry 2. if count = 10 get 5 Yggdrasil Berry I use OnPCDieEvent sometime script can't run to next step. because some player has left by using Alt+F4 Quote Link to comment Share on other sites More sharing options...
0 Mathew Posted March 5, 2024 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 10 Reputation: 4 Joined: 02/27/24 Last Seen: Friday at 09:22 PM Share Posted March 5, 2024 You can also check how the last man standing event does. Basically an event onTimer1000, which is called every second where checks the count of people in the map. 1 Quote Link to comment Share on other sites More sharing options...
0 Angeluz Posted March 5, 2024 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 109 Reputation: 19 Joined: 07/28/12 Last Seen: April 9 Share Posted March 5, 2024 (edited) u can try with - script rewards -1,{ end; OnPCKillEvent: getmapxy(@map$, @x, @y, BL_PC); if( @map$ != "pvp_y_1-2" ) end; if ( getmapusers("pvp_y_1-2" ) ) > 20 ) getitem 606,2; else if ( getmapusers("pvp_y_1-2") > 15 ) getitem 606,1; end; } Edited March 5, 2024 by Angeluz 1 Quote Link to comment Share on other sites More sharing options...
Question
MyNoobScriptz
Hi, how to count player in map PvP (pvp_y_1-2)
1. if count = 20 get 10 Yggdrasil Berry
2. if count = 10 get 5 Yggdrasil Berry
I use OnPCDieEvent sometime script can't run to next step. because some player has left by using Alt+F4
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.