This topic was marked solved by its starter, on July 18th, 2020, 09:43 PM
Who give me this commands?

UncleRus

  • Full Member
  • Posts: 150
Who give me this commands?
«  »
Hello everyone, who can give me commands for the admin. Frieze is unfreze weather and I need a command for the admin who has 6 lvl for example, I write / eventzm and I teleport there and players of type / eventzm join and / eventzm leave I need them to teleport to the world which is written Please I really need these commands. Example of the command that I use case "bring":
{
if (GetAdminLevel (player)> = 1)
{
if (text == null)
{
MSGPLR (MSG_ERROR_EN + "Use / bring <player>", p
}
if (FindPlayer (text)! = null)
{
FindPlayer (text) .Pos = player.Pos;
MSG (RED + player + "brought to" + FindPlayer (text) "+ ​​FindPlayer (text));
}
else MSGPLR (MSG_ERROR_EN + "This player does not exist.", player, MS}
break;
I LoperkinDead.My brothers scripters TimyrSem,VladSem

habi

  • Sr. Member
  • Posts: 288
Re: Who give me this commands?
« Reply #1,  »
I think you need player A type /eventzm teleport to event.
Player B type /eventzm teleport to event.

After event, player A type /leave he is teleported back to his home.
Player B type /leave he is teleported back to his place.

UncleRus

  • Full Member
  • Posts: 150
I LoperkinDead.My brothers scripters TimyrSem,VladSem

habi

  • Sr. Member
  • Posts: 288
Re: Who give me this commands?
« Reply #3,  »Last edited
eventzm.nut
Code: [Select]
eventzm<-Vector(-656,756,11.2);
eventstore<-array(GetMaxPlayers(),null);

function onPlayerCommand( player, cmd, text )
{
if( cmd == "eventzm" && text=="join")
{

eventstore[player.ID]=player.Pos;

player.Pos=eventzm;

}else if( cmd == "eventzm" && text=="leave")
{

player.Pos=eventstore[player.ID];

}
}
  video


UncleRus

  • Full Member
  • Posts: 150
I LoperkinDead.My brothers scripters TimyrSem,VladSem

Eva

  • Full Member
  • Posts: 169
Re: Who give me this commands?
« Reply #5,  »
you just have to set the playerworld...
example:

player.World = 3;
player.Pos = Vector( -1430.11,-819.084,14.8716  );