Jump to content
  • 0

Check if the player is on a certain map


kronobr

Question


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.02
  • Content Count:  71
  • Reputation:   0
  • Joined:  06/24/19
  • Last Seen:  

brasilis,253,355,5	script	testE	811,{

OnPCDieEvent:
if (countitem(501) < 1){

	set .@deadplayer,getcharid(0);
	message strcharinfo(0),"Game Over";
sleep2 600;
	atcommand "@clearcart "+strcharinfo(0);


end;

} else
delitem 501,1;
end;
close;
}

Hi everyone, everything fine? I need help checking if the player is on the prt_fild08 map right after death, and if he is on that map, the rest of the script doesn't run. Thanks

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   58
  • Joined:  07/11/14
  • Last Seen:  

use this:

if(strcharinfo(3) == "prt_fild08") 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...