Jump to content
  • 0

check if addtimer is triggered


darking123

Question


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   167
  • Joined:  04/05/13
  • Last Seen:  

Remember each time fly wings used?

last_map_tele$ = strcharinfo(3);

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

 

Link to comment
Share on other sites

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.

×
×
  • Create New...