Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Eva

#1
General Discussion / question about ip
Jun 04, 2020, 07:32 PM
SInce release 04rel006 when joining my server my ip is local, but before it wasnt exept if connect to the local ip adress instead of the outgoing ip adress. Is this because of 04rel006?
#2
Videos & Screenshots / game preview video :P
May 31, 2020, 09:20 AM
Came across this video :D
https://www.youtube.com/watch?v=RByHWUGjrYI
Enjoy!
#3
Is it possible to attatch a sphere onto a moving vehicle?
#4
Everytime i start vcmp client the first time i want to connect to a server the client doesnt respond.
Then when i restart the client second time it does.
Reproducable: always.
Does anyone know why? and how to solve it?
My os is Win7 Ultimate 64bit
#6
Hi i have this problem with date() returning the wrong month

else if ( cmd == "time" )
{
local now = date();
Message( COLOR_MOV+"The time is currently " + now.day + "/" + now.month + "/" + now.year + " " + now.hour + ":" + now.min + ":" + now.sec + "" );
}

What is wrong here? it returns the previous month instead
#7
General Discussion / parachutes
Feb 01, 2017, 12:10 PM
Hi maybe its a silly question, but would it be possible to port the parachute from San Andreas into vcmp? I guess its not but if so how can it be done?
#9
Script and Content Requests / random cmd
Jan 15, 2017, 05:43 PM
Hi guys, i would like to make a random cmd, like if you enter a certain Sphere the player has to guess what the cmd is, and when once he guessed the right cmd an event happens and it sets a new cmd from random list. How can i do this? any suggestions?
#10
Off-Topic General / Happy New Year
Dec 31, 2016, 05:19 PM
Hi guys, i want to wish you all a very good, healthy and happy 2017
May all your wishes come true.
lots of love, Eva.
#11
I have this error when trying to buy a car, but before it worked.

#12
General Discussion / bug or hack?
Jul 19, 2016, 02:16 PM
Hello i have a question about a bug/hack?
Someone in my server keeps getting kicked for armourincrease 0 to 200 and also hp 0 to 100
He sais hes not hacking but its lag, witch im not so sure of.
when using /heal nobody gets kicked and as for armour nobody can as its not scripted.
here a pick of console. Is it a bug or what??? i dont think so

#13
Scripting and Server Management / Ghost mode
May 27, 2016, 01:39 PM
Hello i have a question, i made this Ghostmode for admin to be invisible, how can i also remove (playername) tag?
this is my code if ( cmd == "ghost" )
{
          if ( !player.IsSpawned ) PrivMessage( "You haven't spawned yet..", player );
          if ( stats[ player.ID ].Level < 4 ) PrivMessage( "You are not a Admin.", player );
            else
               {
                  ClientMessageToAll( "" + player + " went into Invisible mode.", 255, 0, 0 );
                  player.SetAlpha( 0, 0 ); // Makes the player model transparent, The alpha value from 0 to 255,The time in milliseconds the
fading progress should take
                  player.RemoveMarker();
       }
}
#14
I have this error in console when a player leaves the server, and i cant figure out why.
Here is the console error:

here is line 239:


And here is my OnplayerPart:
function onPlayerPart( player, reason,  )
  {
    if( stats[ player.ID ].Level != 0 )
   {
     if ( stats[ player.ID ].Team )
     {
   local plr = GetPlayer( stats[ player.ID ].Teamp );
   EMessage( ">>" + player.Name + " left the Team." );
   stats[ plr.ID ].Teamp = null;
   stats[ player.ID ] = null;
}
stats[ player.ID ].Update( player, sqliteDB );
                   print( ">> " + player.Name + "'s data saved." );
                   // Remember to save regularly
                   SunshineAutos.SaveDatabase("scripts/sunshine.db");
                   print( ">> " + player.Name + "'s carsdata saved." );
                   

    if ( stats[ player.ID ].LMS )
    {
        EMessage( ">> " + player.Name + " is out of the LMS round." );
        LMSCount--;
        if ( LMSCount == 1 ) CheckEnd2();
    }
  }
  stats[ player.ID ] = null;
  playerson.remove( player.ID );
  EchoMessage( "** [" + player.ID + "] " + player.Name + " has left the server." );
}

Also i cant get stats to save to the db same for rulks sunshine, exept acc does get saved. Im using ADM script as the base.


#15
Scripting and Server Management / stats
May 06, 2016, 08:24 AM
Hello i was trying this stats snippet but it doesnt work right.

This i have in functions:
function GetStats( p )
{
       try{
   local stats = null;
   if ( stats[ p.ID ].IsReg == true )
   {
   local id = p.ID;
   local kills = stats[ id ].Kills, deaths = status[ id ].Deaths;
   if ( ( kills > 0 ) && ( deaths > 0 ) )
   {
       local ratio = format( "%.2f", kills.tofloat() / deaths.tofloat() );
   stats = "Kills: " + kills + ", Deaths: " + deaths + ", Ratio: " + ratio + ".";
   }
   else
   {
       stats = "Kills: " + stats[id].Kills + ", Deaths: " + stats[id].Deaths + ".";
   }
   }
   else
   {
       stats = "This Nick-Name is not registered!";
   }
   return stats;
   }
   catch(e) print( "GetStats Error: " + e );
}

This on playercommand
else if ( cmd == "stats" )
  {
     
try
{
if ( stats[ player.ID ].Logged == false ) ePrivMessage( "[Error] - You're Not Registered.", player );
else
{
    if ( !text ) EMessage( ">> " + player.Name + "'s Stats: " + GetStats( player ) );
else if ( text )
{
    local plr = GetPlayer( text );
if ( !plr ) ePrivMessage( "Invalid Player Nick/ID!", player );
else PrivMessage( plr.Name + "'s Stats: " + GetStats( plr ), player );
}

}
}
catch(e) print( "Stats Cmd Error: " + e );
  }



This are the error in console and in game:

#16
Scripting and Server Management / car jacking
Apr 29, 2016, 08:58 PM
Maybe its a stupid question but why isnt it possible to jack somebodies car in vcmp like in mtavc, is it scriptable instead??
#17
Scripting and Server Management / freeze
Apr 22, 2016, 04:21 PM
Hello i have a error in this freeze script, does anybody know what is wrong here?

else if ( cmd == "freeze" )
      {
                      if ( stats[ player.ID ].Level < 9 ) MessagePlayer( "[#FF3636]Error - [#FFFF00]You don't have access to it.", player);
      else if ( !text ) MessagePlayer( "[#FF3636]Error - Syntax: [#FFFF00]/freeze <player name>", player);
      else
      {   
         if ( !text ) PrivMessage( "Error - Invalid Format. /freeze <player>", player );
         else if ( !plr ) PrivMessage( "Error - Invalid Nick/ID.", player );
         else if ( plr.ID == player.ID ) PrivMessage( "Error - You can't /freeze yourself.", player );
         else
         {
            if ( !plr.IsSpawned ) PrivMessage( "Error - This player hasn't spawned.", player );
            else if ( plr.IsFrozen ) PrivMessage( "Error - This player has already been frozen.", player );
            else
            {
               Message( "* Admin " + player + " has frozen " + plr + "..." );
               plr.IsFrozen = true;
            }
         }      
      }      
   }
      else if ( cmd == "unfreeze" )
      {
      if ( stats[ player.ID ].Level < 9 ) MessagePlayer( "[#FF3636]Error - [#FFFF00]You don't have access to it.", player);
      else if ( !text ) MessagePlayer( "[#FF3636]Error - Syntax: [#FFFF00]/unfreeze <player name>", player);
      else
                                         {   
         if ( !text ) PrivMessage( "Error - Invalid Format. /unfreeze <player>", player );
         else if ( !plr ) PrivMessage( "Error - Invalid Nick/ID.", player );
         else if ( plr.ID == player.ID ) PrivMessage( "Error - You can't /unfreeze yourself.", player );
         else
         {
            if ( !plr.IsSpawned ) PrivMessage( "Error - This player hasn't spawned.", player );
            else if ( !plr.IsFrozen ) PrivMessage( "Error - This player hasn't been frozen.", player );
            else
            {
               Message( "* Admin " + player + " has unfrozen " + plr + "..." );
               plr.IsFrozen = false;
            }
         }         
      }      
   }


here the error screen
#18
Hello, how can i enable the scoreboard in f5?

i have this code in my script:
function onServerStart()
{
     SetDeathmatchScoreBoard( true );
     //To enable Deathmatch score board.
}


and this is the error i get:

#19
Hello i have a problem with onPlayercommand were i try to add a part im doing something wrong and i cant find the cause.
Im not a scripter but im trying to understand it :)
function onPlayerCommand( player, command, arguments )
{
   local cmd, text;
      cmd = command;
      text = arguments;

      
   if( cmd == "register" ){
      if( !text ){
         MessagePlayer( "Syntax Error!", player );
         MessagePlayer( "Correct syntax: /register <password>", player );
      }
      else if( stats[ player.ID ].Logged == true ){
         MessagePlayer( "You are already logged in.", player );
      }
      else{
         stats[ player.ID ].Register( player, text, sqliteDB );
      }   
   }
   else if( cmd == "login" ){
      if( !text ){
         MessagePlayer( "Syntax Error!", player );
         MessagePlayer( "Correct syntax: /login <password>", player );
      }
      else if( stats[ player.ID ].Logged == true ){
         MessagePlayer( "You are already logged in.", player );
      }
      else{
         stats[ player.ID ].Login( player, text, sqliteDB );
      }
   }   
   else if( stats[ player.ID ].Level > 0 ) RegUserCmds( player, cmd, text );
   else MessagePlayer( "You have to be registered.", player );
}

        if ( cmd == "setskin" )
    {
        if ( text && IsNum( text ) )
        {               
         player.Skin = text.tointeger();
            MessagePlayer( "[#00ff00] Set the skin: " + GetSkinName( player.Skin ), player );
        }
        else MessagePlayer( "[#ffffff] Type /setskin SkinID" , player );
    }
   else if ( cmd == "info" )
   {
      MessagePlayer( "[#ffffff]Server Name:[ " + GetServerName() + " ].", player );
      MessagePlayer( "[#ffffff]Administrator: [TTH]BiZkiT", player );
      MessagePlayer( "[#ffffff]Players:( " + GetPlayers() + "/" + GetMaxPlayers() + " ).", player );   
      MessagePlayer( "[#ffffff]Cars:( " + GetVehicleCount() + " ) ", player );   
      MessagePlayer( "[#ffffff]Game speed:( " + GetGamespeed() + " )." , player );
   }
   else if ( cmd == "spawn" )
    {   
            if ( text )
          {
          local veh = FindVehicle( text.tointeger() );
          veh.Pos = Vector( ( player.Pos.x + 2 ), player.Pos.y, ( player.Pos.z ) );
           MessagePlayer( "[#00ff00]---> You have spawned car ID : [ " + veh.ID + " ).", player );
          }
          else MessagePlayer( "[#00ff00] Type /spawn <car id >.", player );
           return 1;
    }
   else if ( cmd == "goto" )
    {
          local plr = FindPlayer( text );
          local Name = player.Name;
          if ( !plr ) MessagePlayer( "[#ffffff] Player [" + text + " ] the player has no.", player );
          else player.Pos = plr.Pos;
        MessagePlayer( "[#ffffff] Teleported to [" + plr + "].", player );
        MessagePlayer( "[#ffffff] Player " + player.Name + " teleported to you.", plr );
    }
   else if ( cmd == "fps" )
   {
   if ( text )
   {
   local p = FindPlayer( text );
   Message( "[#00ff00]FPS: [#FFFF33]" + p + " it: [#ffffff]" + p.FPS );
   }
   else MessagePlayer( "[#ffffff] Type /fps < player name >" , player);
   }
   else if ( cmd == "gotocar" )
   {
       if ( text.tointeger() )
       {
       local veh = FindVehicle( text.tointeger() );
      player.Pos = veh.Pos;
      MessagePlayer( "[#00ff00]Teleported to car: " + veh.ID + "." , player );
      }
   }
   else if ( cmd == "wep" )
   {
      if ( text )
      {
        local wepid = GetWeaponID( text );
        player.SetWeapon( wepid, 1000 );
        MessagePlayer( "[#00ff00]Your have spawned a [" + GetWeaponName( wepid ) + "] 1000 ammo." , player );
      }
      else MessagePlayer( "[#00ff00] Enter <id/name> weapon ", player );
   }
   else if ( cmd == "heal" || cmd == "heal" )
   {
      if ( player.Health != 100 )
      {
         player.Health = 100; MessagePlayer( "[#00ff00] You have been healed!. ", player );
      }
      else MessagePlayer( "[#00ff00] You already have 100hp. ", player );
   }
                   else if ( cmd == "cmd" )
                  {
         PrivMessage( player, "[#00ff00]Major Commands: (/) heal, spawn <vehiclename>, goto <Playername>, gotocar <ID> , wep <weaponname>, gotoloc <bank>, gotoloc <mansion>, fps, setskin" );
        
                   }   
   else if ( cmd == "gotoloc" )
   {
      if ( text == "mansion" )
      {
         player.Pos = Vector( -302.86,-599.557,12.8527 );
         MessagePlayer( "[#00ff00] Teleported to The Mansion!", player );
      }
      if ( text == "bank" )
      {
         player.Pos = Vector( -876.882,-340.673,11.1034 );
         MessagePlayer( "[#00ff00] Teleported to El Banco Corrupto!", player );
      }
   }