Who help me fix it problem?

Started by UncleRus, Apr 21, 2020, 06:28 AM

Previous topic - Next topic

UncleRus

I have a problem with the choice of classes, I need a class to vibrate through the skins, for example a robber id id 0 cop skin id 3 and so on here is a script script https://drive.google.com/open?id=1wl8mMtX7ssE5Rwmt0IR4VULkTLP80w2y
I LoperkinDead.My brothers scripters TimyrSem,VladSem

Sebastian


UncleRus

I don't understand where to embed this code; you can explain where to embed it
I LoperkinDead.My brothers scripters TimyrSem,VladSem

Sebastian

Quote from: UncleRus on Apr 21, 2020, 12:01 PMI don't understand where to embed this code; you can explain where to embed it

onScriptLoad()
{
 //here
}

UncleRus

and if I embed this code, then embedding the code will affect it my code
function onScriptLoad(){
   
   dofile( "scripts/functions.nut" );
   dofile( "scripts/commands.nut" );
   dofile( "scripts/admin.nut" );
   dofile( "scripts/object.nut" );
   
   pstats <- array( GetMaxPlayers(), null );
    sqliteDB <- mysql_connect( "localhost", "root", "Jilop1!", "vcmprp" );

   createpickups();
      
   rightclick <- BindKey(true, 0x02, 0, 0);
   ALT_KEY <- BindKey(true, 0x12, 0, 0);
   
I LoperkinDead.My brothers scripters TimyrSem,VladSem

UncleRus

I put the code there but nothing has changed, you can climb in the script and find the line that I need, please :(
I LoperkinDead.My brothers scripters TimyrSem,VladSem

Sebastian

Quote from: UncleRus on Apr 21, 2020, 02:12 PMI put the code there but nothing has changed, you can climb in the script and find the line that I need, please :(

Put here the code you used "but nothing changed", please.

UncleRus

function onScriptLoad(){
AddClass (3, RGB (24, 255, 241), 0, Vector (-378.79, -537.962, 17.2832), 140.020, 21, 999, 1, 1, 25, 255);
}   
I LoperkinDead.My brothers scripters TimyrSem,VladSem

UncleRus

can try to insert the script into the server.conf file?
I LoperkinDead.My brothers scripters TimyrSem,VladSem

UncleRus

I LoperkinDead.My brothers scripters TimyrSem,VladSem

Sebastian

Quote from: UncleRus on Apr 21, 2020, 02:59 PMcan try to insert the script into the server.conf file?

Yeah, you can try that.
But AddClass had to work though

PS: The position you set must be in the camera view btw.

UncleRus

https://prnt.sc/s3efyn
put a script there but nothing has changed
I LoperkinDead.My brothers scripters TimyrSem,VladSem

UncleRus

I set the camera position as in the config script but nothing happened
I LoperkinDead.My brothers scripters TimyrSem,VladSem

UncleRus

Sebastian, can you download the script and try to install it? Please, I really need
I LoperkinDead.My brothers scripters TimyrSem,VladSem

habi

function onScriptLoad(){
   AddClass (....
   dofile( "scripts/functions.nut" );
   dofile( "scripts/commands.nut" );
   dofile( "scripts/admin.nut" );
   dofile( "scripts/object.nut" );
......