Show Posts
|
Pages: [1] 2
|
1
|
Scripting / Script Help / Help
|
on: November 07, 2013, 03:52:21 pm
|
What is The Error ? Or How To Get The Highest Score ?
g_pPlayer <- FindLocalPlayer();
function onScriptLoad() { // Start local Pos = VectorScreen( ScreenWidth - 148, ScreenHeight - 348 ); local Size = ScreenSize( 130, 208 );
local Text0Pos = VectorScreen( 5, 5 ); local TextSize = ScreenSize( 100, 10 ); Window <- GUIWindow( Pos, Size, "Kings Of The Server" ); Text0 <- GUILabel( Text0Pos, TextSize, "" ); Text0.FontName = "Verdana"; Text0.FontSize = 10; Window.Colour = Colour(10, 10, 10); Window.Alpha = 150; Text0.TextColour = Colour( 255, 255, 255 ); AddGUILayer( Window ); Window.AddChild( Text0 ); // End }
function onClientRender() { local players = GetPlayers(); if (players == 0){ return false; }
players += 10;
local pPlayer = null, id = 0; while ( id < players ) { pPlayer = FindPlayer( id ); if ( pPlayer) { if(pPlayer.Score >= 500) { Text0.Text = "*System* "+pPlayer.Name+" >> [ King ]."; } } id += 1; } }
|
|
|
2
|
Scripting / Script Help / Help
|
on: August 07, 2013, 02:47:11 pm
|
I'm Tried To Make The The Object Appear To The Player When The Player Type /reconnect. But I Failed To Make It Appear. If Any One Have An Idea Please Tell me . Sorry For Bad English Thanks
|
|
|
3
|
Scripting / Script Releases / Example Of Gui
|
on: July 28, 2013, 12:42:42 am
|
Hey, This Script For Noobs Players Only . This Is An Example Of Gui Info By Timers >> function onScriptLoad() { local nPos = VectorScreen( 11, ScreenHeight - 25 ); local nSize = ScreenSize( 100,3 ); nText <- GUILabel( nPos, nSize, "" ); nText.FontName = "Cambria"; nText.FontSize = 12; AddGUILayer( nText );
nText.Text = "Example1"; nText.TextColour = Colour( 255, 255, 255 ); NewTimer( "Example2", 10000, 1 ); }
function Example2() { nText.Text = "Example2"; nText.TextColour = Colour( 255, 255, 255 ); NewTimer( "Example3", 10000, 1 ); }
function Example3() { nText.Text = "Example3"; nText.TextColour = Colour( 255, 255, 255 ); NewTimer( "Example4", 10000, 1 ); }
function Example4() { nText.Text = "Example4"; nText.TextColour = Colour( 255, 255, 255 ); NewTimer( "Example5", 10000, 1 ); }
function Example5() { nText.Text = "Example5"; nText.TextColour = Colour( 255, 255, 255 ); NewTimer( "Example1", 10000, 1 ); }
Change The ( Example ) To Any Text Do You Need, Like This > nText.Text = "Kill Any One xD";
|
|
|
4
|
Scripting / Script Help / < Help In Gui >
|
on: July 07, 2013, 10:44:59 am
|
I'm Trying To make A Gui For The Score Of All Red Team And Blue Team By Hash > > But The Hash Saves The Player Name Like This >>
Red.Inc( player.Name, 1 ); Red.Save( "Hashes/Red.hsh" ); What Should I Do To Make The Gui ? i Tried To Make This But The Server Said Error >>Red.Inc( 1 ); Red.Save( "Hashes/Red.hsh" );
|
|
|
5
|
Scripting / Script Help / Some Help
|
on: June 24, 2013, 09:08:37 am
|
How To Get The Highest Score In A Massage ? I Mean I Need To Write The Highest Score Player Name In A Massage .
|
|
|
7
|
Scripting / Script Help / Gui .
|
on: March 28, 2013, 09:52:06 pm
|
Hi All I'm Trying To Make The Words On The Gui Moving But It's Make An Error, Can Any One Help Me ?
|
|
|
8
|
Scripting / Script Help / VBS Error .
|
on: March 06, 2013, 05:57:36 pm
|
If Player Joined The Server With out Type /Login < pass > The player Kicked And The Server Crash . Why The Server Crash ? ?? Sorry For Bad English .
|
|
|
9
|
Scripting / Script Help / help
|
on: January 27, 2013, 08:10:19 pm
|
i need help in hashes saves money
i made one it saves the money but when player connect or join the player can't get his Money.
|
|
|
10
|
Scripting / Script Help / Help :'(
|
on: January 08, 2013, 03:15:25 pm
|
how to make function like this ?
function onPlayerExitServer( player ) { return 1; }
or
function onPlayerDisconnect( player ) { return 1; }
|
|
|
13
|
Scripting / Script Help / timer error :-\
|
on: November 05, 2012, 01:57:09 pm
|
i need it with timer .
what is the error ?
function onPlayerCommand( plr, cmd, text ) { if ( cmd == "fixit" ) { NewTimer( "fix", 1, 1); } return 1; }
function fix() { plr.Vehicle.Fix(); }
|
|
|
|