Mohamed's Account System

Started by Mohamed Boubekri, Feb 15, 2018, 06:13 PM

Previous topic - Next topic

Mohamed Boubekri

Quote from: =RK=MarineForce on Apr 25, 2018, 10:39 AMbro 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.
| What now ? | Not yet ! |
Morrocan:- [ 🇲🇦 ].

Mohamed Boubekri

Quote from: =RK=MarineForce on Apr 25, 2018, 10:44 AMThere 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.
| What now ? | Not yet ! |
Morrocan:- [ 🇲🇦 ].

=RK=MarineForce

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_

#33
I made this code deposit/withdraw

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 );
}
   }

umar4911

Quote from: KrooB on Jun 21, 2018, 04:38 AMI made this code deposit/withdraw

[spoiler]      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 );
      }
   }[/spoiler]
You the code option. (the hash(#) type looking button) It looks like this:
     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


KrOoB_


inside the server.cfg plugins names same as names in plugins file

nippon

So what do i need to do now?

KrOoB_

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

=RK=MarineForce

their is no cmd? deposit and withdraw

@Mohamed
Try to UnderStand ME!

KrOoB_

#40
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

=RK=MarineForce

Try to UnderStand ME!

=RK=MarineForce

#42
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?
Try to UnderStand ME!

=RK=MarineForce

[noae]  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 );
                    }
                }
            }
        }
       
[/noae]

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

=RK=MarineForce

can u give me givemoney cmd
Try to UnderStand ME!