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 - :P

#21
Scripting and Server Management / not picking
Sep 19, 2015, 05:46 AM
suddenly admin.nut leave working  which cmds in admin.nut when i type that cmds says unknow cmds i also add admin.nut in main.nut iadd do file   but not works why 
#22
once i register saying register again no console error
function
function Register( player, password )
{
     try{
local pass = e(password);
QuerySQL( db, "INSERT INTO Account ( Name, IP, Level, Pass, Kills, Deaths, Cash, Bank, Joins, nogoto, DateRegistered, WonLMS, RandSpawn ) VALUES ( '" + player.Name.tolower() + "', '" + player.IP + "', 1, '" + pass + "', 0, 0, 0, 0, 0, 'off', '" + GetFullTime() + "', 0, 'on' )" );
QuerySQL( db, "REPLACE INTO Bstats ( Name, User, Body, Torso, LeftArm, RightArm, LeftLeg, RightLeg, Head ) VALUES ( '" + player.Name.tolower() + "', '" + player.Name + "', 0, 0, 0, 0, 0, 0, 0 )" );
     QuerySQL( db, "REPLACE INTO Wstats ( Name, User, Fist, BrassKnuckle, ScrewDriver, GolfClub, NightStick, Knife, BaseballBat, Hammer, Cleaver, Machete, Katana, Chainsaw, Grenade, RemoteGrenade, TearGas, Molotov, Missile, Colt45, Python, Shotgun, Spaz , Stubby, Tec9, Uzi, Ingrams, MP5, M4, Ruger, SniperRifle, LaserScope, RocketLauncher, FlameThrower, M60 ) VALUES ( '" + player.Name.tolower() + "', '" + player.Name + "', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 )" );
IncCash( player, 2000 );
status[ player.ID ].IsLogged = true;
status[ player.ID ].IsReg = true;
ePrivMessage( "You've Registered!", player );
ePrivMessage( "Nick:[ " + player.Name + " ] Password:[ " + password + " ]", player );
rMessage( ">> " + player.Name + " is successfully registered with us" );
                   Message( "[#00ff00][Achievement]: [#FF0000]" + player.Name + " Has unlocked an achievement: [#00FFFF][Experiencing test]." );
}
catch(e) print( "Reg Function Error: " + e );

}
cmds
if ( cmd == "register" )
  {
   if ( status[ player.ID ].IsReg == true ) ePrivMessage( "[Error] - You're Already Registered!", player );
   else if ( !text ) ePrivMessage( "[Syntax] - / " + cmd + " <Password>", player );
   else
   {
        Register( player, text );
}
  }
#23
Scripting and Server Management / load cars
Sep 17, 2015, 11:51 AM
i trying addcars direct to database so i watch kusnangi system i trying this load car but error occur the index does not exists loadcars
LoadCars();
i know it will be a small prob but not solving from me
#24
Scripting and Server Management / null
Sep 17, 2015, 08:13 AM
when i type /car its say cose null ; 0x00000 owner null 0x000 sharer nul 0x0000 why
note: the cmds of kakan

car cmds
else if ( cmd == "car" )
 {
      local plr = GetPlayer( text );
  if ( !text ) MessagePlayer( "[Syntax] - /" + cmd + " <Nick/ID>.", player );
  else{
     if ( !plr ) MessagePlayer( "[Error] - Invalid Nick/ID", player );
  else if ( !plr.IsSpawned ) MessagePlayer( "[Error] - This player hasn't spawned.", player );
  else
  {
   local veh = plr.Vehicle;
   if ( veh )
   {
    local vid = veh.ID, hp = veh.Health.tointeger() /10;
    MessagePlayer( plr + " is driving a " + GetVehicleNameFromModel( veh.Model ) + " (ID: " + vid + ") (Health: " + hp + "%)", player );
    local q = QuerySQL( db, "SELECT * FROM Vehicles WHERE ID='" + veh.ID + "'" );
             MessagePlayer( "Vehicle:[ " + GetVehicleNameFromModel( veh.Model ) + " ] Cost:[ " + GetSQLColumnData( q, 1 ) + " ]", player );
             MessagePlayer( "ID:[ " + veh.ID + " ] Owner:[ " + GetSQLColumnData( q, 2 ) + " ] Share:[ " + GetSQLColumnData( q, 3 ) + " ]", player );
   }
   else MessagePlayer( plr + " is currently on foot.", player );
  }
  }
 }

function


function onPlayerEnterVehicle( player, vehicle, isPassenger )
{
 Announce( "~b~ ID ~p~" +  vehicle.ID  + ".",player,4);
MessagePlayer("[#1fcecb]Press [#50c878]I[#1fcecb] rapidly to activate boost .",player); 
MessagePlayer("[#FFFFFF]Have 100000?.Type /buycar " + vehicle.ID + " to buy this car if its forsale",player);   
return 1;
}
function onPlayerExitVehicle( player, vehicle )
{
                  Announce( "~b~ ID ~p~" +  vehicle.ID  + ".",player,4);
ePrivMessage("Exit Vehicle ID: " + vehicle.ID + ".",player);
}
#25
Scripting and Server Management / KICK error
Sep 17, 2015, 02:31 AM
when i kick a player comes this error and his game not quitted

error line # 281
  if ( status[ player.ID ].PHidden == true ) status[ player.ID ].PHidden = false;
kick function

function cKick( p )
{
if ( status[ p.ID ].PHidden == true ) status[ p.ID ].PHidden = false;
if (status[p.ID].JoinLMS == 1)
{
   status[p.ID].JoinLMS = 0;
   gLMS.CountLMS--;
   Winner.remove( Winner.find( p.ID ) );
       checklms();
    }
SetPlayerSpree(p);
    SaveStats( p );
KickPlayer( p );
}

kick identifiyer function

function KickPlr(identifier)
{
 if (typeof identifier != "integer" && typeof identifier != "string") return;
 local player = FindPlayer(identifier);
 if (typeof player == "instance")
 {
  if (pinfo[id].Logged == true) SavePlayerData(id);
  pinfo[id] = null;
  KickPlayer(player);
 }
}

#26
General Discussion / port forward
Sep 16, 2015, 03:43 AM
i am using mobile 3g internet and i want to forward port and host my server is it possible to forward port from mobile if yes then how
#27
Message( "** Admin " + player.Name + " has rewarded " + mon + " for Reason " + reason );

how i can convert it to annouceall i try but cmds leaves works and no console error

and  when i type / reward nickid mon  reason
and came admin killer has rewarded to sadam 5000 for reason 500 how i can delete the 500 from message killing of sada