Mohamed's Account System
[1.0 - Stable] Miami Land Server Source »

Mohamed

  • Full Member
  • Regards, We3da
  • Posts: 247
Re: Mohamed's Account System
« Reply #30,  »
Quote from =RK=MarineForce on April 25th, 2018, 11:39 AM
bro setlevel bug if i type /setlevel marine not showing any thinG

error The Index 'pstats' dose not exits
change the 'pstats' to 'stats' and it will work.
Re: Mohamed's Account System
« Reply #31,  »
Quote from =RK=MarineForce on April 25th, 2018, 11:44 AM
There are More Bugs.. in admin system

can u help me to make it?

i need only warn system.. and ban  unban and setlevel /admins system can u give me it here code
all thing is in forum, please search in snippet & script showroom.
Feel Free To PM Me For Any Support, I'm Care.
Anyway u can Contact Me Ingame!
Ingame Name: [AFt]We3da^
My Own Server: ViceEvil Server

=RK=MarineForce

  • Sr. Member
  • WAR IS HELL!
  • Posts: 448
Re: Mohamed's Account System
« Reply #32,  »
All Things.. Good Working. Its Problem Of Your Account System . I m using it ..

How can i fix it can u help me ?
Try to UnderStand ME!

KrooB

  • Full Member
  • BEN TÜRKÜM
  • Posts: 117
Re: Mohamed's Account System
« Reply #33,  »Last edited
I made this code deposit/withdraw

Code: [Select]
else if( cmd == "deposit" )
{
if (!text) MessagePlayer(  " /deposit <Amount>", player);
else if (!InPoly(player.Pos.x,player.Pos.y, -898.2357,-326.6091,-898.2196,-355.5072,-936.2309,-355.5205,-939.2854,-352.5587,-952.3001,-342.9138,-957.1079,-341.7898,-966.5380,-337.4671,-966.5401,-328.1766 )) MessagePlayer(  " Bankada olman gerek.", player );
else if( !IsNum( text ) ) MessagePlayer(  "Numara kullan", player );
else if ( stats[ player.ID ].Cash < text.tointeger() ) MessagePlayer( "Yeterli paran yok", player );
else if ( text.tointeger() < 1 ) MessagePlayer( "Gecersiz miktar", player );
else{
DecCash( player, text.tointeger() );
IncBank( player, text.tointeger() );
MessagePlayer(  "Bankaya yatirdigin: " + text.tointeger() + "", player );
}
}

else if( cmd == "withdraw" )
{
if (!text) MessagePlayer( " /withdraw <Amount>", player);
else if (!InPoly(player.Pos.x,player.Pos.y, -898.2357,-326.6091,-898.2196,-355.5072,-936.2309,-355.5205,-939.2854,-352.5587,-952.3001,-342.9138,-957.1079,-341.7898,-966.5380,-337.4671,-966.5401,-328.1766 )) MessagePlayer(  " Bankada olman gerek.", player );
else if( !IsNum( text ) ) MessagePlayer(  "Numara kullan", player );
else if ( 0 > text.tointeger() ) MessagePlayer( "Gecersiz miktar", player );
else if ( stats[ player.ID ].Bank < text.tointeger() ) MessagePlayer( "Yeterli para yok", player );
else{
DecBank( player, text.tointeger() );
IncCash( player, text.tointeger() );
MessagePlayer(  "Bankadan cektigin: " + text.tointeger() + "", player );
}
   }
We are his people !
Who can challange us ?

umar4911

  • Sr. Member
  • Creating own server!
  • Posts: 474
Re: Mohamed's Account System
« Reply #34,  »
Quote from KrooB on June 21st, 2018, 05:38 AM
I made this code deposit/withdraw

(click to show/hide)
      else if( cmd == "deposit" )
   {
      if (!text) MessagePlayer( msg.C + " /deposit <Amount>", player);
      else if (!InPoly(player.Pos.x,player.Pos.y, -898.2357,-326.6091,-898.2196,-355.5072,-936.2309,-355.5205,-939.2854,-352.5587,-952.3001,-342.9138,-957.1079,-341.7898,-966.5380,-337.4671,-966.5401,-328.1766 )) MessagePlayer(  " Bankada olman gerek.", player );
      else if( !IsNum( text ) ) MessagePlayer(  "Numara kullan", player );
      else if ( stats[ player.ID ].Cash < text.tointeger() ) MessagePlayer( "Yeterli paran yok", player );
      else if ( text.tointeger() < 1 ) MessagePlayer( "Gecersiz miktar", player );
      else{
         DecCash( player, text.tointeger() );
         IncBank( player, text.tointeger() );
         MessagePlayer(  "Bankaya yatirdigin: " + text.tointeger() + "", player );
      }
   }
   
   else if( cmd == "withdraw" )
   {
      if (!text) MessagePlayer( " /withdraw <Amount>", player);
      else if (!InPoly(player.Pos.x,player.Pos.y, -898.2357,-326.6091,-898.2196,-355.5072,-936.2309,-355.5205,-939.2854,-352.5587,-952.3001,-342.9138,-957.1079,-341.7898,-966.5380,-337.4671,-966.5401,-328.1766 )) MessagePlayer(  " Bankada olman gerek.", player );
      else if( !IsNum( text ) ) MessagePlayer(  "Numara kullan", player );
      else if ( 0 > text.tointeger() ) MessagePlayer( "Gecersiz miktar", player );
      else if ( stats[ player.ID ].Bank < text.tointeger() ) MessagePlayer( "Yeterli para yok", player );
      else{
         DecBank( player, text.tointeger() );
         IncCash( player, text.tointeger() );
         MessagePlayer(  "Bankadan cektigin: " + text.tointeger() + "", player );
      }
   }
You the code option. (the hash(#) type looking button) It looks like this:
Code: [Select]
     else if( cmd == "deposit" )
   {
      if (!text) MessagePlayer( msg.C + " /deposit <Amount>", player);
      else if (!InPoly(player.Pos.x,player.Pos.y, -898.2357,-326.6091,-898.2196,-355.5072,-936.2309,-355.5205,-939.2854,-352.5587,-952.3001,-342.9138,-957.1079,-341.7898,-966.5380,-337.4671,-966.5401,-328.1766 )) MessagePlayer(  " Bankada olman gerek.", player );
      else if( !IsNum( text ) ) MessagePlayer(  "Numara kullan", player );
      else if ( stats[ player.ID ].Cash < text.tointeger() ) MessagePlayer( "Yeterli paran yok", player );
      else if ( text.tointeger() < 1 ) MessagePlayer( "Gecersiz miktar", player );
      else{
         DecCash( player, text.tointeger() );
         IncBank( player, text.tointeger() );
         MessagePlayer(  "Bankaya yatirdigin: " + text.tointeger() + "", player );
      }
   }
   
   else if( cmd == "withdraw" )
   {
      if (!text) MessagePlayer( " /withdraw <Amount>", player);
      else if (!InPoly(player.Pos.x,player.Pos.y, -898.2357,-326.6091,-898.2196,-355.5072,-936.2309,-355.5205,-939.2854,-352.5587,-952.3001,-342.9138,-957.1079,-341.7898,-966.5380,-337.4671,-966.5401,-328.1766 )) MessagePlayer(  " Bankada olman gerek.", player );
      else if( !IsNum( text ) ) MessagePlayer(  "Numara kullan", player );
      else if ( 0 > text.tointeger() ) MessagePlayer( "Gecersiz miktar", player );
      else if ( stats[ player.ID ].Bank < text.tointeger() ) MessagePlayer( "Yeterli para yok", player );
      else{
         DecBank( player, text.tointeger() );
         IncCash( player, text.tointeger() );
         MessagePlayer(  "Bankadan cektigin: " + text.tointeger() + "", player );
      }
   }
I am gamer, programmer and hacker. Try to find me!
xD

nippon

  • Newbie
  • Posts: 22

KrooB

  • Full Member
  • BEN TÜRKÜM
  • Posts: 117
Re: Mohamed's Account System
« Reply #36,  »

inside the server.cfg plugins names same as names in plugins file
We are his people !
Who can challange us ?

nippon

  • Newbie
  • Posts: 22

KrooB

  • Full Member
  • BEN TÜRKÜM
  • Posts: 117
Re: Mohamed's Account System
« Reply #38,  »
plugins folder to copy the names of the dll files and paste it into the server.cfg file

Like this





plugins announce04rel64 hashing04rel64 hashloader04rel64 ini04rel64 irc04rel64 libjavapluginrel64 mysql04rel64
We are his people !
Who can challange us ?

=RK=MarineForce

  • Sr. Member
  • WAR IS HELL!
  • Posts: 448
Try to UnderStand ME!

KrooB

  • Full Member
  • BEN TÜRKÜM
  • Posts: 117
Re: Mohamed's Account System
« Reply #40,  »Last edited
Code: [Select]
else if( cmd == "deposit" )
 {
  if (!text) MessagePlayer(  " /deposit <Amount>", player);
  else if (!InPoly(player.Pos.x,player.Pos.y, -898.2357,-326.6091,-898.2196,-355.5072,-936.2309,-355.5205,-939.2854,-352.5587,-952.3001,-342.9138,-957.1079,-341.7898,-966.5380,-337.4671,-966.5401,-328.1766 )) MessagePlayer(  " you need to be in the bank.", player );
  else if( !IsNum( text ) ) MessagePlayer(  "Use Numeric", player );
  else if ( stats[ player.ID ].Cash < text.tointeger() ) MessagePlayer( "you need money", player );
  else if ( text.tointeger() < 1 ) MessagePlayer( "Invalid amount", player );
  else{
   DecCash( player, text.tointeger() );
   IncBank( player, text.tointeger() );
   MessagePlayer(  ": " + text.tointeger() + "", player );
  }
 }
 
 else if( cmd == "withdraw" )
 {
  if (!text) MessagePlayer( " /withdraw <Amount>", player);
  else if (!InPoly(player.Pos.x,player.Pos.y, -898.2357,-326.6091,-898.2196,-355.5072,-936.2309,-355.5205,-939.2854,-352.5587,-952.3001,-342.9138,-957.1079,-341.7898,-966.5380,-337.4671,-966.5401,-328.1766 )) MessagePlayer(  " you need to be in the bank.", player );
  else if( !IsNum( text ) ) MessagePlayer(  "Use Numeric", player );
  else if ( 0 > text.tointeger() ) MessagePlayer( "Gecersiz miktar", player );
  else if ( stats[ player.ID ].Bank < text.tointeger() ) MessagePlayer( "Invalid amount", player );
  else{
   DecBank( player, text.tointeger() );
   IncCash( player, text.tointeger() );
   MessagePlayer(  ": " + text.tointeger() + "", player );
  }

Use this bro
We are his people !
Who can challange us ?

=RK=MarineForce

  • Sr. Member
  • WAR IS HELL!
  • Posts: 448
Re: Mohamed's Account System
« Reply #42,  »Last edited
How to cash which are in my bank

and if player kill any player him rgb will red if cop kill so not ok can u do it?
Re: Mohamed's Account System
« Reply #43,  »
Code: [Select]
  else if( cmd == "buyprop" )
        {
            local   lp = lastPickupPickedUp[ player.ID ],
                    pos, plp, lpid;
                   
            if( player.Vehicle ) return pMSG( "Error - Exit the vehicle first.", player );
            else if( lp == null ) return pMSG( "Error - There is no property around.", player );
            else
            {
                if( !FindPickup( lp ) ) return pMSG( "Error - There is no property around.", player );
                else
                {
                    plp = FindPickup( lp );
                    lpid = plp.ID;
                    pos = plp.Pos;
                   
                    if( !PlayerToPoint( player, 1, pos.x, pos.y, pos.z ) ) return pMSG( "Error - There is no property around.", player );
                    else if( prop[ lpid ].Owner != NO_OWNER_MSG ) return pMSG( "Error - This property is not forsale.", player );
                    else if( player.Cash < prop[ lpid ].Price ) return pMSG( "Error - Not enough money.", player );
                    else
                    {
                        pMSG( "Congratz! You bought " + RGB_GREY + prop[ lpid ].Name + RGB_BLUE + " for " + RGB_GREY + prop[ lpid ].Price + RGB_BLUE + " !", player );
                        player.Cash -= prop[ lpid ].Price;
                       
                        UpdateProperty( lpid, prop[ lpid ].Name, prop[ lpid ].Price, player.Name, NO_SHARING_MSG, NO_DESCRIPTION_MSG, pos.x, pos.y, pos.z, plp.World );
                        ReloadProperty( plp, PROP_MODEL_BOUGHT );
                    }
                }
            }
        }
       
        else if( cmd == "sellprop" )
        {
            local   lp = lastPickupPickedUp[ player.ID ],
                    pos, plp, lpid;
                   
            if( player.Vehicle ) return pMSG( "Error - Exit the vehicle first.", player );
            else if( lp == null ) return pMSG( "Error - There is no property around.", player );
            else
            {
                if( !FindPickup( lp ) ) return pMSG( "Error - There is no property around.", player );
                else
                {
                    plp = FindPickup( lp );
                    lpid = plp.ID;
                    pos = plp.Pos;
                   
                    if( !PlayerToPoint( player, 1, pos.x, pos.y, pos.z ) ) return pMSG( "Error - There is no property around.", player );
                    else if( prop[ lpid ].Owner != player.Name ) return pMSG( "Error - You don't own this property.", player );
                    else
                    {
                        pMSG( "Done! " + RGB_GREY + prop[ lpid ].Name + RGB_BLUE + " was sold for " + RGB_GREY + prop[ lpid ].Price + RGB_BLUE + " !", player );
                        player.Cash += prop[ lpid ].Price;
                        UpdateProperty( lpid, prop[ lpid ].Name, prop[ lpid ].Price, NO_OWNER_MSG, NO_SHARING_MSG, NO_DESCRIPTION_MSG, pos.x, pos.y, pos.z, plp.World );
                        ReloadProperty( plp, PROP_MODEL_FORSALE );
                    }
                }
            }
        }
       


bro how to convert this in your acccount cash system
Try to UnderStand ME!