Recent Posts

Pages: [1] 2 3 ... 10
1
Script Snippets / Buy Heal/Armour
« Last post by 2204 on May 12, 2018, 11:05:48 pm »
As the title suggests you can buy a heal (Health = 100%) or Armour.

Adapt this to your script however you want to, change 5000/8000 if you think it's too much or too little

Code: [Select]
else if ( szCommand == "heal" ) {
if ( pPlayer.Health != 100 && pPlayer.Cash >= 5000)
{
pPlayer.Health = 100;
pPlayer.Cash -= 5000;
MessagePlayer( "Purchased a heal for $5000. Remaining cash: $" + pPlayer.Cash + ".", pPlayer);
}
else if ( pPlayer.Health == 100)
{
MessagePlayer( "You already have full health!", pPlayer);
}
else if ( pPlayer.Cash < 5000)
{
MessagePlayer( "You don't have enough money!", pPlayer);
}
}

else if ( szCommand == "armour" || szCommand == "armor" ) {
if ( pPlayer.Armour != 100 && pPlayer.Cash >= 8000)
{
pPlayer.Armour = 100;
pPlayer.Cash -= 8000;
MessagePlayer( "Purchased armour for $8000. Remaining cash: $" + pPlayer.Cash + ".", pPlayer);
}
else if ( pPlayer.Armour == 100)
{
MessagePlayer( "You already have full armour!", pPlayer);
}
else if ( pPlayer.Cash < 8000)
{
MessagePlayer( "You don't have enough money!", pPlayer);
}
}
2
Support / Re: Help
« Last post by shane_Iron on April 11, 2018, 01:24:49 pm »
two windows at once are not possible.
3
Support / Help
« Last post by JUMBO on April 03, 2018, 05:12:22 pm »
How can i play on your Libery Unleashed launcher gta 3 and vice city at once.


4
Script Snippets / admin system for newbies
« Last post by mega mind on April 03, 2018, 10:50:25 am »
i have seen many newbies trying to make a server but they donot have an admin system so heres a little snipper for you guyzz

Code: [Select]
/*top of script*/

const AdminPassword = "adminpassword"
class PlayerInfo
{
admin = false;
}
//=================================

/*onscriptload*/

pinfo <- array(GetMaxPlayers(), null);
//===================================


/*anywhere*/

function PlayerIsAdmin(player)
{
 if(pinfo[pPlayer.ID].admin== true) return 1;
 else return 0;
}
//========================================

/*playerjoin*/

pinfo[pPlayer.ID] = PlayerInfo();
//==========================================



/*playercmd*/
else if(szCommand == "admins")
{
 {
  if ((  pPlayer.Name == "admin" ) || (  pPlayer.Name == "admin1" ))
{
 //MessagePlayer( "[#00ff00]Admins are on Duty [ " + pPlayer.Name + " ] " , pPlayer );
 Message( "Admins are on Duty [ " + pPlayer.Name + " ] ", 0, 255, 0 );
 }
else
{
MessagePlayer( "[#00ff00]Admins available [#00ffff]"+pinfo[pPlayer.ID].admin+"" , pPlayer );
}
}
}

else if (szCommand == "admin")
 {
 if(!szArgs) MessagePlayer( "-> Error: [#ffd700]Please type /admin <admin password>", pPlayer,255,0,102);
 else if ( szArgs != AdminPassword ) MessagePlayer( "-> Error: [#ffd700]Invalid PASSWORD.", pPlayer,255,0,102);
 else
 {
 MessagePlayer( "-> [#00ffff]Welcome "+pPlayer.Name+". You are logged as admin in server.", pPlayer,255,0,102); pinfo[pPlayer.ID].admin = true;
 }
 }

 else if ( szCommand == "ban" )
    {
        if ( (  pPlayer.Name == "admin" ) || (  pPlayer.Name == "admin1" ) )
        {
            if ( szArgs )
            {
           local plr = FindPlayer( szArgs );
               if ( plr )
               {
               BanPlayer( plr );
               }
               else MessagePlayer( "[#00ff00]Invalid Player " , pPlayer );
            }
            else MessagePlayer( "[#0f00f0]Type /ban <player> " , pPlayer );
        }
        else MessagePlayer( "[#F02F0F] Your are not admin. " , pPlayer )
    }

else if ( szCommand == "kick" )
    {
        if ( (  pPlayer.Name == "admin" ) || (  pPlayer.Name == "admin1" ) )
        {
            if ( szArgs )
            {
           local plr = FindPlayer( szArgs );
               if ( plr )
               {
               KickPlayer( plr );
               }
               else MessagePlayer( "[#00ff00]Invalid Player " , pPlayer );
            }
            else MessagePlayer( "[#0f00f0]Type /kick <player> " , pPlayer );
        }
        else MessagePlayer( "[#F02F0F] Your are not admin. " , pPlayer )
    }

   else if ( szCommand == "settime" )
     {
        if ( (  pPlayer.Name == "admin" ) || (  pPlayer.Name == "admin1" ) ){
          local aTime = split( szArgs, " " );
          local szHour = aTime[0], szMin = aTime[1];
         
          SetTime( szHour.tointeger(), szMin.tointeger() );
     }
}

    else if (szCommand == "setweather" )
     {
if ( (  pPlayer.Name == "admin" ) || (  pPlayer.Name == "admin1" ) ){
          SetWeather( szArgs.tointeger() );
     }
}

else if ( szCommand == "ann" )
{
if ( (  pPlayer.Name == "admin" ) || (  pPlayer.Name == "admin1" ) ){
if ( szArgs ) BigMessage( szArgs, 5000, 1 );
}
}
// ==================================
5
Liberty Unleashed Chat / Re: Guess whos back
« Last post by shane_Iron on April 01, 2018, 10:52:56 am »
i know whos this kid lol!!
6
Liberty Unleashed Chat / Re: Guess whos back
« Last post by Motley on March 24, 2018, 10:58:43 pm »
You replying shows that you care ^_^.

As a member of the community, I want to thank you from all of us for staying active!!
Thank you  8)
7
Liberty Unleashed Chat / Re: Guess whos back
« Last post by Vortrex on March 24, 2018, 06:07:31 pm »
Who cares. It's just some random kid using Ankris's old name.
8
Liberty Unleashed Chat / Re: Guess whos back
« Last post by Motley on March 24, 2018, 02:30:10 am »
You never finished your sentence and posted a random link. Who are we talking about, and why did they leave?
9
Advertise your server! / Re: EXtreme StuntinG V2
« Last post by [AK]Ankris on March 17, 2018, 12:42:53 pm »
                                                         Update 3
1.8Ball Garages
2.Autofix (/autofix on,/autofix off)
3.Spectator system

WARNING:Next update will be when i get a a money script
WARNING:Server is not online at the moment because i have problems with port forwarding,it wont show if you got a solution or u can help contact me on discord [AK]Ankris0478
THX
10
Script Help / Re: Does anyone have any money script?
« Last post by [AK]Ankris on March 17, 2018, 12:38:23 pm »
contact me on discord [AK]Ankris0487
Pages: [1] 2 3 ... 10
© Liberty Unleashed Team.