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 - Mohamed Boubekri

#31
Script Showroom / [Project] Full Start GUI v2
Aug 15, 2023, 05:03 PM
I noticed that the first version of this project was deleted Full Start GUI v1
and I didn't have a backup, so at the request of some friends,
I tried to make a second version of the project, the new version is more attractive and professional.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

The point of this project 'Full Start GUI' is give the scripters a good start, and help them to understand
more about client-side.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Like always i tried my best to not leave any errors in the console or in the script, please if there anything
inform me.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I have made a lot of effort not to leave any possibilities that may lead to errors in the console or in the database,
for example: If the player registered but he dosen't create a character (left the server), when he logged in (back), the server will put
him again in character area, in this case, to skip errors in Database.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

To understand more about the much of possibilities i treated, please test the script, and figure out by yourself.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Now let's see some pictures of the project:- (if the images dosen't show up then click here)





-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Now let's install the project:-

Server-side
Client-side
Sprites

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Plugins that you need: squirrel, sqlite.
Remember me checkbox is working great, you can test all functions and use it, feel free.
All PNGs taken from here.
Credits: to everyone participated to make this game something great.
#32
Quote from: 2b2ttianxiu on Feb 01, 2023, 08:00 AMfunction errorHandling(err) {
 local stackInfos = getstackinfos(2);
 if (stackInfos) {
  local locals = "";
  foreach (index, value in stackInfos.locals) {
                locals = locals + "[" + index + ": " + type(value) + "] " + value + "\n";
        }
 local callStacks = "";
 local level = 2;
 do {
  callStacks += "*FUNCTION [" + stackInfos.func + "()] " + stackInfos.src + " line [" + stackInfos.line + "]\n";
  level++;
 } while ((stackInfos = getstackinfos(level)));
 local errorMsg = "AN ERROR HAS OCCURRED [" + err + "]\n";
 errorMsg += "\nCALLSTACK\n";
 errorMsg += callStacks;
 errorMsg += "\nLOCALS\n";
 errorMsg += locals;
        foreach (i, msg in split(errorMsg, "\n")) print(msg)
        }
}
seterrorhandler(errorHandling);[/quote]

Hey @2b2ttianxiu, how i can use that function ? i don't understand where do i will place it, or how i will mention it.
#33
@habi, when i run my main.nut, the application told me that ( the index GUI dosen't exist )
Exactly that line:- ( sX <- GUI.GetScreenSize().X; ), but i'm sure the problem isn't here.
Actually i want something to catch all the errors on the client side like the original console on server side.
#34
Okey, thank you :)
#35
Quote from: habi on Nov 24, 2022, 12:58 PMdownload this program    sq.exe
Hey @habi, i have download it, and i have place it in store/script folder but when i run it, it says that i have some missing files like squirrel.dll, sqstdlib.dll, etc...
#36
@habi, actually i don't care anymore because i have force spawn the player when he joined, and the message then disappears. Now i want something else, i have hide somethings like CASH FLAG & RADAR FLAG etc.. but i don't know how i can hide the chat list, any idea ?
#37
Quote from: habi on Aug 11, 2023, 03:39 PMI will help but do not have computer atm. Let me reach home


PS: Did tou tried SetCinematicBorder(true) ?
Hey, thank you for your reply, no i didn't try that & i don't think its represent the problem.
Xmair told me that i need to make my own class system to skip THE MESSAGE.
I have seen DizzasTeR Class system but i hadn't understand somethings like that:-
Quote from: Mohamed Boubekri on Jul 15, 2023, 07:35 PMHey everyone, i have seen the post of @DizzasTeR: https://forum.vc-mp.org/?topic=7600.0
but he told us something that i dosen't understand it
"You can place this code inside a spawnselector.nut file and just load it from sqmod.ini as Compile"
I hadn't understand how i can load .nut file from sqmod.ini as compile.
I hadn't understand how i can load .nut file from sqmod.ini as compile.
#38
No one can help ? :/
#39
Script Showroom / Re: Simple Walking System
Aug 09, 2023, 11:29 PM
Thank you friends, but I think that NewTimer Func cause lag in the server especially if the server fraught of players, so we all need to make effort to make the player capable to walk with a simple repeatedly function.
#40
Quote from: Nihongo^ on Jul 18, 2023, 12:36 PM
Quote from: habi on Jul 18, 2023, 11:26 AMDid they bypass UID?
Yeh, installing the new windows also, most of hackers use UID changer

Please guide me about VPN detection system

Thank you
Also vpn detection is not enough, simply the user can change his wifi or something like that, i think the best solution is make a system to remember player bios serial-number, or motherboard ID like that, some admins use keyboard & mouse ids, and unfortunately users can change everything, the operations just take some times by using a spoofer, or change the ids manually.
#41
Hey everyone, i have seen the post of @DizzasTeR: https://forum.vc-mp.org/?topic=7600.0
but he told us something that i dosen't understand it
"You can place this code inside a spawnselector.nut file and just load it from sqmod.ini as Compile"
I hadn't understand how i can load .nut file from sqmod.ini as compile.
#42
Try to change those lines and test it:-
else if ( weaponId == 30 && weaponId == 11)
{
return ErrorMessage("[#FF0000][Server] - [#FFFFFF]You have to buy [ " +GetWeaponName(weaponId)+ " ] from the ammunation", player);
}
else if ( weaponId != 30 && weaponId !=33 && weaponId != 11 )
#43
Hey everyone, i have made this simple script for roleplay servers especially, have fun!

How to use: if you want to walk keep pressing alt, and stop pressing it if you want to stop.
Preview: https://www.youtube.com/shorts/TpJf7rXvkXo
Server-side:
enum StreamType
{
    a1 = 0x01
    a2 = 0x02
}

function onClientScriptData( player )
{
    local stream = Stream.ReadByte();
    switch ( stream )
    {
        case StreamType.a1:
        {
        if (player.Vehicle) return;
        player.SetAnim(0,0);       
        }
        break;   
        case StreamType.a2:
        {
        if (player.Vehicle) return;
        player.SetAnim(0,2);       
        }
        break;               
    }
}
Client-side:
enum StreamType
{
    a1 = 0x01
    a2 = 0x02
}
alt <- KeyBind( 0x12 );
local walking=false;

function Script::ScriptProcess()
{
if (walking == true) {
SendDataToServer(StreamType.a1);
}
}
function KeyBind::OnDown(key)
{
if (key == alt )
{
walking = true;
}
}
function KeyBind::OnUp(key)
{
if (key == alt )
{
walking = false;
SendDataToServer(StreamType.a2);
}
}
function SendDataToServer( ... )
{
    if( vargv[0] )
    {
        local   byte = vargv[0],
                len = vargv.len();
               
        if( 1 > len ) Console.Print( "ToClent <" + byte + "> No params specified." );
        else
        {
            local pftStream = Stream();
            pftStream.WriteByte( byte );

            for( local i = 1; i < len; i++ )
            {
                switch( typeof( vargv[i] ) )
                {
                    case "integer": pftStream.WriteInt( vargv[i] ); break;
                    case "string": pftStream.WriteString( vargv[i] ); break;
                    case "float": pftStream.WriteFloat( vargv[i] ); break;
                }
            }
           
            Server.SendData( pftStream );
        }
    }
    else Console.Print( "ToClient: Not even the byte was specified..." );
}
The system now is clean without any lag.
#44
Great video brother @Gito Baloch
Just i want to ask you about something
I have the original game with radio i mean full version, how i can get the mod of blood like you ?
#45
You can use my project its having registration system CLICK
But you still need to make your admin system.