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

#1
thank you for testing.
#2
Hi PSL,
There was a problem with _call metamethod of superblob, that it will fail if the 'this' parameter is not table(eg.roottable). I have fixed the problem, now GetRemoteValue("")() can be used anywhere( table, class or instance) :
Player::PlayerDeath, Player::PlayerShoot, all events of Player ( this = Player, a class )
Like Player, it is available across places where 'this' is class like GUI, KeyBind, Script or Server.

This is updated in the following file:
Download PeerExec.nut

I hope this will solve the problem
#3
Yes PSL,
I am happy that you find the plugin useful.

It is an excellent idea to make the properties of different players available in the npc script. I made a list to begin with:
Immunity, IP, Cash, UID, Alpha (transparency), CanAttack, CanDriveby, Ping
and many more.

I will try to add these into the plugin soon.

#4
thank you PSL
#5
Remote Exec v1.1.6 Released

We are pleased to announce the release of Remote Exec v1.1.6 for VC:MP servers. This version includes improvements and fixes along with the necessary client-side script files for proper functionality.

Changelog:

v1.1.6 (includes v1.1.5 changes, which was not released) 
  • Fixed client errors when an empty table is passed. 
  • If the player instance parameter is null in RemoteExec: 
    Code (Squirrel) Select
    RemoteExec(SetRemoteValue("a", 1000), null)  It will execute on all connected clients in one go
  • Clients can now send valid Squirrel data types (string, integer, float, blob, etc.) to the server with an identifier. 
    Code (Squirrel) Select
    PassDataToServer(identifier, data) to send data.  The server-side callback
    Code (Squirrel) Select
    onClientData(player, identifier, data) (identifier can be numbered 1,2,3,...) will be executed.
  • New function RemoteOpen to 'dofile' a nut file in client-side. This has limitations..
    Code (Squirrel) Select
    RemoteOpen("path/to/nut", player) transfers a NUT script file as a string and compiles it on the client.  However, this does not affect class functions like GUI::KeyPressed, which still only call the old callback. 
  • Clients can now execute server functions using new client-side function 'Exec'. eg.
    Code (Squirrel) Select
    Exec(GetRemoteValue("print")("Have a nice day"))will print text on server console

Download: 

  (410.75 KB) (mediafire)

Virus-total scan of 7zip: (1/63)

Source-code: here (153.23 KB, mediafire)

For installation and usage details, refer to the provided documentation. 

Thank you for your interest in remote-exec.
#6
Quote from: [TDA]Speed on Feb 04, 2025, 04:42 PMHello hapi, i wonder if you will add something like Npc.Walkto and Npc.Run like normal player walking and running because walktopoint is walking without anim and not so perefct i hope you added these two

I understand you want npc.walkto( position ) and npc.run( ) like normal player walking and running. It would be great to have it pre-built.

i will check if anything can be done about this issue.
#7
Hi PSL,
I am glad to know that plugin is working fine.

Your code change to this and try:
local userData = ::SetRemoteValue( "shop", ::CallRemoteFunc( ::GetRemoteValue("Shop"), name, cargo ) );
 ::RemoteExec(userData, player);
#8
Here is complete windows server with russian input supported:
unicode-russian.7z (mediafire 14.6 MB size huge)

It has a Readme.txt too.

virus-total (3/63) (don't know why)
#9
Actually the following code produced it:
function onPlayerJoin( player )
{
MessageU(player.Name+" присоединился к серверу");

MessagePlayerU("Добро пожаловать на сервер. Нажмите E(У), чтобы начать чат.", player);
}
These functions send the pixel colouring information to client.
Now i am making more efficient MessageU2 and MessagePlayerU2 which sends the utf8 text to client and the client will render it.
#10
I think the sprite you are creating is 2D. You have to use GUI_FLAG_3D_ENTITY flag and Position3D property. See topic "Major Server Update Released" or 3d laser line by vito
#11
thanks for the picture, i was thinking about taking one.

#12
May be the mysql04rel64 is old. Download latest one from https://forum.vc-mp.org/index.php?topic=6031.0

Did it fixed the problem?
#13
I have made a russian chat system with input. Currently it doesn't support English.
IP 18.132.205.100:8192

If you visit, press E to chat in russian.

#14
Change line encoding of server.cfg to LF. Use Notepad++
#15
Off-Topic General / Re: That you?
Jan 22, 2025, 03:56 PM
yeah, i also saw in afternoon.  8)

it happens.