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

Messages - Mahmoud Tornado

#31
Quote from: =RK=MarineForce on Sep 08, 2018, 07:41 PMZeus its not working .

Off-Topic: Quote from Zues.
Just put it at the top of main.nut or any other file then use this in OnScriptLoad()
GUI_3D_Label.Create();
#32
Quote from: =RK=MarineForce on Sep 08, 2018, 08:29 AMfunction onPlayerKill( killer,player, reason, bodypart )
{
if ( (player.Skin == 83) ||  ( player.Skin ==84 ) ) Message(" [#CCFF00] [Cuban Team] Got a Score by Killing Haitian Player +1 );
if ( (player.Skin == 85) ||  ( player.Skin ==86 ) ) Message(" [#00cc00] [Haitian Team ] Got a Score by Killing Cuban Player +1 );
else{
Message( "[#1FFFF9]>> " + killer.Name + "[#FFF11B] killed [#FF0000] " + player.Name + "[#FFF11B] Weapon: [[#6BFF46]" + GetWeaponName( reason ) + "[#FFF11B]] [#FFF11B]Ping:[#1FFFF9][" + killer.Ping + "]" );
}
}

Here no score saving you just made a msg, so you can add this,
Cuban_Team_Score <- 0;
Haitian_Team_Score <- 0;

Then make it count in every kill like that.
if ( (player.Skin == 83) ||  ( player.Skin ==84 ) )
{
Message(" [#CCFF00] [Cuban Team] Got a Score by Killing Haitian Player +1" );
Cuban_Team_Score++;
}
if ( (player.Skin == 85) ||  ( player.Skin ==86 ) )
{
Message(" [#00cc00] [Haitian Team ] Got a Score by Killing Cuban Player +1" );
Haitian_Team_Score++;
}
#33
One thing i wanna say, in acmds you didn't add the commands you just added the admin rank so add cmds, you can make an const if u will make it like VIP, Moderator, Admin, etc.... So u can make it like that...

In main:
const VIP = "Any vip command. <admin lvl2>";
const Moderator = "Any Moderator command. <admin lvl3>";
etc.......

And in /acmds do this.
else if ( ( cmd == "acmds" ) || ( cmd == "admincmds" ) )
{
if( stats[ player.ID ].Log == false && pstats[ player.ID ].Reg == false ) MessagePlayer( "You Need Login or Register First.", player );
else if ( stats[ player.ID ].Level < 2 ) MessagePlayer( "You Are Not Authorized To use This Command", player );
{
if ( stats[ player.ID ].Level < 2 ) MessagePlayer("[#00FFFF]"+VIP+".", player);
if ( stats[ player.ID ].Level < 3 ) MessagePlayer("[#00FFFF]"+Moderator+".",player);
etc.......
}
}

This to get the list of commands or you can make it simply in msg.

Btw, Nice, and keep going!
#34
Quote from: [SC]Spartan on Sep 06, 2018, 06:01 PMAN ERROR HAS OCCURED [the index 'VARCHAR' does not exist]
I tried everything but I get this error someone could help me how to fix it? I would appreciate

local name = text.tointeger();
#35
Support / Map Size.
Sep 03, 2018, 01:38 AM
Hi all, i have a question here,
Can i add a big map in the server like san andreas.
As we all know that when we go into water we will get an invisible wall.
Can i delete it to add more big map?
Thanks.
#36
Support / Skins Ifp.
Aug 14, 2018, 08:34 PM
Hi All, i was adding an custom skin but i wanna add an ifp file <peds.ifp>.
It this possible or not? and if it, how?
#37
Quote from: =RK=MarineForce on Jul 29, 2018, 07:53 PM@Mahmoud Tornado can u save this into cmd i don't know here to add it at line

sell prop

player.Cash += prop[ lpid ].Price;

buy prop


player.Cash -= prop[ lpid ].Price;

how to convert this now
Just add local for prop price
local moy = prop[ lpid ].Price;
Then use this..
DecCash( player, moy ); To delete cash from the player.
and this IncCash( player, moy ); To add cash to the player.
#38
Snippet Showroom / Re: Basic Ban System
Jul 28, 2018, 08:29 PM
Quote from: =RK=MarineForce on Jul 19, 2018, 12:12 PMThanks i can use it on diego ban ur diego same but ur best :P i will check it on diego
Can anyone translate this to english, please?
#39
Quote from: =RK=MarineForce on Jul 20, 2018, 06:23 PMcan u give me givemoney cmd

else if ( cmd == "givemoney" )
{
   if ( !text ) MessagePlayer( "/"+cmd+" <Nick/id> <Money>", player );
   else
   {
      local
         plr = GetPlayer( GetTok( text, " ", 1 ) ),
         moy = GetTok( text, " ", 2);
      if ( !plr ) MessagePlayer( "Unknown Player..", player );
      else if ( !moy ) MessagePlayer("You must give an money.", player);
      else if ( !IsNum( moy ) ) MessagePlayer("Money must be numbers.", player);
      else
      {
         IncCash( plr, moy.tointeger(); )
         Message("[#00de00]Administration Command: [#fbf3f3]Admin "+player.Name+" Has give "+plr.Name+" $'"+moy+"'.");
}
}
}
#40
Quote from: =RK=MarineForce on Jul 20, 2018, 06:23 PM[noae][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][/noae]

bro how to convert this in your acccount cash system

Just use this.
[noae]local moy = prop[ lpid ].Price;
DecCash( player, moy );  //in buyprop cmd.
IncCash( player, moy ); //in sellprop cmd.
[/noae]
#41
Snippet Showroom / Re: Basic Ban System
Jul 18, 2018, 04:34 PM
Quote from: =RK=MarineForce on Jul 18, 2018, 03:59 PMits not show admin name exmaple banned by admin [varchar] reason hp hax
I don't think so, as i tested it.
if you wanna it like this " banned by admin [varchar] reason hp hax "
use this:
  Message( "[#00de00]Administration Command: [#fbf3f3]" + plr.Name + " Has Been Banned By " + player.Name + " for " + reason );

#42
Snippet Showroom / Re: GTA Vice-City: Cheats.
Jul 11, 2018, 10:09 PM
Quote from: MEGAMIND on Jul 11, 2018, 06:41 PM^ thats something i already made from one of my projects

https://forum.vc-mp.org/?topic=5051.msg36511#msg36511
I don't know if it was one of your projects or not but i'm trying to help anyone who need it.
And i got the idea from here.
Quote from: Mahmoud Tornado on Jul 11, 2018, 04:46 PMWas walking in the forum and saw this http://forum.vc-mp.org/?topic=3883.0 so i made some cheats for the game if someone need it.
#43
Snippet Showroom / Re: GTA Vice-City: Cheats.
Jul 11, 2018, 10:03 PM
Quote from: kennedyarz on Jul 11, 2018, 06:25 PM
Quote from: Mahmoud Tornado on Jul 11, 2018, 04:46 PMif ( text == "bigbang")
    {
    CreateExplosion( player.World, 0, player.Pos.x +10, player.Pos.y +10, player.Pos.z, -1, true );
    CreateExplosion( player.World, 0, player.Pos.x +10, player.Pos.y, player.Pos.z, -1, true );
    CreateExplosion( player.World, 0, player.Pos.x, player.Pos.y +10, player.Pos.z, -1, true );
    CreateExplosion( player.World, 0, player.Pos.x +7, player.Pos.y +7, player.Pos.z, -1, true );
    CreateExplosion( player.World, 0, player.Pos.x +7, player.Pos.y, player.Pos.z, -1, true );
    CreateExplosion( player.World, 0, player.Pos.x, player.Pos.y +7, player.Pos.z, -1, true );
    }

hahahaha what you do. my eyes bleed
Just "no comment" will be better for me.
#44
Snippet Showroom / Re: GTA Vice-City: Cheats.
Jul 11, 2018, 10:02 PM
Quote from: Athanatos on Jul 11, 2018, 05:09 PMlol no bigbang is something like:
if(text == "bigbang")
{
  for(local i =0 ; i < 1000; i++) if(FindVehicle(i) != null) FindVehicle(i).Kill();
}
Okay, but i didn't mean the vehs only in the command.
Anyway thanks, Edited
#45
Quote from: Xmair on Jul 11, 2018, 07:26 PMYou're guiding people wrong with that "word".
Okay.