[good Luck]

Started by =RK=MarineForce, Jan 24, 2018, 10:56 AM

Previous topic - Next topic

=RK=MarineForce

Holla Players :
                       Credits ( =RK=MarineForce || =TSS=Ali_Ahmed )
i m added in main.nuts all. i hope its work for you
add this on script load

g <- false;
 gate2 <- CreateObject( 3685, 1, 384.108, -505.87, 9.65089, 255 );
i m not make this object
const RED = "[#FF0000]";
const PINK = "[#FF1493]";
const ORANGE = "[#FF8C00]";
const YELLOW = "[#FFD700]";
const PURPLE = "[#9400D3]";
const LGREEN = "[#32CD32]";
const GREEN = "[#008000]";
const DGREEN = "[#006400]";
const BLUE = "[#0000FF]";
const DBLUE = "[#00008B]";
const LBLUE  = "[#1A6EFF]";
const BROWN = "[#8B4513]";
const WHITE = "[#FFFFFF]";


function arresttime(p)
{
local player = FindPlayer(p);
if (plr)
plr.Pos = Vector(394.654, -495.409, 10.8694);
MessagePlayer( RED+"**You have been released from jail",plr );
}

add this on main.nut on player command

else if (cmd == "arrest") {
    if( !text ) MessagePlayer("[#ff0000]Error - /"+cmd+" Name/id", player );
    else if ( (player.Skin == 1) ||  ( player.Skin ==225 ) ) {
        local plr = text != "" ? IsNum( text ) ? FindPlayer( text.tointeger() ) : FindPlayer( text ) : player;
        if( !plr )MessagePlayer("Error - Unknown player", player );
        else if ( plr.WantedLevel == 1 ) return MessagePlayer( RED+" This Player is Not Wanted",player );
            else if ( DistanceFromPoint( player.Pos.x, player.Pos.y , plr.Pos.x, plr.Pos.y ) < 5 ) {         //DistanceFromPoint( float x1, float y1, float x2, float y2 )
                plr.Pos = Vector(  392.96, -506.26, 9.39 );
                NewTimer( "arresttime", 30000, 1, plr.ID );;
                MessagePlayer( RED+"You will be released from jail in thirty seconds",plr );
                Message( RED+"Police "+player.Name+GREEN+" has Arrested "+LGREEN+plr.Name );
                }
            else MessagePlayer(""+ plr.Name +" is far away.", player );
            }
            else MessagePlayer( " You need to be a cop",player );
        }

else if (cmd == "unarrest")
{
if ( (player.Skin == 1) ||  ( player.Skin ==225 ) )
{
if( !text ) MessagePlayer(" [#00ff00] Error - /"+cmd+" Name/id", player );
 local plr = text != "" ? IsNum( text ) ? FindPlayer( text.tointeger() ) : FindPlayer( text ) : player;
  if( !plr )MessagePlayer("Error - Unknown player", player );
plr.Pos = Vector(384.157, -506.481, 9.39822); Message(" [#ff0000]VCPD " + player.Name + " Relaise  " + plr.Name + "  From Jail");
}
else MessagePlayer(" [#00ff00] You need be in cop to use this cmd  ", player);
}

 
else if (cmd == "sus")
{
if ( (player.Skin == 1) ||  ( player.Skin ==225 ) )
{
if( !text ) MessagePlayer(" [#00ff00] Error - /"+cmd+" Name/id", player );
 local plr = text != "" ? IsNum( text ) ? FindPlayer( text.tointeger() ) : FindPlayer( text ) : player;
 if( !plr )MessagePlayer("Error - Unknown player", player );
 else if ( DistanceFromPoint( player.Pos.x, player.Pos.y , plr.Pos.x, plr.Pos.y ) < 250 ) {         //DistanceFromPoint( float x1, float y1, float x2, float y2 )
 Message(" [#00ffff] VCPD " + player.Name + " Suspected " + plr.Name + " ");
 Message(" (megaphone) [#0000ff] " + plr.Name + " surrender & we will open fire on you ");
 plr.SetRobskills(player,GetRobskills(player)+1);
 gate2.MoveTo(Vector(384.108, -505.87, 9.65089), 2500 );
 }
 else MessagePlayer(""+ plr.Name +" is far away.", player );
 }
 else MessagePlayer(" [#00ff00] You need be in cop to use this cmd  ", player);
}


else if ( cmd == "sur")
{
 player.IsFrozen = true;
 player.SetAnim(0,161);
Message(" [#0000ff] " + player.Name + " is surrender ");
}


you can give me cops and server script Plese,
i wanted,
:D :P WTF.

i wanted in all server yatch move lighthouse to Downtown

=RK=MarineForce

Updated Thankx Ali_Ahmed

haxerx

Nice to see some efforts , but If you have copied someone script so please don't forgot to give them credits :)
Who will have respite to bow their heads. Prostrations, of their own accord shall trickle from the very eyes. We will go out in Yasrib, bereft of familiar company. And deliberately lose our way in streets. Having reached there, we shall not return. Be it that looking for us, people grow weary

umar4911

Where wantedlevel??
plr.WantedLevel

NicusorN5

Quote from: haxerx on Jan 25, 2018, 03:10 PMNice to see some efforts , but If you have copied someone script so please don't forgot to give them credits :)
Seriously, ppl that copy scripts/codes and says that it's theirs, they sould die in pain.

NicusorN5

Quote from: umar4911 on Jan 25, 2018, 04:47 PMWhere wantedlevel??
plr.WantedLevel

 player.WantedLevel is a simple int value, so you can use it as:
player.WantedLevel = 1 //where 1 can be any number.

Retard

I don't know guy's cause i just helped him to make it for his server + it's taken from ksna's cops and robbers and modified by me

=RK=MarineForce

Ali_Ahmed make it is

i m fix some things and add some things so i m not credits?

=RK=MarineForce

player.WantedLevel = 1 //where 1 can be any number.

Thankx but its work nice?

Retard

I'm not saying that I'm just saying I made it for you so my name shouldn't be in credits

!

What if someone reconnect?
???

Discord: zeus#5155

Retard

Only one thing will be left
Make a Database and store the info in that.

=RK=MarineForce

Can u Give me Plese. Proper Cop System? and commands

=RK=MarineForce

#13
Updated.

else if (cmd == "arrest") {
    if( !text ) MessagePlayer("[#ff0000]Error - /"+cmd+" Name/id", player );
    else if ( (player.Skin == 1) ||  ( player.Skin ==225 ) ) {
        local plr = text != "" ? IsNum( text ) ? FindPlayer( text.tointeger() ) : FindPlayer( text ) : player;
        if( !plr )MessagePlayer("Error - Unknown player", player );
        else if ( plr.WantedLevel == 1 ) return MessagePlayer( RED+" This Player is Not Wanted",player );
            else if ( DistanceFromPoint( player.Pos.x, player.Pos.y , plr.Pos.x, plr.Pos.y ) < 5 ) {         //DistanceFromPoint( float x1, float y1, float x2, float y2 )
                plr.Pos = Vector(  380.759,-504.493, 9.39562 );
                NewTimer( "arresttime", 30000, 1, plr.ID );
           
 
                Message( RED+"Cop "+player.Name+GREEN+" has Arrested "+LGREEN+plr.Name );
     MessagePlayer( RED+"You will be released from jail in thirty seconds",plr );
gate2.MoveTo(Vector(384.108, -505.87, 9.65089), 2500 );
               
                }
            else MessagePlayer(""+ plr.Name +" is far away.", player );
            }
            else MessagePlayer( " You need to be a cop",player );
        }

function arresttime(p)
{
local plr = FindPlayer(p);
if (plr)
gate2.MoveTo(Vector(386.61, -503.117, 9.39561), 2500 );
MessagePlayer( RED+"**You have been released from jail",plr );
}

Added gate move when player released from jail . and if u type /arrest jack gate will move too

how to add more skins  like this  else if ( (player.Skin == 1) ||  ( player.Skin ==225 ) ) { but it take only 2 skins ..

how to change player RGB WHEn take pickup

can u give me giveheal in medic skin plz cmd and function

GoldRick