darking123 Posted May 27, 2020 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 931 Reputation: 13 Joined: 12/20/11 Last Seen: November 21, 2020 Share Posted May 27, 2020 Upon checking when a user warps or use flywing on the same map. the addtimer resets. Is there a way to check if the user already has addtimer attached already to prevent addtimer from triggering again? Thank you! OnPCLoadMapEvent: deltimer strnpcinfo(0)+"::OnCheat"; deltimer strnpcinfo(0)+"::OnTrig"; for (.@a = 0; .@a < getarraysize(.arrayt_maps1$); set .@a,.@a+1) { if ( strcharinfo(3) == .arrayt_maps1$[.@a]) { addtimer 900000, strnpcinfo(3)+"::OnTrig"; end; } } Quote Link to comment Share on other sites More sharing options...
0 Start_ Posted May 28, 2020 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 950 Reputation: 180 Joined: 04/05/13 Last Seen: 14 hours ago Share Posted May 28, 2020 Remember each time fly wings used? last_map_tele$ = strcharinfo(3); if(last_map_tele$ == strcharinfo(3)) end; Quote Link to comment Share on other sites More sharing options...
Question
darking123
Upon checking when a user warps or use flywing on the same map. the addtimer resets.
Is there a way to check if the user already has addtimer attached already to prevent addtimer from triggering again? Thank you!
OnPCLoadMapEvent: deltimer strnpcinfo(0)+"::OnCheat"; deltimer strnpcinfo(0)+"::OnTrig"; for (.@a = 0; .@a < getarraysize(.arrayt_maps1$); set .@a,.@a+1) { if ( strcharinfo(3) == .arrayt_maps1$[.@a]) { addtimer 900000, strnpcinfo(3)+"::OnTrig"; end; } }
Link to comment
Share on other sites
1 answer 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.