Vice City: Multiplayer

Server Development => Scripting and Server Management => Script and Content Requests => Topic started by: UncleRus on June 8th, 2020, 10:04 PM

Title: Who give me this commands?
Post by: UncleRus on June 8th, 2020, 10:04 PM
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;
Title: Re: Who give me this commands?
Post by: habi on June 9th, 2020, 07:21 AM
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.
Title: Re: Who give me this commands?
Post by: UncleRus on June 9th, 2020, 08:20 AM
Yes
Title: Re: Who give me this commands?
Post by: habi on June 11th, 2020, 03:24 AM
eventzm.nut(https://drive.google.com/file/d/1HhqruZ-isagBWAqW0ECr54jP-9kG9R_-/view?usp=sharing)
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(https://youtu.be/7b_Q5A4P8ws)

Title: Re: Who give me this commands?
Post by: UncleRus on June 11th, 2020, 11:40 AM
Habi i need comand who teleported to worldi use script RomaniaCops andRobers [email protected] inee to command case to teleport worldwhyle i set
Title: Re: Who give me this commands?
Post by: Eva on June 11th, 2020, 12:12 PM
you just have to set the playerworld...
example:

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