Some Commands That Will Help You In Every Server!

Started by Gito Baloch, Feb 27, 2020, 07:07 AM

Previous topic - Next topic

Gito Baloch

else if (cmd== "fps")
{
MessagePlayer("[#ffffff] " + player.Name + " [#ffff00]FPS " + player.FPS +  "[#ffff00].",player);
}

else if (cmd== "ping")
{
MessagePlayer("[#ffffff] " + player.Name + " [#ffff00]PING " + player.Ping +  "[#ffff00].",player);
}

else if (cmd== "myip")
{
MessagePlayer("[#ffffff] " + player.Name + " [#ffff00]IP " + player.IP +  "[#ffff00].",player);
}

else if (cmd== "score")
{
MessagePlayer("[#ffffff] " + player.Name + " [#ffff00]SCORE " + player.Score +  "[#ffff00].",player);
}

else if (cmd== "cash")
{
MessagePlayer("[#ffffff] " + player.Name + " [#ffff00]Cash " + player.Cash +  "[#ffff00].",player);
}

else if (cmd== "skin")
{
MessagePlayer("[#ffffff] " + player.Name + " [#ffff00]Skin " + player.Skin +  "[#ffff00].",player);


else if (cmd== "myinfo")
{
MessagePlayer("[#ffffff] " + player.Name + " [#ffff00]Info - FPS " + player.FPS +  " PING  " + player.Ping +  " IP " + player.IP +  "CASH" + player.Cash +  "SKIN " + player.Skin +  "SCORE " + player.Score +  "[#ffff00].",player);
}
Programming is the language I speak, the world I shape, and the future I code

MatheuS

Quote from: Gitobaloch on Feb 27, 2020, 07:07 AMelse if (cmd== "fps")
{
MessagePlayer("[#ffffff] " + player.Name + " [#ffff00]FPS " + player.Fps +  "[#ffff00].",player);
}

else if (cmd== "ping")
{
MessagePlayer("[#ffffff] " + player.Name + " [#ffff00]PING " + player.Ping +  "[#ffff00].",player);
}

else if (cmd== "myip")
{
MessagePlayer("[#ffffff] " + player.Name + " [#ffff00]IP " + player.IP +  "[#ffff00].",player);
}

else if (cmd== "score")
{
MessagePlayer("[#ffffff] " + player.Name + " [#ffff00]SCORE " + player.Score +  "[#ffff00].",player);
}

else if (cmd== "cash")
{
MessagePlayer("[#ffffff] " + player.Name + " [#ffff00]Cash " + player.Cash +  "[#ffff00].",player);
}

else if (cmd== "skin")
{
MessagePlayer("[#ffffff] " + player.Name + " [#ffff00]Skin " + player.Skin +  "[#ffff00].",player);


else if (cmd== "myinfo")
{
MessagePlayer("[#ffffff] " + player.Name + " [#ffff00]Info - FPS " + player.Fps +  " PING  " + player.Ping +  " IP " + player.IP +  "CASH" + player.Cash +  "SKIN " + player.Skin +  "SCORE " + player.Score +  "[#ffff00].",player);
}

Very simple and you can improve it.
if( !sucess ) tryAgain();
Thanks to the VCMP community. It was the happiest period of my life.

Gito Baloch

Quote from: MatheuS on Feb 27, 2020, 10:10 AM
Quote from: Gitobaloch on Feb 27, 2020, 07:07 AMelse if (cmd== "fps")
{
MessagePlayer("[#ffffff] " + player.Name + " [#ffff00]FPS " + player.Fps +  "[#ffff00].",player);
}

else if (cmd== "ping")
{
MessagePlayer("[#ffffff] " + player.Name + " [#ffff00]PING " + player.Ping +  "[#ffff00].",player);
}

else if (cmd== "myip")
{
MessagePlayer("[#ffffff] " + player.Name + " [#ffff00]IP " + player.IP +  "[#ffff00].",player);
}

else if (cmd== "score")
{
MessagePlayer("[#ffffff] " + player.Name + " [#ffff00]SCORE " + player.Score +  "[#ffff00].",player);
}

else if (cmd== "cash")
{
MessagePlayer("[#ffffff] " + player.Name + " [#ffff00]Cash " + player.Cash +  "[#ffff00].",player);
}

else if (cmd== "skin")
{
MessagePlayer("[#ffffff] " + player.Name + " [#ffff00]Skin " + player.Skin +  "[#ffff00].",player);


else if (cmd== "myinfo")
{
MessagePlayer("[#ffffff] " + player.Name + " [#ffff00]Info - FPS " + player.Fps +  " PING  " + player.Ping +  " IP " + player.IP +  "CASH" + player.Cash +  "SKIN " + player.Skin +  "SCORE " + player.Score +  "[#ffff00].",player);
}

Very simple and you can improve it.

Thank you so much. :)
Programming is the language I speak, the world I shape, and the future I code

habi

to see the font colours, i have used it in my server. first it did not work :o
use player.FPS in those commands. and some spaces between skin, cash etc.
beginner nice work man.

Gito Baloch

Quote from: habi on Feb 28, 2020, 01:04 PMto see the font colours, i have used it in my server. first it did not work :o
use player.FPS in those commands. and some spaces between skin, cash etc.
beginner nice work man.

Thank you so much but im really sorry for bug
Programming is the language I speak, the world I shape, and the future I code

=RK=MarineForce

else if (cmd== "myuid")
{
MessagePlayer("[#ffffff]>> " + plr.Name + "[#00d9ff]'s UID: [#ffffff]" + plr.UID + ".",player);
}

Gito Baloch

Quote from: =RK=MarineForce on May 16, 2020, 01:35 AMelse if (cmd== "myuid")
{
MessagePlayer("[#ffffff]>> " + plr.Name + "[#00d9ff]'s UID: [#ffffff]" + plr.UID + ".",player);
}
bruh this will not work :D because of "plr.UID"
Programming is the language I speak, the world I shape, and the future I code

Xmair

Quote from: Gitobaloch on May 18, 2020, 05:36 AM
Quote from: =RK=MarineForce on May 16, 2020, 01:35 AMelse if (cmd== "myuid")
{
MessagePlayer("[#ffffff]>> " + plr.Name + "[#00d9ff]'s UID: [#ffffff]" + plr.UID + ".",player);
}
bruh this will not work :D because of "plr.UID"
It will.

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

Gito Baloch

Quote from: Xmair on May 18, 2020, 11:40 AM
Quote from: Gitobaloch on May 18, 2020, 05:36 AM
Quote from: =RK=MarineForce on May 16, 2020, 01:35 AMelse if (cmd== "myuid")
{
MessagePlayer("[#ffffff]>> " + plr.Name + "[#00d9ff]'s UID: [#ffffff]" + plr.UID + ".",player);
}
bruh this will not work :D because of "plr.UID"
It will.
sasty nashe kiye hain kia?
Programming is the language I speak, the world I shape, and the future I code

Xmair

Quote from: Gitobaloch on May 20, 2020, 05:46 PM
Quote from: Xmair on May 18, 2020, 11:40 AM
Quote from: Gitobaloch on May 18, 2020, 05:36 AM
Quote from: =RK=MarineForce on May 16, 2020, 01:35 AMelse if (cmd== "myuid")
{
MessagePlayer("[#ffffff]>> " + plr.Name + "[#00d9ff]'s UID: [#ffffff]" + plr.UID + ".",player);
}
bruh this will not work :D because of "plr.UID"
It will.
sasty nashe kiye hain kia?
.UID is an alias for .UniqueID

:edit:: Nevermind, I thought you meant the member variable.

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

Mursaleen5544

Quote from: Xmair on May 20, 2020, 06:42 PM
Quote from: Gitobaloch on May 20, 2020, 05:46 PM
Quote from: Xmair on May 18, 2020, 11:40 AM
Quote from: Gitobaloch on May 18, 2020, 05:36 AM
Quote from: =RK=MarineForce on May 16, 2020, 01:35 AMelse if (cmd== "myuid")
{
MessagePlayer("[#ffffff]>> " + plr.Name + "[#00d9ff]'s UID: [#ffffff]" + plr.UID + ".",player);
}
bruh this will not work :D because of "plr.UID"
It will.
sasty nashe kiye hain kia?
.UID is an alias for .UniqueID
plr is not defined Lmao, how it will work??

Gito Baloch

Quote from: Mursaleen5544 on May 20, 2020, 07:27 PM
Quote from: Xmair on May 20, 2020, 06:42 PM
Quote from: Gitobaloch on May 20, 2020, 05:46 PM
Quote from: Xmair on May 18, 2020, 11:40 AM
Quote from: Gitobaloch on May 18, 2020, 05:36 AM
Quote from: =RK=MarineForce on May 16, 2020, 01:35 AMelse if (cmd== "myuid")
{
MessagePlayer("[#ffffff]>> " + plr.Name + "[#00d9ff]'s UID: [#ffffff]" + plr.UID + ".",player);
}
bruh this will not work :D because of "plr.UID"
It will.
sasty nashe kiye hain kia?
.UID is an alias for .UniqueID
plr is not defined Lmao, how it will work??
that's what im trying to say bro XD.
Programming is the language I speak, the world I shape, and the future I code

Eva

modify according your stats sytem

else if (cmd=="uid")
{
if ( stats[player.ID].Level >= 1 )
{
 if (!text) MessagePlayer("[#db0000]Usage :[#FFFFFF] /uid <Name/ID>",player);
 else
 {
 local plr = FindPlayer (text);
 if (!plr) MessagePlayer("[#db0000]Unknown Player",player);
 else {
 MessagePlayer("[#529AE3]--> [#FFFFFF]"+plr.Name+"[#529AE3] 's UID : [#FFFFFF]"+plr.UID+".",player);
 }
}
}
}

=RK=MarineForce

i m brain donor that i posted it. bump*

can't you change it to player? so brainless

Gito Baloch

#14
we're not brianless if a newbie try to copy it he will definetly get error so that's the reason im saying hh.
Programming is the language I speak, the world I shape, and the future I code