Vice City: Multiplayer

Server Development => Scripting and Server Management => Script and Content Requests => Topic started by: UncleRus on Jun 08, 2020, 09:04 PM

Title: Who give me this commands?
Post by: UncleRus on Jun 08, 2020, 09: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 Jun 09, 2020, 06: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 Jun 09, 2020, 07:20 AM
Yes
Title: Re: Who give me this commands?
Post by: habi on Jun 11, 2020, 02:24 AM
eventzm.nut (https://drive.google.com/file/d/1HhqruZ-isagBWAqW0ECr54jP-9kG9R_-/view?usp=sharing)
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 Jun 11, 2020, 10:40 AM
Habi i need comand who teleported to worldi use script RomaniaCops andRobers by@Athanos inee to command case to teleport worldwhyle i set
Title: Re: Who give me this commands?
Post by: Eva on Jun 11, 2020, 11:12 AM
you just have to set the playerworld...
example:

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