how to dmg bot?
i tried but the bot was like player.Immunity = 3;
tks for answer.
i tried but the bot was like player.Immunity = 3;
tks for answer.
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: Decent_946 on Aug 05, 2017, 10:17 PMThanks and I will try.Quote from: Cool on Aug 05, 2017, 06:18 PMlooooooooooooooooooooool #RIP codingWhy don't you script him the code than ? Although his coding style is lengthy and this function won't work for the topic starter. but he has helped him by providing complete idea of how top ranks can be set.
Btw, @longhackmc , you could use SQL LIMIT function instead of the long way method.
Quote from: Rest on Aug 06, 2017, 03:43 AMQuotefunction ( player, pickup )Quoteif (checkpoint.ID == 14)And btw, you're defining every object created as "Boomb" which means if you pick up it twice(or more) in 3 seconds it will delete the last object you created during the 3 seconds.
With that i came up thisNewTimer( "deletebom", 3000,1,Boomb.ID);
function deletebom(objid)
FindObject(objid).Delete();
function onCheckpointEntered( player, checkpoint )
{
if (checkpoint.ID == 14)
{
Boomb <- CreateObject( 380, 1, Vector(-945.472, -343.736, 8.12693), 255 );
Boomb.RotateByEuler( Vector( 3.14159, 3.14159, 1.46159), 0);
NewTimer( "deletebom", 3000,1);
}
}
function deletebom()
{
Boomb.Delete()
}
function TopMoney()
{
local query = QuerySQL(DataBase, "SELECT * FROM Account" ), aa=0;
local a,b,c,e,f,dem;
if ( !query )
{
MessagerServer(RED+"No Account");
}
else {
while ( GetSQLColumnData( query, 0 ) != null )
{
local m = GetSQLColumnData( query, 5 );
if ( m > f )
{
dem = GetSQLColumnData( query, 5 );
m = f;
f = dem;
}
if ( f > e )
{
dem = f;
f = e;
e = dem;
}
if ( e > c )
{
dem = e;
e = c;
c = dem;
}
if ( c > b )
{
dem = c;
c = b;
b = dem;
}
if ( b > a )
{
dem = b;
b = a;
a = dem;
}
(GetSQLNextRow( query ) && ((a > b) && (b > c) && (c > e) && (e > f)));
aa++;
}
local top1 = QuerySQL(DataBase, "SELECT * FROM Account WHERE Bank='"+a+"'" );
local top2 = QuerySQL(DataBase, "SELECT * FROM Account WHERE Bank='"+b+"'" );
local top3 = QuerySQL(DataBase, "SELECT * FROM Account WHERE Bank='"+c+"'" );
local top4 = QuerySQL(DataBase, "SELECT * FROM Account WHERE Bank='"+e+"'" );
local top5 = QuerySQL(DataBase, "SELECT * FROM Account WHERE Bank='"+f+"'" );
Message(RED+"[Top 1]: [ "+GetSQLColumnData( top1, 0 )+": ] "+COLOR_VERDE+ "Money: [ "+a+" ]$");
Message(RED+"[Top 2]: [ "+GetSQLColumnData( top2, 0 )+": ] "+COLOR_VERDE+ "Money: [ "+b+" ]$");
Message(RED+"[Top 3]: [ "+GetSQLColumnData( top3, 0 )+": ] "+COLOR_VERDE+ "Money: [ "+c+" ]$");
Message(RED+"[Top 4]: [ "+GetSQLColumnData( top4, 0 )+": ] "+COLOR_VERDE+ "Money: [ "+e+" ]$");
Message(RED+"[Top 5]: [ "+GetSQLColumnData( top5, 0 )+": ] "+COLOR_VERDE+ "Money: [ "+f+" ]$");
}
}
it is functionif ( cmd == "top" )
{
TopMoney();
}
Quote from: ysc3839 on Jul 25, 2017, 03:38 PMYou should know C/C++ first.
Quote from: Anik on Jul 08, 2017, 06:23 AMFFS stop posting in wrong boards.
Quote from: KAKAN on Jul 07, 2017, 04:48 PMhttp://nehe.gamedev.net/article/msdn_virtualkey_codes/15009/Thanks but my idea is like "press any key to continue"
Quote from: Anik on Jul 04, 2017, 01:49 PMand Element list, where it?Quote from: longhackmc on Jul 04, 2017, 12:59 PMHow to use / addchildWatch the video
Give me an example
tks