28.05.2009, 00:40
pawn Код:
//At the top
new bool:Locked;
//Whenever they teleport
if(Locked)
{
//They can't teleport
}
else
{
//SetPlayerPos...
}
//The command
if(!strcmp(cmdtext,"/lock",true))
{
if(Locked)
{
Locked = false;
//Unlocked
}
else
{
Locked = true;
//Locked
}
}