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 - vitogta

#1
no solution.
#2
Quote from: KuRuMi^ on Aug 19, 2018, 06:20 PMWell, my only option I can do is make a workaround with Player::PlayerShoot function.
Good luck.
Getting current player's weapon.
Without data from server with a lag.
Getting ammo in magazine.
Without data from server with a lag.
Getting shoot event for shotguns.
Without data from server with a lag.
#3
It's better to wait when all those methods of player's instance will became clientside than sending tons of data between server and client just for gui.

don't forget about lag of client->server->client will be bad with fast switch (one of basic vc-mp game mechanics).
#4
However clientside shoot event won't work with shotguns.
#5
Quote from: umar4911 on Aug 18, 2018, 12:03 PMAre we here to discuss LW or whole VCMP development?
This topic is a joke if you did not noted.
#6
Support / Re: Skins Ifp.
Aug 14, 2018, 11:20 PM
no.
#7
Off-Topic General / Re: unban appeal
Aug 10, 2018, 02:19 PM
IQ test failed.
denied.
#8
Off-Topic General / Re: unban appeal
Aug 09, 2018, 08:40 PM
Quote from: Ninja on Aug 09, 2018, 08:35 PM
Quote from: kingfahadking on Aug 09, 2018, 08:26 PMnickname:-kingfahadking
reason:-ban evade
ADMIN WHO BANNED ME:-shadow jack
notes:- hi bro my windows was corrupted due to a viru and i installed windows 7 to 10 my friend said me when we reinstall windows we r unbanned from all banned server after i reinstalled windows i was unbanned from little whiteys and vks server but rajput admin of lw said how u playing i said i reinstalled windows coz it ws corrupted he said dont play in lw till ur unban date i said ok .bro please unban me i didnt know that we unbans after we reinstall windows.please unban me i also can use vpn or reinstall windows but im not rule breaker bro itwill not happen again please unban me
This is not LW server, you should make unban applications is LW forum not in VCMP forum!
besides shadow jack is not LW admin
#9
General Discussion / Re: Javascript plugin
Aug 09, 2018, 06:00 PM
If plugin is done I suggest to write a blank script with few examples inside, then we all could to test it and decide to move on it or no.
The example blank script should include main kill-features of plugin.
#10
for sure - no, only tons of raytrace could find grenade but its bad method.
#11
player.Vehicle = ::CreateVehicle(217, 0, player.Pos.x, player.Pos.y, player.Pos.z+1, player.Angle, 1, 1);
#12
Quote from: KuRuMi^ on Aug 07, 2018, 03:58 PM
Quote from: ! on Aug 07, 2018, 08:51 AM
Quote from: KuRuMi^ on Aug 07, 2018, 05:03 AMBump.
CPlayers <- [ "Bob", "Jerry", "Tom", "TotalNoob" ];
CPlayers2 <- [ "Mary", "Bryan", "Billy", "Michael" ];

function Script::ScriptLoad() {
Console.Print( returnString( CPlayers ) );
Label <- GUILabel( VectorScreen( 0, 0 ), Colour( 255, 255, 255 ), returnString( CPlayers ) );
}

function returnString( arr ) {
local str = null;
foreach( iStr in arr ) {
( !str ? ( str = iStr ) : ( str += ", "+iStr ) );
}

return str;
}

Is it not possible to indent the text due to the GUILabel's associativity? I'd like to have a vertical list of players.
players <- {};
players.rawset("noob", 123); // writes 123
players.rawget("noob"); // returns 123
https://developer.electricimp.com/squirrel/table
table.clear() — Removes all of the items from a table
table.getdelegate() — Returns a table's delegate
table.len() — Returns the number of slots in a table
table.rawdelete() — Deletes a key-value pair from a table without employing delegation
table.rawget() — Retrieves the value of the specified key without employing delegation
table.rawin() — Checks for the presence of the specified key in the table without employing delegation
table.rawset() — Sets the value of the specified key without employing delegation
table.setdelegate() — Specifies a table's delegate
#13
General Discussion / Re: Javascript plugin
Aug 07, 2018, 02:20 PM
Can you write a simple example, I want to get player's position and some other player's data (from instance), then I want to make some heavy calculation with this data in another theread (without blocking main theread) then (when calculations are done) I want to call a function with the result of those calculations as an argument in main theread (to interact player's instance by this function).

ps also is it possible to interact with another plugins like database or hashing in another (not-main) theread?
#14
General Discussion / Re: Javascript plugin
Aug 06, 2018, 07:26 PM
Quote from: Thijn on Aug 06, 2018, 07:23 PM
Quote from: vitogta on Aug 06, 2018, 10:42 AMSo if this plugin will work with 004 I will use that.
Obviously not
Then not intresting.