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.

Topics - Coolkid
1
Scripting and Server Management / vehicle id
« on June 23rd, 2016, 05:41 PM »
how can i get vehicle id after creating it without sitting in it?

i am creating a vehicle system but i coulbot figure out how could i get vehicle id without sitting in it

Thanks in advance
2
Servers / Killerskingdom Server
« on June 9th, 2016, 01:06 AM »

______________________________________________----------------------------------------------------------
Server Name == [BOSS] KillersKingdom Server [jeahha hosting]
Server ip===== 146.185.143.200:8192
Server Hoster==Coolboy
Server Forum=== Killerskingdom.cf
Scirpted By=== Coolboy , Mystermike
Helpers=== Woodland , Necrose, Diego
Server IRC===#boss LUNet
Credits== WOODLAND COOLBOY AND MYSTERMIKE
Partial Credit== DNUS as refrence
_____________________________________________________________
COME AND SHOW URS BEST** 8)
3
Scripting and Server Management / gravity
« on June 7th, 2016, 03:40 AM »
is it possible to change gravity of only 1 world and it dont affect other world
4
General Discussion / IRC help
« on May 15th, 2016, 01:55 AM »
i didnot knew right place to post so i am posting here

is it possible to know who is using /bs say
5
Off-Topic General / Which mobile you use
« on May 13th, 2016, 03:49 AM »
i use iphone 6s 16 gb

which mobile you all use?
6
Scripting and Server Management / .tostring doesnot exist
« on May 10th, 2016, 10:42 PM »
Code: [Select]
function Richie(player, amount)
{
local q = QuerySQL(db, "SELECT Name,Amount FROM Rich WHERE Name LIKE '"+player.Name+"'");
local cash = GetSQLColumnData( q, 1 ).tostring();
local add = cash + amount;
if (GetSQLColumnData(q,0) == null)
{
QuerySQL(db, "INSERT INTO Rich (Name, Amount) VALUES ('"+player.Name+"', '"+amount.tointeger()+"')");
}
if (GetSQLColumnData(q,0) == player.Name );
{
QuerySQL(db, "UPDATE Rich SET Amount='"+ add+ "' WHERE Name LIKE '" + player.Name + "'");
}
FreeSQLQuery( q );
}

AN ERROR HAS OCCURED [the index 'tostring' does not exist]

CALLSTACK
*FUNCTION [Richie()] Scripts/Functions.nut line [1811]
*FUNCTION [onPlayerCommand2()] Scripts/Commands.nut line [4638]
*FUNCTION [onPlayerChat()] Scripts/DNUS-SQ.nut line [626]

LOCALS
[q] NULL
[amount] 5555
[player] INSTANCE
[this] TABLE
[cash] 5555500
[Pos] INSTANCE
[text] "5555"
[cmd] "donate"
[player] INSTANCE
[this] TABLE
[xp] NULL
2
[text] "!donate 5555"
[player] INSTANCE
[this] TABLE
[SCRIPT]  UnLoaded DM/FR
** Shutting down server **

line 1811 is local cash = GetSQLColumnData( q, 1 ).tostring();
7
General Discussion / Pickup to teleport to another server
« on May 5th, 2016, 11:51 AM »
As the topic says is it possible to teleport a player to another server using a pickup
9
Scripting and Server Management / last active
« on April 20th, 2016, 10:05 PM »
the function gives the last active in wring month all other things r fine but it delivers month one back for example the data of today would be 20/3/2016 15:55:28 one moth back

(click to show/hide)
Code: [Select]
function LastActive(player)
{
local now = date();
local q = QuerySQL(db, "SELECT Name,LADate FROM LastActive WHERE Name='"+player.Name+"'");
if (GetSQLColumnData(q,0) == null)
{
QuerySQL(db, "INSERT INTO LastActive (Name, LADate) VALUES ('"+player.Name+"', '"+ now.day + "/" + now.month + "/" + now.year + " " + now.hour + ":" + now.min + ":" + now.sec +"')");
}
if (GetSQLColumnData(q,0) == player.Name)
{
QuerySQL(db, "UPDATE LastActive SET LADate='"+ now.day + "/" + now.month + "/" + now.year + " " + now.hour + ":" + now.min + ":" + now.sec + "' WHERE Name='" + player.Name + "'");
}
FreeSQLQuery( q );
}
10
Scripting and Server Management / fpv diable command
« on April 19th, 2016, 01:35 AM »
whats am i doing wrong in this command

instead of function i thought of making command so i can disable and enable back fpv without any function

(click to show/hide)

Code: [Select]
else if ( cmd == "disablefpv" )
{
SetWeaponDataValue(26, 12, 0x200 );
SetWeaponDataValue(27, 12, 0x200 );
SetWeaponDataValue(32, 12, 0x200 );
 Message("Admin Disabled FPV!");
}
11
General Discussion / Vps buying suggestion
« on April 1st, 2016, 01:21 PM »
I have thought of buying vps will Windows e better or Linux
12
Scripting and Server Management / Total Time Played
« on March 30th, 2016, 03:00 AM »
hi guys i am not asking for any codes i just want to ask how can i get total time played
13
Applications / App for server host
« on March 27th, 2016, 11:45 PM »
User Name: Coolkid
Email Address:[have sended by pm]
Server Name:[0.4]Killers Kingdom
Port:5195
Slots(10-100):30

14
Scripting and Server Management / ban timer display
« on March 23rd, 2016, 10:58 PM »
hi
   when i ban a player he is banned for right time but problem is it shows negative values as u can see in pictures here is my code
Code: [Select]
function Banned( player )
{
      local query = QuerySQL( database, "SELECT * FROM Banned WHERE ban_nick='" + player.Name + "' COLLATE NOCASE" ), Ip = player.IP.tostring();
   if( GetSQLColumnData( query, 0 )  )
   {
         if( ( time() - GetSQLColumnData( query, 2 ).tointeger() ) >= GetSQLColumnData( query, 3 ).tointeger() )
   {
       local query2 = QuerySQL( database, "DELETE FROM Banned WHERE ban_nick='" + player.Name.tostring() + "'" );
    FreeSQLQuery( query2 );
       MessagePlayer(GREEN+"[RBAN] Your ban has been expired.", player );
    MessagePlayer(ORANGE+"[RBAN] Stick to the rules or you will get permanently banned.", player );
   }
   else
   {
        local Time_Left = TimeRem( GetSQLColumnData( query, 2 ).tointeger(), GetSQLColumnData( query, 4 ) );
        //local splitban = split(  GetSQLColumnData( query, 4 ), ":"  ), Calc = splitban[ 0 ] + " Day(s), " + splitban[ 1 ] + " Hour(s), " + splitban[ 2 ] + " Minute(s).";
        MessagePlayer(RED+"[RBAN] Your ban has not expired.", player );
     MessagePlayer(ORANGE+"[RBAN] Your ban is set to expire in " + Time_Left, player );
Message(RED+" Enforcing prior ban on:["+player.Name+"] Reason:["+GetSQLColumnData( query, 6 )+"]Time left:["+Time_Left+"]")
EchoMessage(ICOL_RED+" Enforcing prior ban on:["+player.Name+"] Reason:["+GetSQLColumnData( query, 6 )+"]Time left:["+Time_Left+"]")
     KickPlayer( player );
   }
   }
   else if( GetSQLColumnData( QuerySQL( database, "SELECT * FROM Banned WHERE ban_ip='" + Ip + "'" ), 0 ) )
   {
         local query = QuerySQL( database, "SELECT * FROM Banned WHERE ban_ip='" + Ip + "'" );
         if( ( time() - GetSQLColumnData( query, 2 ).tointeger() ) >= GetSQLColumnData( query, 3 ).tointeger() )
   {
       local query2 = QuerySQL( database, "DELETE FROM Banned WHERE ban_ip='" + player.IP.tostring() + "'" );
    FreeSQLQuery( query2 );
       MessagePlayer(RED+"[RBAN] Your ban has been expired.", player );
    MessagePlayer(ORANGE+"[RBAN] Stick to the rules or you will get permanently banned.", player );
   }
   else
   {
        local Time_Left = TimeRem( GetSQLColumnData( query, 2 ).tointeger(), GetSQLColumnData( query, 4 ).tostring() );
        //local splitban = split(  GetSQLColumnData( query, 4 ), ":"  ), Calc = splitban[ 0 ] + " Day(s), " + splitban[ 1 ] + " Hour(s), " + splitban[ 2 ] + " Minute(s).";
        MessagePlayer("[RBAN] Your ban has not expired.", player );
     MessagePlayer(ORANGE+"[RBAN] Your ban is set to expire in. " + Time_Left , player );
  Message(RED+" Enforcing prior ban on:["+player.Name+"] Reason:["+GetSQLColumnData( query, 6 )+"]Time left:["+Time_Left+"]")
EchoMessage(ICOL_RED+" Enforcing prior ban on:["+player.Name+"] Reason:["+GetSQLColumnData( query, 6 )+"]Time left:["+Time_Left+"]")
     KickPlayer( player );
   }
   }
   FreeSQLQuery( query );
}
function TimeRem( bantime,  banratio )
{
        local ban_current = time()-bantime, sp = split(banratio,":"), ban_Days = 0, ban_Hours = 0, ban_Minutes = 0,
  ban_Day = sp[ 0 ].tointeger(),
  ban_Hour = sp[ 1 ].tointeger(),
  ban_Minute = sp[ 2 ].tointeger();
  bantime = ban_Day + ban_Hour + ban_Minute;
  ban_Days = ban_current/86400;
  ban_current = ban_current%86400;
  ban_Hours = ban_current/3600;
  ban_current = ban_current%3600;
  ban_Minutes = ban_current/60;
  ban_current = ban_current%60;
  ban_Day -= ban_Days;
  ban_Hour -= ban_Hours;
  ban_Minute -= ban_Minutes;
  return ban_Day + " Day(s), " + ban_Hour + " Hour(s), " + ban_Minute + " Minutes.";
}

15
Support / announce
« on March 15th, 2016, 02:31 AM »
announcer:failed to store response from master.vc-mp.org

i am getting this on servver console and my server is not being shown in masterlist

my ports are forwarded

after some times thijin server checker says it is there on master lsit but like after 1 hour same announce rmessage will start to appear any help regarding announce