VC:MP Small And Good Commands For Deatmach/Roleplay !

Started by [M4]Shikri_M4, Dec 23, 2022, 09:03 PM

Previous topic - Next topic

[M4]Shikri_M4

Hello Guys :) I Maked Small Codes, I Hope If You Added İt To Your Server ;D!
Here İs The Code:

[noae]if ( cmd == "fps" )
{
if ( !text )
{
MessagePlayer( "[#ff0000][FPS]: [#ffffff]Your Fps Is: [#00ff00]" + player.FPS + "", player );
Announce( "You Can Search Other Members !", player,1 );
}
else
{
local plr = FindPlayer(text);
MessagePlayer( "[#ff0000][FPS]: [#ffffff]" + player.Name + " Fps Is: [#00ff00]" + plr.FPS + "", player );
}
}

if ( cmd == "ip" )
{
if ( !text )
{
MessagePlayer( "[#ff0000][IP]: [#ffffff]Your Ip Is: [#00ff00]" + player.IP + "", player );
Announce( "You Can Search Other Members !", player,1 );
}
else
{
local plr = FindPlayer(text);
MessagePlayer( "[#ff0000][IP]: [#ffffff]" + player.Name + " Ip Is: [#00ff00]" + plr.IP + "", player );
}
}

if ( cmd == "ping" )
{
if ( !text )
{
MessagePlayer( "[#ff0000][PING]: [#ffffff]Your Ping Is: [#00ff00]" + player.Ping + "", player );
Announce( "You Can Search Other Members !", player,1 );
}
else
{
local plr = FindPlayer(text);
MessagePlayer( "[#ff0000][PING]: [#ffffff]" + player.Name + " Ping Is: [#00ff00]" + plr.Ping + "", player );
}
}

if ( cmd == "uid" )
{
if ( !text )
{
MessagePlayer( "[#ff0000][UID-1]: [#ffffff]Your UID-1 Is: [#00ff00]" + player.UID + "", player );
Announce( "You Can Search Other Members !", player,1 );
}
else
{
local plr = FindPlayer(text);
MessagePlayer( "[#ff0000][UID]: [#ffffff]" + player.Name + " Uid Is: [#00ff00]" + plr.UID + "", player );
}
}

if ( cmd == "uid2" )
{
if ( !text )
{
MessagePlayer( "[#ff0000][UID-2]: [#ffffff]Your UID-2 Is: [#00ff00]" + player.UID2 + "", player );
Announce( "You Can Search Other Members !", player,1 );
}
else
{
local plr = FindPlayer(text);
MessagePlayer( "[#ff0000][UID-2]: [#ffffff]" + player.Name + " UID-2 Is: [#00ff00]" + plr.UID2 + "", player );
}
}

if ( cmd == "skininfo" )
{
if ( !text )
{
MessagePlayer( "[#ff0000][SKIN]: [#ffffff]Your Skin ID Is: [#00ff00]" + player.Skin + "", player );
Announce( "You Can Search Other Members !", player,1 );
}
else
{
local plr = FindPlayer(text);
MessagePlayer( "[#ff0000][SKIN]: [#ffffff]" + player.Name + " Skin ID Is: [#00ff00]" + plr.Skin + "", player );
}
}

if ( cmd == "cash" )
{
if ( !text )
{
MessagePlayer( "[#ff0000][CASH]: [#ffffff]Your Cash Is: [#00ff00]" + player.Cash + "", player );
Announce( "You Can Search Other Members !", player,1 );
}
else
{
local plr = FindPlayer(text);
MessagePlayer( "[#ff0000][CASH]: [#ffffff]" + player.Name + " Cash Is: [#00ff00]" + plr.Cash + "", player );
}
}

if ( cmd == "wantedlevel" )
{
if ( !text )
{
MessagePlayer( "[#ff0000][WANTED-LEVEL]: [#ffffff]Your Wanted Level Is: [#00ff00]" + player.WantedLevel + "", player );
Announce( "You Can Search Other Members !", player,1 );
}
else
{
local plr = FindPlayer(text);
MessagePlayer( "[#ff0000][WANTED-LEVEL]: [#ffffff]" + player.Name + " Wanted Level Is: [#00ff00]" + plr.WantedLevel + "", player );
}
}

if ( cmd == "team" )
{
if ( !text )
{
MessagePlayer( "[#ff0000][TEAM]: [#ffffff]Your Team Is: [#00ff00]" + player.Team + "", player );
Announce( "You Can Search Other Members !", player,1 );
}
else
{
local plr = FindPlayer(text);
MessagePlayer( "[#ff0000][TEAM]: [#ffffff]" + player.Name + " Team Is: [#00ff00]" + plr.Team + "", player );
}
}

if ( cmd == "id" )
{
if ( !text )
{
MessagePlayer( "[#ff0000][ID]: [#ffffff]Your ID Is: [#00ff00]" + player.Team + "", player );
Announce( "You Can Search Other Members !", player,1 );
}
else
{
local plr = FindPlayer(text);
MessagePlayer( "[#ff0000][ID]: [#ffffff]" + player.Name + " Id Is: [#00ff00]" + plr.ID + "", player );
}
}

if ( cmd == "vehicle" )
{
if ( !player.Vehicle )
{
MessagePlayer( "[#ff0000][Error]: [#ffffff]You Are Not In Vehicle !", player );
return false;
}
if ( !text )
{
MessagePlayer( "[#ff0000][ID]: [#ffffff]Your Vehicle ID/Model Is: [#ffff00]Id: [#00ff00]" + player.Vehicle.ID + " || [#ffff00]Model: [#00ff00]" + player.Vehicle.Model + "", player );
Announce( "You Can Search Other Members !", player,1 );
}
else
{
local plr = FindPlayer(text);
if ( !plr.Vehicle )
{
MessagePlayer( "[#ff0000][Error]: [#ffffff]" + plr.Name + " Is Not In Vehicle !", player );
return false;
}
local plr = FindPlayer(text);
MessagePlayer( "[#ff0000][ID]: [#ffffff]" + plr.Name + " Vehicle ID/Model Is: [#ffff00]Id: [#00ff00]" + player.Vehicle.ID + " || [#ffff00]Model: [#00ff00]" + player.Vehicle.Model + "", player );
}
}
[/noae]

Good Luck ;D!