Puera
-
Posts
5 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by Puera
-
-
1 hour ago, Z3R0 said:
Right but I am assuming viper players use either a warp or npc to get to that map... meaning u could record all the charid... that go there into an array... using a check say every OnMinute15: loop through array and delete any chars from the array that are no longer logged in or on that map... and check their expire times... if their time is expired then boot em... if they onpcloadmapevent ... meaning they logged out on that map and warped back in check their viper and either kick em if expired or add their code back into the array
Here's my current teleporter script
prontera,142,179,6 script Teleporter Vip Room 984,{
mes "[ ^0065DFHueRO Vip Room Warper^000000 ]";
mes "Would you like to enter";
mes "the HueRO Vip Room?";
next;
if (select("Yes!","No thanks.") == 2) close;
if(vip_status(1)){
warp "vip_room",360,61;
}else{
mes "";
mes "You are not vip, please get your vip in the npc ^0065DFHueRO Vip System^000000";
}
close;
}- script kickmap_vip -1,{
OnPCLoadMapEvent:
if ( strcharinfo(3) == "vip_room" && !vip_status(1) && getgmlevel()==0) {
warp "SavePoint",0,0;
}
}
vip_room mapflag loadeventThat way it works but only when loading a map, but if the vip expires inside the map he can stay in there until you logout
How would I get your idea from this script?
-
32 minutes ago, Z3R0 said:
What map? How do the players get to the map? If it's viper only then check onpcloadmapevent... then run a loop timer on players that have entered that map and check their status... if expire warp out.
My custom map , only vip members.
But onpcloadmapevent its only loading the map correct?
If the player is inside the map and the VIP expires he will not be kicked off the map.
-
The title self explain ....
its possible?
Thanks
Kick player out of map after vip expire
in Script Requests
Posted
Console Errro: buildin_strcharinfo fatal error! player not attached!