Author Topic: CityRP Job and building help.  (Read 747 times)

i have a server up using city RP. its working good but i dont know how to...
Add Jobs
Disable Admin only building


If someone can help me ill give you admin in my server. I need a code that is fill in the blank. THANKS

EXPL:
Code: [Select]
@echo off
@echo *Job Name
@echo *Pay
@echo *law
@echo on

Why are you using batch?

Oh, and anyone's allowed to build.

Oh, and anyone's allowed to build.
  its only allowing people to use lots other then admins PLZZZ help

  its only allowing people to use lots other then admins PLZZZ help
That's the way it's supposed to work.


what code causes it. just give me the file name and the code. ill take it from there. my friends server had it disabled. and alot of jobs added

Fine. I'll post it.
:/

Code: [Select]
// Update 1.1
//  Fixed a real estate bug.
//  No longer can reset while having a loan.
//  Updated the bank disclaimer.
//  Added ^cast command.
//  Save file is generated at start.
//  Added a few missing prefs.
//  Fixed a bug with not being able to see bottomprint when first spawned.

// Update 1.2
//  Added a datablock.CityRPCanSpawn variable.
//  Changing maps keeps minigame.
//  Default interest set to 1.01.

// Update 1.3
//  Added some RTB stuff.

package CityRP
{
function CityRP(%mode, %data)
{
if(%mode == 1)
{
if(!isObject(CityRPData))
{
new scriptObject(CityRPData)
{
class = Sassy;

dataFile = "config/server/PeopleMods/CityRPData.dat";
};

$CityRP::jobs::name[$CityRP::jobs++] = "Civilian";
$CityRP::jobs::initialInvestment[$CityRP::jobs] = 0;
$CityRP::jobs::pay[$CityRP::jobs] = 20;
$CityRP::jobs::tools[$CityRP::jobs] = "hammerItem wrenchItem printGun";
$CityRP::jobs::items[$CityRP::jobs] = false;
$CityRP::jobs::law[$CityRP::jobs] = false;
$CityRP::jobs::pickpocket[$CityRP::jobs] = false;

$CityRP::jobs::name[$CityRP::jobs++] = "Shop Keeper";
$CityRP::jobs::initialInvestment[$CityRP::jobs] = 100;
$CityRP::jobs::pay[$CityRP::jobs] = 40;
$CityRP::jobs::tools[$CityRP::jobs] = "hammerItem wrenchItem printGun";
$CityRP::jobs::items[$CityRP::jobs] = true;
$CityRP::jobs::law[$CityRP::jobs] = false;
$CityRP::jobs::pickpocket[$CityRP::jobs] = false;

$CityRP::jobs::name[$CityRP::jobs++] = "Criminal";
$CityRP::jobs::initialInvestment[$CityRP::jobs] = 150;
$CityRP::jobs::pay[$CityRP::jobs] = 20;
$CityRP::jobs::tools[$CityRP::jobs] = "hammerItem wrenchItem printGun";
$CityRP::jobs::items[$CityRP::jobs] = false;
$CityRP::jobs::law[$CityRP::jobs] = false;
$CityRP::jobs::pickpocket[$CityRP::jobs] = true;

$CityRP::jobs::name[$CityRP::jobs++] = "Policeman";
$CityRP::jobs::initialInvestment[$CityRP::jobs] = 150;
$CityRP::jobs::pay[$CityRP::jobs] = 50;
$CityRP::jobs::tools[$CityRP::jobs] = "hammerItem wrenchItem printGun CityRPBatonItem";
$CityRP::jobs::items[$CityRP::jobs] = false;
$CityRP::jobs::law[$CityRP::jobs] = true;
$CityRP::jobs::pickpocket[$CityRP::jobs] = false;
This is in the server.cs file. Near the top. Just add jobs by doing the same thing as the rest, but rename the job. START UNDER THE POLICEMAN JOB.

Also, that isn't the entire script obviously.

Also, that isn't the entire script obviously.
Yes, thank god.

Yes, thank god.
I'm not that dumb. Like I would release the whole script to idiots that just whine for this stuff.

Even if I did. It still wouldn't work, they would also need the other scripts for it too.

No edit.
Also, the one I'm using is Jookia's.

Wow, you have an old version.

I had the newer version. But my computer crashed. and it was on RTB topic "Delete Me"