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.

Messages - EnForcer
1
General Discussion / Re: please add this back....
« on January 13th, 09:33 AM »
YES ADD THIS BACK
+1
2
Snippet Showroom / Re: In Game AddClass with /addclass with Database
« on September 19th, 2020, 08:15 PM »
Quote from habi on September 19th, 2020, 05:44 PM
link not working.
Topic Updated Added Codes here.
Quote from habi on September 19th, 2020, 05:44 PM
imagine player going to some place and press some button. A simple menu appears. It has images of each skin......
I can make as well as i already made a topic before here's link:
https://forum.vc-mp.org/?topic=7850.0

if you need more beautiful or any Help so you can dm me on discord.
here's my discord ID: iNForSir#7490
Quote from habi on September 19th, 2020, 05:44 PM
I recently found that if player.Team=255 for two players and if one player shoots another, the health of the second player will be reduced. So team id 255 is 'no team'.
team 255 = Free Team
Free team = Can kill each other
3
Snippet Showroom / Re: In Game AddClass with /addclass with Database
« on September 19th, 2020, 04:30 PM »
Quote from Shy on September 19th, 2020, 12:35 PM
1: What does this basically does( I understand but noobs won't)? We can also add the same sentence in ScriptLoad rather than database. So elaborate more what's the ease of it rather than putting in onScriptLoad( for noobs).
Its easy to use instead of getting axis of player pos/angle pos then copy paste it in scripts.
Quote from Shy on September 19th, 2020, 12:35 PM
2: You have added stats[ player.ID ].Level, so if someone directly copy pastes the script so he/she will get errors about it. ( ex blank vcmp server ) so better remove it.
I will remove it
Quote from Shy on September 19th, 2020, 12:35 PM
3: You haven't provided the requires function which you used ( GetTok ) so if someone directly copy pastes, he'll get the GetTok index error.
Well these Gettoks are common things so i didn't added.
4
Snippet Showroom / In Game AddClass with /addclass with Database
« on September 18th, 2020, 04:46 PM »
In Game addclass via cmd with Database
Credits: EnForcer


Commands: /addclass <Team ID> <R> <G> <B> <Skin ID>


Extra Note: If you encounter any bug, inform me here or on discord my ID : iNForSir#7490

Paste it in onscriptload
Code: [Select]
db <- ConnectSQL( "Classes.db" );
QuerySQL(db, "CREATE TABLE IF NOT EXISTS Creation ( Team NUMERIC, Skin NUMERIC, X NUMERIC, Y NUMERIC, Z NUMERIC, R NUMERIC, G NUMERIC, B NUMERIC, Angle NUMERIC)" );
LoadClass();

Function to Loadclass
Code: [Select]
function LoadClass()
{
local q = QuerySQL( db, "SELECT * FROM Creation" ), i = 0;
while( GetSQLColumnData( q, 0 ) )
{
local
Team= GetSQLColumnData( q, 0 ),
Skin= GetSQLColumnData( q, 1 ),
X= GetSQLColumnData( q, 2 ),
Y= GetSQLColumnData( q, 3 ),
Z= GetSQLColumnData( q, 4 ),
R= GetSQLColumnData( q, 5 ),
G= GetSQLColumnData( q, 6 ),
B= GetSQLColumnData( q, 7 ),
Angle= GetSQLColumnData( q, 8 );
AddClass( Team, RGB( R,G,B ), Skin, Vector( X,Y,Z ), Angle, 21, 999 ,1, 1, 25, 255 );
GetSQLNextRow( q );
i++;
}
print("Class Count ("+i+")");
return 0;
}

Paste it in onplayercommand
Code: [Select]

else if (cmd=="addclass")
{
if ( !player.IsSpawned ) MessagePlayer( "[#ff0000][Error] - [#ffffff]You need be spawned to use this command.", player );
else if( !text ) MessagePlayer( "[#ff0000][Error] - [#ffffff]Use /"+cmd+" <Team ID> <R> <G> <B> <Skin ID>.", player);
else {
local TeamID = GetTok( text, " ", 1 );
local R = GetTok( text, " ", 2 );
local G = GetTok( text, " ", 3 );
local B = GetTok( text, " ", 4 );
local SkinID = GetTok( text, " ", 5 );
if (!IsNum(TeamID)) MessagePlayer( "[#ff0000][Error] - [#ffffff]Use /"+cmd+" <Team ID> <R> <G> <B> <Skin ID>.", player);
else if ( !IsNum(R)) MessagePlayer( "[#ff0000][Error] - [#ffffff]Use /"+cmd+" <Team ID> <R> <G> <B> <Skin ID>.", player);
else if ( !IsNum(G)) MessagePlayer( "[#ff0000][Error] - [#ffffff]Use /"+cmd+" <Team ID> <R> <G> <B> <Skin ID>.", player);
else if ( !IsNum(B)) MessagePlayer( "[#ff0000][Error] - [#ffffff]Use /"+cmd+" <Team ID> <R> <G> <B> <Skin ID>.", player);
else if ( !IsNum(SkinID)) MessagePlayer( "[#ff0000][Error] - [#ffffff]Use /"+cmd+" <Team ID> <R> <G> <B> <Skin ID>.", player);
else if ( ( !TeamID ) || ( !R ) || (!G ) || ( !B ) || ( !SkinID ) ) MessagePlayer( "[#ff0000][Error] - [#ffffff]Use /"+cmd+" <Veh/ID> <Col1/ID> <Col2/ID> <World> <Price>.", player);
else {
QuerySQL( db, "INSERT INTO Creation ( Team, Skin, R, G, B, X, Y, Z, Angle ) VALUES ( '"+TeamID+"', '"+SkinID+"', '"+R+"', '"+G+"', '"+B+"', '"+player.Pos.x+"', '"+player.Pos.y+"', '"+player.Pos.z+"', '"+player.Angle+"' )" );
AddClass( TeamID.tointeger(), RGB( R.tointeger(), G.tointeger(), B.tointeger() ) ,SkinID.tointeger(), player.Pos, player.Angle, 22, 999 ,17, 100, 21, 245 );
Message( "[#FFFFFF]Admin [#FF0000]"+player.Name+" [#FFFFFF]Has added a new Class." );
     }
     }
return 0;
}

else if ( cmd == "removeclass" )
    {
if ( !text ) MessagePlayer( "[#ff0000][Error] - [#ffffff]Use /"+cmd+" <Skin ID>.", player);
else if (!IsNum(text)) MessagePlayer( "[#ff0000][Error] - [#ffffff]Skin ID must be in numbers.", player);
else {   
local q = QuerySQL( db, "SELECT * FROM Creation WHERE Skin='"+text+"'" );
if ( !q ) MessagePlayer( "[#ff0000][Error] - [#ffffff]Skin ID "+text+" not found in class.", player );
else {
QuerySQL( db, "DELETE FROM Creation WHERE Skin='"+text+"'" );
Message( "[#FFFFFF]Admin [#FF0000]"+player.Name+" [#FFFFFF]Has removed Class." );
     }
     }
return 0;
}
5
Server & Plugin Updates / Re: Server Update Released (2018-06-28)
« on September 8th, 2020, 01:06 PM »
Quote from chabuukiani on September 7th, 2020, 07:36 PM
I can't download error
Dont bump old posts
Here's the link of blank server
http://files.thijn.ovh/img/d8a6964674e880a65b9903eb6b958887/Blank%20Server%20-%2013rd%20Feb,%202019.7z
6
Servers / [0.4] Re: Arbiter's Official Server
« on August 26th, 2020, 09:50 AM »
Quote from DarkRaZoR^ on August 25th, 2020, 10:21 PM
I heard rumors that this server leaks account passwords from their echo.
We even dont have echo nor we check anyone's password
btw Who said you?
7
Servers / [0.4] Arbiter's Official Server
« on August 24th, 2020, 06:27 PM »
>>>>>>>>>>>>>>>>>>>Server Information: <<<<<<<<<<<<<<<<<<<
Server Name: [0.4] Arbiter's Official Server
Server IP: 152.89.245.140:8194
Players Slots: 50
Gamemode: Dm / FreeRoam
Scripter & Developer: EnForcer.
Discord: Click here!
>>>>>>>>>>>>>>>>>>>>>Server Features: <<<<<<<<<<<<<<<<<<<<<
- Custom Vehicles
- Clan System
- Manual Eventing System
- Auto Event System
- /Parkour
- /carzone ( Freeroam )
- Team Deathmatch ( Red vs Blue)
- New Time Cycle
- Title System
- Ranking System
- RTV Minigame ( Under Construction )
8
Community Plugins / Re: simple announce
« on August 15th, 2020, 02:26 PM »
GoodWork
9
Clans and Families / [ws] Re: Warrior-gods
« on August 11th, 2020, 07:27 PM »
Hey John is this clan exist? if it is then apply on their forum
If you are creating then send in proper format like:
Code: [Select]
Clan Name Warrior gods
Clan Tag: [ws]
Clan memberlist
Code: [Select]
10
Map Showroom / Re: Akina Hill
« on July 21st, 2020, 10:01 PM »
Quote from Yyg on July 21st, 2020, 01:55 PM
I need to add a question. In 04rel006, after standing at a certain height, the model will not be visible
But the old version of 04rel006 does not have this problem
You need to add +2 y axis
11
Client Scripting / GUI Skin Selection Menu
« on July 6th, 2020, 08:02 PM »
                                                                                    Credits :-
                                                                                                 -> EnForcer

                                                                                    GUI Skin Selection Menu


                                                                                            Server Side
Code: [Select]
function onClientScriptData(player)
{
local string = Stream.ReadString(), int = Stream.ReadInt();
switch( int )
{


case 1:
player.Skin = 7;
break;

case 2:
player.Skin = 1;
break;

case 3:
player.Skin = 2;
break;

case 4:
player.Skin = 0;
break;

case 5:
player.Skin = 30;
break;

case 6:
player.Skin = 29;
break;

case 7:
player.Skin = 115;
break;

case 8:
player.Skin = 28;
break;
}
}
//////////test cmd which i used in video to get menu/////////////

else if(cmd == "test")
{
local data = Stream();
data.StartWrite( );
data.WriteInt(1);
data.SendStream( player );

}


                                                                                           Client Side
Code: [Select]

    skin <-
{
Skins = null
Skin1 = null
Skin2 = null
Skin3 = null
    Skin4 = null
    Skin5 = null
    Skin6 = null
    Skin7 = null
    Skin8 = null       
}

function skinnull()
{
    skin.Skins = null;
skin.Skin1 = null;
skin.Skin2 = null;
skin.Skin3 = null;
    skin.Skin4 = null;
    skin.Skin5 = null;
    skin.Skin6 = null;
    skin.Skin7 = null;
    skin.Skin8 = null;
    GUI.SetMouseEnabled( false );
}

function Server::ServerData(stream)
{
    local strint = stream.ReadInt();
    switch (strint.tointeger())
    {
        case 1: skinsgui(); break;
        case 2: skinnull(); break;
        }

}


function GUI::ElementClick( element, mouseX, mouseY )
{
        if (element == skin.Skin1)
    {
    local Datos = Stream();
    Datos.WriteString("skin1");
Datos.WriteInt(1);
    Server.SendData(Datos);
            skinnull();
}
else if (element == skin.Skin2)
    {
    local Datos = Stream();
    Datos.WriteString("skin2");
Datos.WriteInt(2);
    Server.SendData(Datos);
            skinnull();
    }

else if (element == skin.Skin3)
    {
    local Datos = Stream();
    Datos.WriteString("skin3");
Datos.WriteInt(3);
    Server.SendData(Datos);
            skinnull();
}
else if (element == skin.Skin4)
    {
    local Datos = Stream();
    Datos.WriteString("skin4");
Datos.WriteInt(4);
    Server.SendData(Datos);
    skinnull();
        }
else if (element == skin.Skin5)
    {
    local Datos = Stream();
    Datos.WriteString("skin5");
Datos.WriteInt(5);
    Server.SendData(Datos);
    skinnull();
        }
else if (element == skin.Skin6)
    {
    local Datos = Stream();
    Datos.WriteString("skin6");
Datos.WriteInt(6);
    Server.SendData(Datos);
    skinnull();
        }
else if (element == skin.Skin7)
    {
    local Datos = Stream();
    Datos.WriteString("skin7");
Datos.WriteInt(7);
    Server.SendData(Datos);
            skinnull();
}

        else if (element == skin.Skin8)
    {
    local Datos = Stream();
    Datos.WriteString("skin8");
Datos.WriteInt(8);
    Server.SendData(Datos);
            skinnull();
}
}


function GUI::ElementHoverOver(element)
{
switch( element )
{
case skin.Skin1:
skin.Skin1.Size.X-=5;
skin.Skin1.Size.Y-=5;
break;

case skin.Skin2:
skin.Skin2.Size.X-=5;
skin.Skin2.Size.Y-=5;
break;

case skin.Skin3:
skin.Skin3.Size.X-=5;
skin.Skin3.Size.Y-=5;
break;

case skin.Skin4:
skin.Skin4.Size.X-=5;
skin.Skin4.Size.Y-=5;
break;

case skin.Skin5:
skin.Skin5.Size.X-=5;
skin.Skin5.Size.Y-=5;
break;

case skin.Skin6:
skin.Skin6.Size.X-=5;
skin.Skin6.Size.Y-=5;
break;

case skin.Skin7:
skin.Skin7.Size.X-=5;
skin.Skin7.Size.Y-=5;
break;

case skin.Skin8:
skin.Skin8.Size.X-=5;
skin.Skin8.Size.Y-=5;
break;
}
}

    function GUI::ElementHoverOut(element)
{
switch( element )
{
case skin.Skin1:
skin.Skin1.Size.X+=5;
skin.Skin1.Size.Y+=5;
break;

case skin.Skin2:
skin.Skin2.Size.X+=5;
skin.Skin2.Size.Y+=5;
break;

case skin.Skin3:
skin.Skin3.Size.X+=5;
skin.Skin3.Size.Y+=5;
break;

case skin.Skin4:
skin.Skin4.Size.X+=5;
skin.Skin4.Size.Y+=5;
break;

case skin.Skin5:
skin.Skin5.Size.X+=5;
skin.Skin5.Size.Y+=5;
break;

case skin.Skin6:
skin.Skin6.Size.X+=5;
skin.Skin6.Size.Y+=5;
break;

case skin.Skin7:
skin.Skin7.Size.X+=5;
skin.Skin7.Size.Y+=5;
break;

case skin.Skin8:
skin.Skin8.Size.X+=5;
skin.Skin8.Size.Y+=5;
break;
}
}

function skinsgui()
{
   
skin.Skins = GUIWindow( VectorScreen( sX * 0.0896094, sY * 0.114583 ), VectorScreen( sX * 0.720000, sY * 0.794271 ), Colour( 255, 255, 255 ), "Select Skins" );
skin.Skins.TextColour = Colour( 255, 255, 255 );
skin.Skins.FontSize = 11;

skin.Skin1 = GUISprite( );
skin.Skin1.SetTexture( "skin1.png" );
skin.Skin1.Size = VectorScreen( sX * 0.15111, sY * 0.311111 );
skin.Skin1.Pos = VectorScreen( sX * 0.020, sY * 0.009 );

skin.Skin2 = GUISprite( );
skin.Skin2.SetTexture( "Police.png" );
skin.Skin2.Size = VectorScreen( sX * 0.15111, sY * 0.311111 );
skin.Skin2.Pos = VectorScreen( sX * 0.200, sY * 0.009 );

skin.Skin3 = GUISprite( );
skin.Skin3.SetTexture( "Swat.png" );
skin.Skin3.Size = VectorScreen( sX * 0.15111, sY * 0.311111 );
skin.Skin3.Pos = VectorScreen( sX * 0.380, sY * 0.009 );

skin.Skin4 = GUISprite( );
skin.Skin4.SetTexture( "Tommy.png" );
skin.Skin4.Size = VectorScreen( sX * 0.15111, sY * 0.311111 );
skin.Skin4.Pos = VectorScreen( sX * 0.550, sY * 0.009 );

skin.Skin5 = GUISprite( );
skin.Skin5.SetTexture( "black.png" );
skin.Skin5.Size = VectorScreen( sX * 0.15111, sY * 0.311111 );
skin.Skin5.Pos = VectorScreen( sX * 0.020, sY * 0.4 );

skin.Skin6 = GUISprite( );
skin.Skin6.SetTexture( "blue.png" );
skin.Skin6.Size = VectorScreen( sX * 0.15111, sY * 0.311111 );
skin.Skin6.Pos = VectorScreen( sX * 0.200, sY * 0.4 );

skin.Skin7 = GUISprite( );
skin.Skin7.SetTexture( "lance.png" );
skin.Skin7.Size = VectorScreen( sX * 0.15111, sY * 0.311111 );
skin.Skin7.Pos = VectorScreen( sX * 0.380, sY * 0.4 );

skin.Skin8 = GUISprite( );
skin.Skin8.SetTexture( "taxi.png" );
skin.Skin8.Size = VectorScreen( sX * 0.15111, sY * 0.311111 );
skin.Skin8.Pos = VectorScreen( sX * 0.550, sY * 0.4 );


skin.Skin1.AddFlags( GUI_FLAG_MOUSECTRL );
skin.Skin2.AddFlags( GUI_FLAG_MOUSECTRL );
skin.Skin3.AddFlags( GUI_FLAG_MOUSECTRL );
skin.Skin4.AddFlags( GUI_FLAG_MOUSECTRL );
skin.Skin5.AddFlags( GUI_FLAG_MOUSECTRL );
skin.Skin6.AddFlags( GUI_FLAG_MOUSECTRL );
skin.Skin7.AddFlags( GUI_FLAG_MOUSECTRL );
skin.Skin8.AddFlags( GUI_FLAG_MOUSECTRL );

skin.Skins.AddChild( skin.Skin1 );
skin.Skins.AddChild( skin.Skin2 );
skin.Skins.AddChild( skin.Skin3 );
skin.Skins.AddChild( skin.Skin4 );
skin.Skins.AddChild( skin.Skin5 );
skin.Skins.AddChild( skin.Skin6 );
skin.Skins.AddChild( skin.Skin7 );
skin.Skins.AddChild( skin.Skin8 );

GUI.SetMouseEnabled( true );
}



Sprites : https://www.mediafire.com/file/7u58mwr9gciufcz/sprites.rar/file
Just unrar sprites and paste in your server/store/sprites

                                                                                           How it looks


https://youtu.be/HRW7_pNh6IQ#
12
Support / Re: bug my server.
« on July 6th, 2020, 04:35 PM »
Same problem i had faced that i cant join VKs
I still cant join Brazil server same issue........
13
Community Plugins / Re: create bots with this plugin
« on June 8th, 2020, 06:07 PM »
Great work keep it up
Using it we can make an army of players and let them fight with each other :D
14
Client Scripting / Re: Mod Hud Weapon Wheel V0.1
« on May 18th, 2020, 12:58 AM »
Great work keep it up
Can you tell me how can I get Exact vector screen axis like you made a correct circle with pics
15
Servers / [pubg] Re: Vice City Playerunknown’s Battlegrounds Dm
« on April 11th, 2020, 05:46 PM »
Server seems to be very good but if you want to grow your server you needs to change server host
If you cant afford so there are many ways to get free host
GoodLuck hope your server will be best servers of VCMP