Vice City: Multiplayer

Server Development => Scripting and Server Management => Snippet Showroom => Topic started by: Gito Baloch on Feb 27, 2020, 07:07 AM

Title: Some Commands That Will Help You In Every Server!
Post by: Gito Baloch on Feb 27, 2020, 07:07 AM
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);
}
Title: Re: Some Commands That Will Help You In Every Server!
Post by: 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.
Title: Re: Some Commands That Will Help You In Every Server!
Post by: Gito Baloch on Feb 27, 2020, 05:57 PM
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. :)
Title: Re: Some Commands That Will Help You In Every Server!
Post by: habi on Feb 28, 2020, 01:04 PM
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.
Title: Re: Some Commands That Will Help You In Every Server!
Post by: Gito Baloch on Feb 28, 2020, 03:55 PM
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
Title: Re: Some Commands That Will Help You In Every Server!
Post by: =RK=MarineForce on May 16, 2020, 01:35 AM
else if (cmd== "myuid")
{
MessagePlayer("[#ffffff]>> " + plr.Name + "[#00d9ff]'s UID: [#ffffff]" + plr.UID + ".",player);
}
Title: Re: Some Commands That Will Help You In Every Server!
Post by: Gito Baloch 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"
Title: Re: Some Commands That Will Help You In Every Server!
Post by: 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.
Title: Re: Some Commands That Will Help You In Every Server!
Post by: Gito Baloch 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?
Title: Re: Some Commands That Will Help You In Every Server!
Post by: 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

:edit:: Nevermind, I thought you meant the member variable.
Title: Re: Some Commands That Will Help You In Every Server!
Post by: 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??
Title: Re: Some Commands That Will Help You In Every Server!
Post by: Gito Baloch on May 21, 2020, 08:43 AM
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.
Title: Re: Some Commands That Will Help You In Every Server!
Post by: Eva on May 21, 2020, 03:17 PM
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);
 }
}
}
}
Title: Re: Some Commands That Will Help You In Every Server!
Post by: =RK=MarineForce on May 21, 2020, 08:44 PM
i m brain donor that i posted it. bump*

can't you change it to player? so brainless
Title: Re: Some Commands That Will Help You In Every Server!
Post by: Gito Baloch on May 22, 2020, 02:39 PM
we're not brianless if a newbie try to copy it he will definetly get error so that's the reason im saying hh.
Title: Re: Some Commands That Will Help You In Every Server!
Post by: =RK=MarineForce on May 23, 2020, 12:46 AM
Quote from: Gitobaloch on May 22, 2020, 02:39 PMwe're not brianless if a newbie try to copy it he will definetly get error so that's the reason im saying hh.

bruh huh? he's saying plr is not defined Lmao, how it will work?? he know it but he've to make some shits.
Title: Re: Some Commands That Will Help You In Every Server!
Post by: NicusorN5 on May 23, 2020, 02:34 PM
Holy f*, stop complaining about a missing variable.
Title: Re: Some Commands That Will Help You In Every Server!
Post by: Gito Baloch on May 24, 2020, 08:53 AM
yeah xDD