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

#1
It's been almost 3 years, I left vc-mp. Just surfing out the forum, seems like the devs are ded. The links to download server update also doesn't work.
So looking for some pieces of information, are they planning to update it?
alternate link to download the updates?
and what's up with everyone, what you guys are doing nowadays!
#2
What kind of bugs it had?
#3
Support / Re: Gui read the data base ?
Dec 29, 2018, 06:30 AM
Send data to server.
Process the data.
Read the database in server.
Send the data to client you read from database.

Just a quick example for you:
In client side
local st = Stream( );
st.WriteInt( 1 );
Server.SendData( st );

Now In server side:

function onClientScriptData( player )
{
local Int = Stream.ReadInt( );
if (Int == 1)
{
 // Do the database query
 // Then send that back  to client
}
}

Now again in client side
check the stream and you got the data of your database.
#4
Full of retards.
Leave scripting, stick to play. Better leave vc-mp.
#5
As I have left vcmp. I am releasing the script I was working on. Its still in beta version. Many works to do. I am releasing it so that you guys can continue the work.

The script comes with a lot of features. You can check it by turning the server on.

You need GeoIP, MySQL, Squirrel, Sockets and some others plugin maybe.


Get the script from here:


You are not allowed to post any of the code as your snippet without my permission.
#6
Snippet Showroom / Re: Some Teleports
Sep 17, 2017, 04:28 PM
Quote from: Mahmoud Tornado on Sep 17, 2017, 03:00 PM
Quote from: Sebastian on Sep 16, 2017, 11:28 PMSomebody please move such posts to the right board...
that was old xDDDDDDDDDDDDDDDDDDDDDDD
Braindonour
#8
Support / Re: Vehicles ID's
Sep 06, 2017, 03:19 PM
Execute this on "Execute SQL" on the DB Browser.
UPDATE Vehicles SET ID = rowid
#9
Quote from: Zone_Killer on Sep 01, 2017, 08:12 AM
Quote from: FAW[K]EY[E] on Aug 31, 2017, 09:38 AMNope Broh I am Owner Of Server
Maqsood shaikh i mean the real owner of dnus is [KoF]Killer.
Nah.. Its @Drake
#10
Better, you remove the screenshot. Its not a hard task to find that page
#11
Try it.

function AccInfo(player)
{
 local q = QuerySQL(DB, "SELECT * FROM Accounts WHERE Name = '" + escapeSQLString(player.Name) + "'");
 if (q)
 {
  status[player.ID].Password = GetSQLColumnData(q, 2);
  status[player.ID].Level = GetSQLColumnData(q, 3);
  status[player.ID].UID = GetSQLColumnData(q, 5);
  status[player.ID].IP = GetSQLColumnData(q, 6);
  status[player.ID].AutoLogin = GetSQLColumnData(q, 7);
  status[player.ID].Registered = true;
  if ((player.UID == status[player.ID].UID) || (player.IP == status[player.ID].IP))
  {
   if (status[player.ID].AutoLogin == "true")
   {
    MessagePlayer("[#CCFF66]** Welcome back to the server.", player);
    MessagePlayer("[#CCFF66]** You've been auto logged in, to disable this, type /autologin [ Toggles automatically ]", player);
    status[player.ID].LoggedIn = true;
 local c = QuerySQL(DB, "SELECT Clan FROM Accounts WHERE Name = '"+player.Name+"' " ), Clan = GetSQLColumnData( c, 0 );

 local w = QuerySQL( Clans, "SELECT * FROM ClanMembersRequest WHERE Player LIKE '" + player.Name + "' COLLATE NOCASE" );
 if (w)
  {
  status[ player.ID ].ClanRequest = true;
  status[ player.ID ].ClaneTag = GetSQLColumnData( w, 1 );
  status[ player.ID ].Clane = GetSQLColumnData( w, 2 );
  status[ player.ID ].ClaneState = GetSQLColumnData( w, 3 );
  MessagePlayer( "[CLAN-Request] Clan [ " + status[ player.ID ].Clane + " ].Use /acceptclan or /rejectclan.",player);
  }
 FreeSQLQuery( w );
 
 if ( Clan != "None" )
  {
  local r = QuerySQL( Clans, "SELECT Tag FROM ClanStats WHERE Clan LIKE '"+Clan+"'" );
  if (r)
   {
   local
    Tag = GetSQLColumnData( r, 0 ),
    t = QuerySQL( Clans, "SELECT * FROM ClanMembers WHERE Clan LIKE '"+Clan+"'" ),
    Owner = GetSQLColumnData( t, 1 ),
    Leader1 = GetSQLColumnData( t, 2 ),
    Leader2 = GetSQLColumnData( t, 3 ),
    Leader3 = GetSQLColumnData( t, 4 ),
    Users = GetSQLColumnData( t, 5 );
   if ( Owner == player.Name )
    {
    status[ player.ID ].Clan = Clan;
    status[ player.ID ].ClanTag = Tag;
    status[ player.ID ].ClanState = "Owner";
    }
   if ( Leader1 == player.Name )
    {
    status[ player.ID ].Clan = Clan;
    status[ player.ID ].ClanTag = Tag;
    status[ player.ID ].ClanState = "Leader1";
    }
   if ( Leader2 == player.Name )
    {
    status[ player.ID ].Clan = Clan;
    status[ player.ID ].ClanTag = Tag;
    status[ player.ID ].ClanState = "Leader2";
    }
   if ( Leader3 == player.Name )
    {
    status[ player.ID ].Clan = Clan;
    status[ player.ID ].ClanTag = Tag;
    status[ player.ID ].ClanState = "Leader3";
    }
   if ( Users.find( player.Name ) )
    {
    status[ player.ID ].Clan = Clan;
    status[ player.ID ].ClanTag = Tag;
    status[ player.ID ].ClanState = "Users";
    }
   FreeSQLQuery(t);
   }
  FreeSQLQuery(r);
  }
 
 CheckPlayerClan( player );
FreeSQLQuery( c );
   }
   else
   {
    MessagePlayer("[#CCFF66]** Welcome back to the server.", player);
    MessagePlayer("[#CCFF66]** Your nick is registered. Please login in order to access services.", player);
   }
  }
  else
  {
   MessagePlayer("[#CCFF66]** Welcome back to the server.", player);
   MessagePlayer("[#CCFF66]** Your nick is registered. Please login in order to access services.", player);
  }
 }
 else
 {
  MessagePlayer("[#CCFF66]** Welcome to the server.", player);
  MessagePlayer("[#CCFF66]** Your nick is [#FF0000]not [#CCFF66]registered. Please register in order to access services.", player);
 }
 FreeSQLQuery(q);
}
#12
FFS stop posting in wrong boards.
#13
Quote from: longhackmc on Jul 04, 2017, 03:05 PMand Element list, where it?
Uhh!! Watch the video. By the way, you can use /elements in game to get a list of all elements.
#14
Quote from: longhackmc on Jul 04, 2017, 12:59 PMHow to use / addchild
Give me an example
tks
Watch the video
#15
Quote from: Xmair on Jun 30, 2017, 06:19 AMNo. Why'd you want to do that?
Maybe, he is running out of space.