Vice City: Multiplayer

Server Development => Scripting and Server Management => Script Showroom => Topic started by: Ksna on Jul 23, 2015, 10:37 AM

Title: Ksna's cops and robbers
Post by: Ksna on Jul 23, 2015, 10:37 AM
Credits: Ksna
Thanks Gudio , Fuzzie( Database), Hellboy & Blacklight & Cyber ( For making first Vccnr)
This topic will be updated as below :

v1.0 - Basic , v1.1 - Bugs removed and Script will be easy to understand   , v1.2 -  Increase commands like cars, props  , v1.3 -  Some good custom Vehicles and stuff , v1.4  Echo + Roleplay ++, v1.5 End of Updates

Updates will take long time.

This script is made from scratch. Not from leaked vccnr.

Helpers : Force [ Get player] , MDM [admins ] , Crystal [Ann]

About Script :
I've tried my best to keep the use of Queries as much low as i can to avoid lag. No registersystem and if level becomes -1 then he is banned. If wanted level becomes negative then it means that he is arrested player.

I'm sure there will be many bugs that is why v1.1 will be bug free.  Suggestions improve this script in next update

Download (http://www.filedropper.com/main_1)
 Megafileupload [/ur]
[url=https://www.metascan-online.com/en/scanresult/file/bdf50916c9bf4cda83f4841a87013aaa]File Scan (http://www.megafileupload.com/926u/main.nut)
Title: Re: Ksna's cops and robbers
Post by: Stormeus on Jul 23, 2015, 10:37 AM
404 error on the download.
Title: Re: Ksna's cops and robbers
Post by: Ksna on Jul 23, 2015, 10:42 AM
Link Updated
Title: Re: Ksna's cops and robbers
Post by: [VSS]Shawn on Jul 23, 2015, 10:50 AM
link doesn't work
Title: Re: Ksna's cops and robbers
Post by: kokia on Jul 23, 2015, 10:50 AM
thanks i was waiting for this
Title: Re: Ksna's cops and robbers
Post by: kokia on Jul 23, 2015, 10:50 AM
@[VSS]Shawn the link works
Title: Re: Ksna's cops and robbers
Post by: [VSS]Shawn on Jul 23, 2015, 10:59 AM
k sorry but i have loaded mysql04rel32 plugin but it give error on db of mysql
Title: Re: Ksna's cops and robbers
Post by: Ksna on Jul 23, 2015, 11:22 AM
For Local hosting
Have you downloaded Xampp or wamp? If yes then make a database in http://localhost/phpmyadmin then go to SQL tab and paste the code in 2nd line of Script in it and execute then database will be created
Title: Re: Ksna's cops and robbers
Post by: Awesome_Boy on Jul 23, 2015, 11:31 AM
Ksna Realy You Think Its A VCCNr. its not a vccnr.  it is,  "After being removed from the gutter smell the odor remains"
If You Want A VCCNR Script a new one.
Title: Re: Ksna's cops and robbers
Post by: KingOfVC on Jul 23, 2015, 11:39 AM
lol, you just grab some code and put it together
Title: Re: Ksna's cops and robbers
Post by: Ksna on Jul 23, 2015, 11:53 AM
Quote from: KingOfVC on Jul 23, 2015, 11:39 AMlol, you just grab some code and put it together
I said its not VCCNR and that is why it wont contain hitman, taxi, ...
It contains only cop and robber commands even with seeing cops and robbers commands if you cannot make edits to this , this script is nothing .
This script is not ready to host . you have to remove some commands and edit some random useless commands which you think are not necessary.
Title: Re: Ksna's cops and robbers
Post by: [VSS]Shawn on Jul 23, 2015, 12:10 PM
it not the fully vccnr he just give some example he cannot affort u full vccnr :P
Title: Re: Ksna's cops and robbers
Post by: [VSS]Shawn on Jul 23, 2015, 12:12 PM
sorry for spam but this is error

error in mysql connection failed make sure connection details are correct


 :-\
Title: Re: Ksna's cops and robbers
Post by: Thijn on Jul 23, 2015, 12:19 PM
Quote from: [VSS]Shawn on Jul 23, 2015, 12:12 PMsorry for spam but this is error

error in mysql connection failed make sure connection details are correct


 :-\
What do you think that error means?
Title: Re: Ksna's cops and robbers
Post by: [VSS]Shawn on Jul 23, 2015, 12:35 PM
i dont know :P
Title: Re: Ksna's cops and robbers
Post by: Thijn on Jul 23, 2015, 12:37 PM
Quote from: [VSS]Shawn on Jul 23, 2015, 12:35 PMi dont know :P
Then go away and come back when your brain has developed.
Title: Re: Ksna's cops and robbers
Post by: Ksna on Jul 23, 2015, 12:41 PM
https://www.youtube.com/watch?v=d89esg2bzuA

and default password for wamp and xaamp is blank i.e " "
Title: Re: Ksna's cops and robbers
Post by: [VSS]Shawn on Jul 23, 2015, 12:46 PM
yaar Thijn I dont know about Fuzzie Account System and Ksna Youtube is block in pak
Title: Re: Ksna's cops and robbers
Post by: Ksna on Jul 23, 2015, 12:57 PM
try hotspot shield or some chrome addons
Title: Re: Ksna's cops and robbers
Post by: KAKAN on Jul 23, 2015, 01:35 PM
Nice!
Title: Re: Ksna's cops and robbers
Post by: NE.DiamondBlue on Jul 23, 2015, 03:04 PM
Quote from: Thijn on Jul 23, 2015, 12:19 PM
Quote from: [VSS]Shawn on Jul 23, 2015, 12:12 PMsorry for spam but this is error

error in mysql connection failed make sure connection details are correct


 :-\
What do you think that error means?
Same error
i am also not understanding as  i saw this error first time
Title: Re: Ksna's cops and robbers
Post by: . on Jul 23, 2015, 03:09 PM
Quote from: NE.DiamondBlue on Jul 23, 2015, 03:04 PM
Quote from: Thijn on Jul 23, 2015, 12:19 PM
Quote from: [VSS]Shawn on Jul 23, 2015, 12:12 PMsorry for spam but this is error

error in mysql connection failed make sure connection details are correct


 :-\
What do you think that error means?
Same error
i am also not understanding as  i saw this error first time


Because you are both stupid. No offence. That's just the truth.
Title: Re: Ksna's cops and robbers
Post by: Ksna on Jul 23, 2015, 03:24 PM
Post your error guys and  see mysql connect line and change it to your username and password


I had changed password as password  but it was blank by default
Title: Re: Ksna's cops and robbers
Post by: DizzasTeR on Jul 23, 2015, 03:26 PM
Quote from: Ksna on Jul 23, 2015, 10:37 AMThis script is made from scratch. Not from leaked vccnr.

Very good!

Quote from: Ksna on Jul 23, 2015, 10:37 AMCredits: ... Hellboy & Blacklight & Cyber ( For making first Vccnr)

Lol wtf?! That means I should credit Gudio for making the first multigame-mode server as well? rofl.
Title: Re: Ksna's cops and robbers
Post by: ℛḝξ☂ on Jul 23, 2015, 03:33 PM
[spoiler=Nice Command]
else if (( cmd == "shutdown" )||( cmd == "driveby" )||( cmd == "driveonwater" )|| ( cmd == "fastswitch" )|| ( cmd == "jumpswitch" )|| ( cmd == "taxiboostjump" )||( cmd == "stuntbike" ) || ( cmd == "deathmessages" ) || ( cmd == "joinmessages" )|| ( cmd == "friendlyfire" )|| ( cmd == "shootinair" )|| ( cmd == "syncframelimiter" )|| ( cmd == "framelimiter" )|| ( cmd == "showonradar" )|| ( cmd == "shownametags" )|| ( cmd == "perfecthandling" )|| ( cmd == "flyingcars" )||
( cmd == "maxplayers" )|| ( cmd == "gravity" )|| ( cmd == "gamespeed" )|| ( cmd == "waterlevel" )|| ( cmd == "maxheight" )|| ( cmd == "hour" )|| ( cmd == "minute" )|| ( cmd == "timerate" )|| ( cmd == "weather" )||
( cmd == "servername" )|| ( cmd == "gamemodename" )|| ( cmd == "serverpassword" )){

if( stats[ player.ID ].level < 0 ) return 0;
else if ( cmd == "shutdown" ) ShutdownServer();
else if (!text) MessagePlayer( "Wrong Syntax! /"+ cmd +" on/off/number/text ", player );
else if ( text == "on" ) {
if ( cmd == "driveby" )SetDrivebyEnabled( true );
else if ( cmd == "driveonwater" )SetDriveOnWater( true );
else if ( cmd == "fastswitch" )SetFastSwitch( true );
else if ( cmd == "jumpswitch" )SetJumpSwitch( true );
else if ( cmd == "taxiboostjump" )SetTaxiBoostJump( true );
else if ( cmd == "stuntbike" )SetStuntBike( true );
else if ( cmd == "deathmessages" )SetDeathMessages( true );
else if ( cmd == "joinmessages" )SetJoinMessages( true );
else if ( cmd == "friendlyfire" )SetFriendlyFire(true);
else if ( cmd == "shootinair" )SetShootInAir( true );
else if ( cmd == "syncframelimiter" )SetSyncFrameLimiter( true );
else if ( cmd == "framelimiter" )SetFrameLimiter( true );
else if ( cmd == "showonradar" )SetShowOnRadar( true );
else if ( cmd == "shownametags" )SetShowNametags( true );
else if ( cmd == "perfecthandling" )SetPerfectHandling( true );
else if ( cmd == "flyingcars" )SetFlyingCars( true );
else return 0;
Message( "Admin " + player.Name + " has enabled "+ cmd +"." );

}
else if ( text == "off" ) {
if ( cmd == "driveby" )SetDrivebyEnabled( false );
else if ( cmd == "driveonwater" )SetDriveOnWater( false );
else if ( cmd == "fastswitch" )SetFastSwitch( false );
else if ( cmd == "jumpswitch" )SetJumpSwitch( false );
else if ( cmd == "taxiboostjump" )SetTaxiBoostJump( false );
else if ( cmd == "stuntbike" )SetStuntBike( false );
else if ( cmd == "deathmessages" )SetDeathMessages( false );
else if ( cmd == "joinmessages" )SetJoinMessages( false );
else if ( cmd == "friendlyfire" )SetFriendlyFire( false);
else if ( cmd == "shootinair" )SetShootInAir( false );
else if ( cmd == "syncframelimiter" )SetSyncFrameLimiter( false );
else if ( cmd == "framelimiter" )SetFrameLimiter( false );
else if ( cmd == "showonradar" )SetShowOnRadar( false );
else if ( cmd == "shownametags" )SetShowNametags( false );
else if ( cmd == "perfecthandling" )SetPerfectHandling( false );
else if ( cmd == "flyingcars" )SetFlyingCars( false );
else return 0;
Message( "Admin " + player.Name + " has disabled "+ cmd +"." );
}
else if ( IsNum( text ) ) {
if ( cmd == "maxplayers" )SetMaxPlayers( text.tointeger() );
else if ( cmd == "gravity" )SetGravity( text.tointeger() );
else if ( cmd == "gamespeed" )SetGamespeed( text.tointeger() );
else if ( cmd == "waterlevel" )SetWaterLevel( text.tointeger() );
else if ( cmd == "maxheight" )SetMaxHeight( text.tointeger() );
else if ( cmd == "hour" )SetHour( text.tointeger() );
else if ( cmd == "minute" )SetMinute( text.tointeger() );
else if ( cmd == "timerate" )SetTimeRate( text.tointeger() );
else if ( cmd == "Weather" )SetWeather( text.tointeger() );
else return 0;
Message( "Admin " + player.Name + " has set "+ cmd +" to "+ text.tointeger() +"" );
}
else if (( text != "off" )||( text != "on" )) {
if ( cmd == "servername" )SetServerName( text );
else if ( cmd == "gamemodename" )SetGameModeName( text );
else if ( cmd == "serverpassword" )SetPassword( text );
else return 0;
Message( "Admin " + player.Name + " has set "+ cmd +" to "+ text +"" );
}
}
[/spoiler]
Title: Re: Ksna's cops and robbers
Post by: Sebastian on Jul 23, 2015, 03:35 PM
Quote from: Doom_Killer on Jul 23, 2015, 03:26 PMLol wtf?! That means I should credit Gudio for making the first multigame-mode server as well? rofl.
Of course not
Also developers of Littlewhitey's server should not give credits to the first dev of the first DM server.
Even creators of vehicles should give credits to the first human who created one.

@Skirmant 's words: Everybody should give credits to the guy who first discovered the fire, too.
Title: Re: Ksna's cops and robbers
Post by: Ksna on Jul 23, 2015, 03:57 PM
Thanks for your feedback Doom ,it was just thanks not credits,  seby its impossible lol.
The first thing what player learns after looking the code is removing credits.
Title: Re: Ksna's cops and robbers
Post by: MatheuS on Jul 23, 2015, 04:10 PM
function onPlayerSpawn( player )
{
if ( stats[ player.ID ].wantedlevel < 0) {
player.Pos = Vector( 392.96, -506.26, 9.39 );
stats[ player.ID ].jailtime = GetTickCount();
    stats[ player.ID ].times = true;
MessagePlayer("You have been Jailed", player );
}

}

if ( stats[ player.ID ].wantedlevel < 0) { LOL?
if ( stats[ player.ID ].wantedlevel > 0) { Oh Yeaah ::)

Nice job. ;)
Title: Re: Ksna's cops and robbers
Post by: Ksna on Jul 23, 2015, 04:22 PM
lol Matheus dont mess with that XD if wantedlevel is negative then it means he is arrested player and if level is -1 he is banned player
Read my topic again XD
Title: Re: Ksna's cops and robbers
Post by: MatheuS on Jul 23, 2015, 04:50 PM
Quote from: Ksna on Jul 23, 2015, 04:22 PMlol Matheus dont mess with that XD if wantedlevel is negative then it means he is arrested player and if level is -1 he is banned player
Read my topic again XD

had not seen it ::), Sorry :-*
Title: Re: Ksna's cops and robbers
Post by: Murdock on Jul 24, 2015, 10:40 AM
Quote from: Ksna on Jul 23, 2015, 04:22 PMlol Matheus dont mess with that XD if wantedlevel is negative then it means he is arrested player and if level is -1 he is banned player
Read my topic again XD

Code readability is one way..
Title: Re: Ksna's cops and robbers
Post by: [VSS]Shawn on Jul 25, 2015, 07:42 AM
wait wait wait i notice one thing......









What is Next Thing to Be Release :P

Will it be Demolition Event in which to destroy other vehicles and win the event :P ??
Title: Re: Ksna's cops and robbers
Post by: Spidey on Aug 09, 2015, 06:36 AM
does it contain street rob and bank rob
Title: Re: Ksna's cops and robbers
Post by: FinchDon on Aug 09, 2015, 10:47 AM
bump.... I think yes
Title: Re: Ksna's cops and robbers
Post by: Spidey on Sep 04, 2015, 07:59 PM
your script always give me errors
script with errors lol ??? ??? ??? ??? ??? ??? ???
first fix your script and test or give us whole thingies to make any server
like
functions main admin Mecho
and a print like this
function onScriptLoad()
{
    dofile( "scripts/M-Echo.nut" );
    print( "Echo Script Loaded" );
   NewTimer( "ActivateEcho", 2000, 1 );
    print( " |================================================================|" );
    print( " |                     IRC Multi Bot - Dany                       |" );
    print( " |================================================================| " );
    stats <- array( GetMaxPlayers(), null );
   sqliteDB <- ConnectSQL( "Database.db" );
   print( "Fuzzie's Account System v3 - SQLite variant has successfully loaded..." );
   LMSActive <- false;
    LMSCount <- 0;
    BAmount <- 0;
    A_S <- BindKey(true,0x73,0,0);//VK_F4=0x73
    dofile( "scripts/Functions.nut" );
    Tables();
    print( "LMS Files loaded" );
   print("[Real] Nitrous Oxide System - by Seby - was loaded.");
    ALT_KEY <- BindKey(true, 0x12, 0, 0);
    nosLoadSprites();
   dofile( "scripts/Admin.nut" );
   C <- CreateSprite( "o.jpg", 30, 300, 0, 0, 0, 200   );
}

function onScriptUnload()
{
   if( sqliteDB )
   {
      DisconnectSQL( sqliteDB );
      sqliteDB = null;
   }
}

like this
Title: Re: Ksna's cops and robbers
Post by: soulshaker on Sep 04, 2015, 09:28 PM
Someone give him a cookie pls^
Title: Re: Ksna's cops and robbers
Post by: Spidey on Sep 04, 2015, 09:49 PM
for what?
Title: Re: Ksna's cops and robbers
Post by: FinchDon on Sep 05, 2015, 03:14 AM
Pls Leave VCMP
Title: Re: Ksna's cops and robbers
Post by: Debian on Sep 05, 2015, 05:01 AM
Spidey that is ADM script and any one have this script? the download links are expired
Title: Re: Ksna's cops and robbers
Post by: EK.IceFlake on Sep 05, 2015, 05:37 AM
Link update http://www.solidfiles.com/d/2bcb861436/
Title: Re: Ksna's cops and robbers
Post by: Spidey on Sep 05, 2015, 06:37 AM
@Debian iwas giving example
Title: Re: Ksna's cops and robbers
Post by: Xmair on Sep 05, 2015, 12:36 PM
@Spidey where are you getting the error?You told me once that he is only 10
Title: Re: Ksna's cops and robbers
Post by: KAKAN on Sep 05, 2015, 01:05 PM
He can't tell, as he don't have any error, if he have then he have some errors in copying, because I have tried this on a blank server, and it worked for me.
Title: Re: Ksna's cops and robbers
Post by: Wolf on Sep 05, 2015, 02:44 PM
hi huys i need help how i set this
Title: Re: Ksna's cops and robbers
Post by: KAKAN on Sep 07, 2015, 06:05 PM
PLEASE STOP SCRIPTING bro! 1st try to do it, if any error comes out, then you are free to ask
Title: Re: Ksna's cops and robbers
Post by: Wolf on Sep 08, 2015, 03:42 PM
where we add these files
Title: Re: Ksna's cops and robbers
Post by: Wolf on Sep 08, 2015, 03:42 PM
please tell
Title: Re: Ksna's cops and robbers
Post by: MacTavish on Sep 08, 2015, 04:19 PM
@Stormeus @Thijn can you guys stop him from flooding whole forum by asking where to add files
Title: Re: Ksna's cops and robbers
Post by: KAKAN on Sep 08, 2015, 05:55 PM
I think he is supposed to get banned
Title: Re: Ksna's cops and robbers
Post by: Thijn on Sep 08, 2015, 06:16 PM
Last warning @hammad
Stop flooding the forum asking basic questions, or get banned.
Title: Re: Ksna's cops and robbers
Post by: Wolf on Sep 09, 2015, 02:37 PM
hi all
Title: Re: Ksna's cops and robbers
Post by: Thijn on Sep 09, 2015, 06:08 PM
Quote from: hammad on Sep 09, 2015, 02:37 PMhi all

Well played. Banned.
Title: Re: Ksna's cops and robbers
Post by: RDXing_KR on Mar 30, 2016, 08:01 AM
Please Can i get another link
Title: Re: Ksna's cops and robbers
Post by: MacTavish on Mar 30, 2016, 09:53 AM
Quote from: ProToza_RD on Mar 30, 2016, 08:01 AMPlease Can i get another link
(http://files.thijn.ovh/img/afe491306587480391d8a73046b01c53/main.zip) (http://files.thijn.ovh/download/afe491306587480391d8a73046b01c53/main.zip)
Title: Re: Ksna's cops and robbers
Post by: RDXing_KR on Mar 30, 2016, 11:33 AM
Quote from: Kusanagi on Mar 30, 2016, 09:53 AM
Quote from: ProToza_RD on Mar 30, 2016, 08:01 AMPlease Can i get another link
(http://files.thijn.ovh/img/afe491306587480391d8a73046b01c53/main.zip) (http://files.thijn.ovh/download/afe491306587480391d8a73046b01c53/main.zip)
Hmm! : Needed some help .....
How can i be the admin / owner ? in this script @Kusanagi  or @KAKAN  or @ProToza_RD  lol i tagged my self