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()
Code Select
GUI_3D_Label.Create();
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 MenuQuote from: =RK=MarineForce on Sep 08, 2018, 07:41 PMZeus its not working .Off-Topic: Quote from Zues.
GUI_3D_Label.Create();
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 + "]" );
}
}
Cuban_Team_Score <- 0;
Haitian_Team_Score <- 0;
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++;
}
const VIP = "Any vip command. <admin lvl2>";
const Moderator = "Any Moderator command. <admin lvl3>";
etc.......
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.......
}
}
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();
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 lineJust add local for prop price
sell prop
player.Cash += prop[ lpid ].Price;
buy prop
player.Cash -= prop[ lpid ].Price;
how to convert this now
local moy = prop[ lpid ].Price;
DecCash( player, moy );
To delete cash from the player.IncCash( player, moy );
To add cash to the player.
Quote from: =RK=MarineForce on Jul 19, 2018, 12:12 PMThanks i can use it on diego ban ur diego same but ur best i will check it on diegoCan anyone translate this to english, please?
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+"'.");
}
}
}
Quote from: =RK=MarineForce on Jul 20, 2018, 06:23 PM[noae][noae]else if( cmd == "buyprop" )
[/noae][/noae]
{
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
local moy = prop[ lpid ].Price;
DecCash( player, moy ); //in buyprop cmd.
IncCash( player, moy ); //in sellprop cmd.
[/noae]
Quote from: =RK=MarineForce on Jul 18, 2018, 03:59 PMits not show admin name exmaple banned by admin [varchar] reason hp haxI don't think so, as i tested it.
Message( "[#00de00]Administration Command: [#fbf3f3]" + plr.Name + " Has Been Banned By " + player.Name + " for " + reason );
Quote from: MEGAMIND on Jul 11, 2018, 06:41 PM^ thats something i already made from one of my projectsI don't know if it was one of your projects or not but i'm trying to help anyone who need it.
https://forum.vc-mp.org/?topic=5051.msg36511#msg36511
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.
Quote from: kennedyarz on Jul 11, 2018, 06:25 PMJust "no comment" will be better for me.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
Quote from: Athanatos on Jul 11, 2018, 05:09 PMlol no bigbang is something like:Okay, but i didn't mean the vehs only in the command.if(text == "bigbang")
{
for(local i =0 ; i < 1000; i++) if(FindVehicle(i) != null) FindVehicle(i).Kill();
}
Quote from: Xmair on Jul 11, 2018, 07:26 PMYou're guiding people wrong with that "word".Okay.