Question about DM area protection
#2

At the top of script
Код:
new bool: typedkill;
under all your DM teleport commands
Код:
if(typedkill==false) return SendClientMessage(playerid,0xffffffaa,"Please type /kill to leave this area");

if(typedkills==true)
{
 typedkill=false;
 //your DM script here
}
Your kill command:
Код:
if(!strcmp(cmdtext,"/kill",5,true)==0)
{
  SetPlayerHealth(playerid,0.0);
  typedkill=true;
  return 1;
}
That should do the trick although it can be done better.
Reply


Messages In This Thread
Question about DM area protection - by MastahServers - 31.05.2010, 16:11
Re: Question about DM area protection - by DJDhan - 31.05.2010, 16:33
Re: Question about DM area protection - by NewTorran - 31.05.2010, 16:35
Re: Question about DM area protection - by MastahServers - 31.05.2010, 17:24
Re: Question about DM area protection - by NewTorran - 31.05.2010, 17:38
Re: Question about DM area protection - by MastahServers - 31.05.2010, 20:10

Forum Jump:


Users browsing this thread: 1 Guest(s)