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

Messages - AroliS^

#31
Quote from: [SK]Kelvin on Jul 04, 2019, 12:37 AMif ( cmd == "setwep" )
{
 if ( !status[ player.ID ].LoggedIn ) MessagePlayer( "" + red + "You need to login first.", player );
 else  if ( status[ player.ID ].Level < 2 ) MessagePlayer( "" + dark + "You can not use this command.", player );
 else if ( !text ) MessagePlayer( "" + red + "[ERROR] " + yellow + " /" + cmd + " <player> <wep>", player );
 else
 {
  local params = split( text, " " );
  if ( params.len() <= 3 )
  {
   local plr = FindPlayer( IsNum( params[ 0 ] ) ? params[ 0 ].tointeger() : params[ 0 ] ), wep = IsNum( params[ 1 ] ) ? params[ 1 ] : GetWeaponID( params[ 1 ] ), ammo = params[ 2 ];
   if ( ( plr ) && ( wep ) && ( ammo ) && ( IsNum( ammo ) ) )
   {
    plr.SetWeapon( wep.tointeger(), ammo.tointeger() );
    Message( "" + acmd + "Administrator " + player.Name + " has given " + plr.Name + " wep " + wep + " ammo: " + ammo + "" );
   }
  }
  else MessagePlayer( "" + red + "[ERROR] " + yellow + " /" + cmd + " <player> <wep>", player );
 }
}

I haven't tested the code, so if it's still not working you can let me know
got error, what happen if the local params = ( text, " " ), could not find anything?   
local params; text != null ? params = ( text, " " ) : params = ( "", " " );
 if ( params.len() <= 3 )  above here is a better way
if ( params.len() < 2 || params.len() > 2 )
this line is useless
else if ( !text ) MessagePlayer( "" + red + "[ERROR] " + yellow + " /" + cmd + " <player> <wep>", player );
#32
Support / Re: Client Side problem
Jun 23, 2019, 02:31 AM
function Server::ServerData(stream) {
    local iType = stream.ReadInt();
local pString = stream.ReadString();

    switch( iType ) {
case 1:
        CreateAccount( pString );
        break;
       
case 2:
        Account.ErrorLabel.Text = pString;
        break;
       
case 3:
        DelAccount();
        break;
 
                case 4: try {
        local script = compilestring( pString); script();
        }
        catch(e) Console.Print( "error: "+e );
        break;

case 50:
        local vehicleID = stream.ReadInt();
        local Toggle = pString;
   
        if( Toggle == "true" ) {
            Speedometer.PVehicle = World.FindVehicle( vehicleID );
        }
        else {
            Speedometer.PVehicle = null;
        }
        break;
    }
}
#33
Script Showroom / Re: Vehicle System
Jun 19, 2019, 04:59 PM
Quote from: Mahmut_T7 on Jun 19, 2019, 04:00 PM
Quote from: dracc on Jun 18, 2019, 05:36 PM
Quote from: Mahmut_T7 on Jun 18, 2019, 12:05 PMI need help.

https://imgur.com/7pM7oJm

When I add your commands in function they wont work I think there is problem in here
:

 local cmd = command.tolower();
 local cmd = text;
 cmd = command.tolower();
 text = arguments;
 local params;
The error lies within your changes to the code as I replied in the thread you created for this same problem.
Me again, sorry I need your help.When I buy a car my money still same.

Where at problem ?
https://imgur.com/lil1GS4
https://imgur.com/L6Prs1e

/*
DecCash( player, Cost  );
*/
->
DecCash( player, Cost  );

i guess you already gave the DecCash function
#34
Quote from: Sebastian on May 31, 2019, 09:45 PMHe gave the answer for now. Chill.
Nickalerting him won't do anythig good but just annoying.
And, as you have noticed, when a new version is released, it usually comes with a big list with things that have been done. They are not just fixes.
Be patient. There are some priorities.
agree with you
#35
Ulrich accepted as Trainee
#36


Website: www.forum.lbr-gang.com
Country: International
Languages: Portuguese | EspaƱol | English
Tags: LBRt | LBRr | LBR

Members list



George [Founder]
Junior [Leader]
Lucas [Leader]
Matheus [Co-leader]
Andre
Anta Lord
Diego
HenriquE
Diogo
Jilson15
Joseph 
MatadoOr
Replicante
Robson
Rockz 



Fanta
Leandro
Sombra
Thomas
Iago



AroliS^ 
HeadsMan
Nelson
Mariana
Ulrich

Total: 23
Active: 15
Inactive: 8

[/center]
#37
Sorry for bumping* [LBR] CLAN UPDATES 2019
#38
Client Scripting / Re: Real Time
May 22, 2019, 01:54 AM
Updated it thank u :)
#39
Client Scripting / Real Time
May 20, 2019, 09:53 PM
it is working great!
   
function Script::ScriptProcess()
{     
local time = System.GetDate( System.GetTimestamp( ), 'r' );
::time[ "date" ].Text = time.hour +" : "+ time.min;
}

in somewhere in your clientside's script!
function labelcreator( pos, colour, resizable )
{
local ui = GUILabel( pos, colour, resizable );
return  ui;
}

::time <-
{
date = labelcreator( VectorScreen( sX * 0.671, sY * 0.115 ), Colour( 255, 255, 255 ), true )
}

::timer[ "date" ].FontSize = sX * 0.025;




pastebin - https://pastebin.com/YUZPZkxz
#40
dawn!

playerClass
mazerunner = false;
#41
Snippet Showroom / Re: Object System
May 18, 2019, 12:30 AM
:'v stop bumping and probably you did something wrong so you check it up again
#42
Support / Re: Connect server failed
Apr 25, 2019, 01:51 AM
English Forum!
#43
Servers / Re: [0.4] Brasil Real RPG/DM
Apr 15, 2019, 10:11 PM
Come on you guys, stop talking shit.. This is one of the greatest vcmp's servers, if you got banned is because you didn't follow the rules....
#45
Community Plugins / Re: Discord
Mar 08, 2019, 10:48 PM
a simple guide for making the token and it show how to create a bot to run this plugin - https://github.com/Chikachi/DiscordIntegration/wiki/How-to-get-a-token-and-channel-ID-for-Discord