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

Topics - Coolkid

#21
Scripting and Server Management / Unban
Mar 04, 2016, 07:06 PM
When I unban a person the command works perfectly and it deletes the players ban info Frm database but prb is when player try to join it kicks saying player is ban but when I restart server the player is unbanned plz help
#22
Support / customcar
Mar 04, 2016, 11:34 AM
i am creating custom vehicles but when i enterin car it says it id but doesnot says his name it says entering ehicle 000000000null
is there any way that it can say the name of vehicle
#23
Support / freeze and unfreeze
Mar 04, 2016, 03:36 AM
Plz tell me whats wrong in this code i will be thank ful thanks
[spoiler]else if (cmd == "freeze"){
if ( params.len() < 2) MessagePlayer(msg.C +" /"+ cmd +" <All/Nick/ID> <text>", player );
else if (params[0].tolower() == "all"){
foreach(i, val in playerson){
FindPlayer(i).IsFrozen = true;
}
Message(msg.I +" Admin "+ player.Name +" has frozen everyone in the server. Reason : " + params[1] );
}
else if ( !GetPlayer(params[0]) ) MessagePlayer( msg.E +" Unknown Player", player );
else {
GetPlayer(params[0]).IsFrozen = true;
Message(msg.I +" Admin "+ player.Name +" has freezed "+GetPlayer(params[0])+" in the server. Reason : " + params[1] );
}
    }

else if (cmd == "unfreeze"){
if ( params.len() < 2) MessagePlayer(msg.C +" /"+ cmd +" <All/Nick/ID> <text>", player );
else if (params[0].tolower() == "all"){
foreach(i, val in playerson){
FindPlayer(i).IsFrozen = false;
}
Message( msg.I +"Admin "+ player.Name +" has unfreezed everyone in the server. Reason : " + params[1] );
}
else if ( !GetPlayer(params[0]) ) MessagePlayer( msg.E +" Unknown Player", player );
else {
GetPlayer(params[0]).IsFrozen = false;
Message( msg.I + "Admin "+ player.Name +" has unfreezed "+GetPlayer(params[0])+" in the server. Reason : " + params[1] );
}
    }
[/spoiler]
#24
i thought of giving hydra mod made by [MVL] to all many people feel it dificult to make

Just copy and paste your custom vehicle in store/vehicles/ . Make sure the id starts with 6400. Now Copy and paste this code in onScriptLoad . It will create a vehicle near mansion.
CreateVehicle(6420, 1, Vector(-363.606292724609, -524.068786621094, 12.6005363464355), 0.1268, 20, 20);Either you can use cmd but that will disappear after restarting server
else if ( cmd == "hydra" )
{
CreateVehicle( 6420, player.World, Vector(player.Pos.x, player.Pos.y, player.Pos.z), 0, 12, 13 );
}

Hydra.7z]

http://files.thijn.ovh/download/a937e9e6deeff4f031d3c86aeedb8850/v6420_t0_p2_[MVL] Hydra.7z

[spoiler]Thanks to KAKAN i was having problem making hydra work on my server lol so i was seeing kakans post and i found out how to make it thanks KAKAN[/spoiler]
#25
Support / Server
Feb 04, 2016, 12:50 AM
After trying 2 months of scripting i now am using [WIP] SDMS script and can u plz fix it i have uploaded the  server here can anyone give me errors why is it not working
#26
General Discussion / My server
Feb 03, 2016, 09:39 PM
My server is on here on http://thijn.minelord.com/vcmp/checker/ it shows it is on the masterlist and on http://thijn.minelord.com/stats/vcmp/ the server is also online  but when i open browser my server is not there then i aded it aas favouries from thijin it is not showing i have tested this script at my friends house it is working there
#27
Support / Stat
Jan 25, 2016, 02:02 AM
HI now my databse is loaded and my register login function is also working but when i reconnect my all stats money and kills are back to 0 plzz help me and thanks in advance
#28
Support / Database constructor
Jan 24, 2016, 08:31 AM
Hi everyone
                    I am creating a server and i am stuck at a point can u guys plz help me i will e thankful can u tell me how to create databse frm this code constructor( playerName, dbGlobal )
   {
local query = ::QuerySQL( dbGlobal, "SELECT Cash, Bank, Kills, Deaths, Level, LastUsedIP FROM Accounts WHERE Name='" + playerName + "' AND NameLower='" + playerName.tolower() + "'" );
if( ::GetSQLColumnData( query, 5 ) )
{
Cash = ::GetSQLColumnData( query, 0 );
Bank = ::GetSQLColumnData( query, 1 );
Kills = ::GetSQLColumnData( query, 2 );
Deaths = ::GetSQLColumnData( query, 3 );
Level = ::GetSQLColumnData( query, 4 );
LastUsedIP = ::GetSQLColumnData( query, 5 );
}
::FreeSQLQuery( query );

        local q = ::QuerySQL( dbGlobal, "SELECT Played, Won, Lost FROM LMS WHERE Name='" + playerName.tolower() + "'" );
if( ::GetSQLColumnData( q, 2 ) )
{
     Played = ::GetSQLColumnData( q, 0 );
     Wins = ::GetSQLColumnData( q, 1 );
     Lost = ::GetSQLColumnData( q, 2 );
}
::FreeSQLQuery( q );
}

function Join( player ){
if( Level == 0 ){
::MessagePlayer( "Please register to play.", player );
::MessagePlayer( "Register with /register <password>", player );
}
else if( LastUsedIP == player.IP ){
Logged = true;
player.Cash = stats[ player.ID ].Cash;
::MessagePlayer( "Welcome back!", player );
}
else{
::MessagePlayer( "Please login to play.", player );
::MessagePlayer( "Login with /login <password>", player );
}
}

function Update( player, dbGlobal ){
::QuerySQL( dbGlobal, "UPDATE Accounts SET Cash=" + Cash + ", Bank=" + Bank + ", Kills=" + Kills + ", Deaths=" + Deaths + ", Level=" + Level + ", LastUsedIP='" + LastUsedIP + "' WHERE Name='" + player.Name + "' AND NameLower='" + player.Name.tolower() + "'" );
        ::QuerySQL( dbGlobal, "UPDATE LMS SET Lost=" + Lost + ", Played=" + Played + ", Won=" + Wins + " WHERE Name='" + player.Name.tolower() + "'" );
}
#29
General Discussion / HAndling
Jan 21, 2016, 02:25 AM
I want to ask about the folder in stores handling can i create myown handling file a new one if you do, what folder it should be and what should remain in the .cfg file itself or even xml
#30
Support / Admin Command
Jan 18, 2016, 06:00 PM
Hi guys i am making a server it has all admin commands accept to spawn a vehicle can someone tell me a admin command to spawn vehicles thanks in advance
#31
Support / Register/Login System
Jan 17, 2016, 04:12 PM
I am trying many codes for register login system but everything fails can u plz tell me code for it