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
Pages: [1]
1  Servers / Advertise your server! / Liberty RPG on: March 27, 2012, 07:48:03 am

After so much of hardwork with X_94 Liberty RPG is going to be public in August 1st, Thanks for your support, here is a list of commands made so far, If you have any suggestions please do make it fast, If you have any doubts on how the commands works or you want to discuss anything related to the commands please post it here


Name: Liberty RPG
Official: no
Locked: yes
IP: 78.110.165.196:2302
IRC Channel: #liberty-rpg.echo
Website: www.liberty-rpg.tk
Slots: 24
Host: Sky-City Hosting
Uptime: 24/7
Location: United Kingdom
Owner: Rocky and X_94
Staffs: list
Gamemode: Liberty v0.1
Scripters: X_94 and Rocky




Help - Tutorial menu.
Dumpcar - you are allowed to dump a vehicle everyday.
Stats - Shows your Items, job etc..
Job - while standing on a job spree go onduty.
Quitjob - quit your current job (you need to work atleast 1 hour to use this cmd).
S/Shout - shout something.
W/Whisper - whisper to someone near.
O/ooc - off topic chat.
Take - take a drug or food to restore health
Call - click this for service ph no. and use player Name for calling player.
Givecash - Give cash to a player while standing close to him/her.
Sellfish - Sell your fish at building, you can fish by standing on the spree, you will recieve random gifts(including sea mine).
 


Buydrugs - Buy drugs from cabin.
Selldrugs - Sell drugs to players.



Geta - Get A Material.
Getb - Get B Material.
Getc - Get C Material.
Sellgun - Use materials to make gun and sell it to players.
Mark - Mark Material location on radar.



Addpolice - Give a player access to LC:PD.
Wanted/Wantedlist - Show wanted players list.
Suspect/Sus - suspect a player.
Susinfo/Whysus - see why a player was suspected.
Restock/Takeguns - take or restock weapons from LC:PD.



Heal - heal a player if he calls for one.



Unload - unload your goods to locations marked on radar.



repair - Repairs engine only.
respray - resprays the vehicle body with different colour
rebuild - Fix engine body only works if the player is in workshop.
workshop - open/close workshop door


buyprop - Buy a property
sellprop - Sell your property
spawnprop - spawn in your prop
invitetoprop - let a player enter your house
remfromprop - delete player from entering your house
garages - Get the garage id of your property
opengarage - Open your property garage
wdgain - Withdraw cash from your prop if it is a business
propenter - Enter your property
propexit - Exit your property
closegarage - Close your property garage



stocks - See the info of a clan HQ.
addmember - owners can add member to HQ.
delmember - Delete the member from the HQ.
takestock - Take a drug/weapon from HQ.
addstock - Item drug dealers can store drug and arms dealers can store gun.



buyvehicle - Buy a vehicle (on car selection screen)
sellvehicle - Sell your vehicle.
vehicle - Show info about your vehicle.
sharevehicle - give a player access your vehicle.
delsharevehicletake back a players access to your vehicle.
lockvehicle - Lock your vehicle
unlockvehicle - Unlock your vehicle

Total Commands: 43 (EXCLUDING ADMIN AND VIP COMMANDS)
-Post done by Rocky via Rifle's account.
2  Scripting / Script Snippets / Subnet Functions on: March 21, 2012, 11:07:47 am
Functions List

  • BanSubnet(player,admin,reason) : Ban a players Subnet
  • IsSubban(player) : Check if the player's Subnet is banned
  • GetSubnet(player)  : Get the players Subnet from IP


OnScriptLoad
Code: [Select]
LoadModule("lu_sqlite");Load the Module.
Code: [Select]
database <- sqlite_open( "LU/data/Subnet.subnetz" );
Code: [Select]
sqlite_query( database, "CREATE TABLE IF NOT EXISTS Subnet (Subnet FLOAT, Time TEXT, Admin TEXT, Reason TEXT )" );Create a database to store the subnet bans data

Functions

BanSubnet(player,admin,reason)
Code: [Select]
function BanSubnet(player,admin,reason)
{
   local sub = GetSubnet(player);
   sqlite_query( database,"INSERT INTO Subnet ( Subnet, Time, Admin, Reason ) VALUES ( '"+sub+"',  '"+GetFullTime()+"', '"+admin+"', '"+reason+"' )" );
   Message( "Banning Subnet:[ "+ sub +" ] by [ " + admin + " ] Reason:[ " + reason + " ]");
   KickPlayer(player);
}

IsSubban(player)
Code: [Select]
function IsSubban(player)
{
    local sub = GetSubnet(player);
    local User = sqlite_column_data( sqlite_query(database, "SELECT Admin FROM Subnet WHERE Subnet='" + sub + "'" ), 0 );
if ( User ) return User;
    else return 0;
}

GetSubnet(player)
Code: [Select]
function GetSubnet(player)
{
   local ip = player.IP.tostring();
   local sliceip = split( ip, ".");
   local ip1 = sliceip[ 0 ], ip2 = sliceip[ 1 ];
   local subnet = format(ip1 + "." + ip2 );
   return subnet;
}

USAGE: Command

Code: [Select]
if( cmd == "subban" )
{
else if ( !text ) MessagePlayer( "Error: /" +cmd+ " [Nick/ID] [Reason]", player );
else
                 {
    local plr = FindPlayer(GetTok( text, " ", 1 ));
if(!plr) MessagePlayer( "Error: No such player is online!", player );
else {
       local Reason = GetTok( text, " ", 2, NumTok( text, " " ) );
       if(!Reason)  BanSubnet(plr,player, "none");
       else BanSubnet(plr,player,Reason);
     }
}
else MessagePlayer( "You don't have access to use this command!", player );
    }

USAGE: Checking
Code: [Select]
function onPlayerJoin( player )
{
  if( IsSubban(player) )
{
    Message("Kicking:[ " + player.Name + " ] for:[ Subnet banned ] Subnet:[ " + GetSubnet(player).tostring()+ " ]");
KickPlayer(player);
}
     return 1;
}

  • If you want to view: the date of the ban, by which admin, reason or if you want to manually add subnet bans or manually delete subnet Download
  • You will also need lu_sqlite Module which can be found within the server package.
  • Thanks you and if you find any bugs please inform me :)

Scripted by: [FS]Rocky and Rifle
3  Scripting / Script Help / Help on: March 06, 2012, 05:09:09 pm
Code: [Select]
pPlayer <- FindLocalPlayer();

function onClientRequestClass( pClass )
{
if ( pClass.ID == 0 ) SmallMessage( pClass, "Cop: Protect Liberty City From Criminals.", 5000, 1 );
else if ( pClass.ID == 2 )  SmallMessage( pClass,"Medic: Heal Citizens Of Liberty City.", 5000, 1 );
else if ( pClass.ID == 3 ) SmallMessage( pClass,"Bus Driver: Pick Up Citizens From Liberty City To Their Destination.", 5000, 1 );
else if ( pClass.ID == 4 ) SmallMessage( pClass,"Taxi Driver: Pick Up Citizens From Liberty City To Their Destination." 5000, 1 );
else SmallMessage( pClass,"Pick up Citizens from Liberty City to their destination", 5000, 1 );
return 1;
}

Code: [Select]
<script file="client.nut" client="1"/>It doesn't work or even executive.

4  Liberty Unleashed / Bug Reports / Object bug on: March 06, 2012, 08:19:04 am
The version you are using: 0.1.0.12
What you/the other player were doing when you noticed the bug: I was adding objects and skins for my server.
Is it reproducible? If so, how?: yes, create an object(garage) and while standing on that object type /reconnect after you have reconnected spawn and go to the place where the object is, you can find that the object has vanished. I think removing /reconnect or make a function to disable it will be good.
What you would expect to happen if the bug didn't occur: The object will not disappear lol.
A brief description of the bug: I noticed that /q and reentering the server will not cause this problem. only /reconnect does  :o
Pages: [1]
© Liberty Unleashed Team.