Jump to content
  • 0

Question

Posted

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;
	}
}


 

1 answer to this question

Recommended Posts

  • 0
Posted

Remember each time fly wings used?

last_map_tele$ = strcharinfo(3);

if(last_map_tele$ == strcharinfo(3)) end;

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...