Help :)
#1

Help can you Help me to this problem
how to add more ROBBERING STORE
when i save location This say
AddPlayerClass(59,-1782.3385,905.4898,24.8906,56.4009,0,0,0,0,0,0); //

what in that no# i will save In
Rob.inc? or In what i edit IN GAMEMODE CCNR.pwn


Thank you for help

my Gamemode Is CALIFORNIA COPS AND ROBBER
Reply
#2

in gamemode under public OnGamemodeInit
Reply
#3

Quote:
Originally Posted by TaiRinsuru
Посмотреть сообщение
in gamemode under public OnGamemodeInit
Sir i USE
#include <cnr/rob>
and This is my ROb.inc



enum __robData
{
Float:cpPlace[4],
nameStore[20],
namePlace[20],
robInt,
robRansom,
robCP,
robTime,
bool:robStatus
}

new robData[MAX_ROB_CP][__robData] =
{
{{419.177459, -75.200881, 1001.804687, 358.180816}, "Barber Shop", "Queens", 3, 5000},
{{-107.301658, -8.565799, 1000.718750, 85.095359}, "Sex Shop", "Juniper Hill", 3, 5000},
{{-201.166778, -8.567420, 1002.273437, 260.878631}, "Tattoo Parlor", "Garcia", 17, 5000},
{{-8.477722, -179.724182, 1003.546875, 179.220397}, "24/7", "Financial", 17, 10000},
{{316.270202, -133.633636, 999.601562, 179.114181}, "Ammunation", "Ocean Flats", 7, 5000},
{{353.221557, 1598.223754, -55.139499, 269.761108}, "Job Center", "Downtown", 1, 10000},
{{200.649185, -12.454304, 1001.210937, 97.196975}, "Victim", "Downtown", 5, 5000},
{{1850.602294, 2416.713378, 20.831604, 95.045410}, "Mayor Office", "City Hall", 11, 10000},
{{392.561065, -1399.712524, 1297.388916, 269.876617}, "Otto's Autos", "Downtown", 12, 10000},
{{381.994201, -188.131195, 1000.640136, 177.716964}, "Donut Store", "Palisades", 17, 5000},
{{758.858398, -17.613622, 1000.585937, 1.752899}, "Cobra Gym", "Garcia", 6, 5000},
{{204.117233, -41.222248, 1001.804687, 181.124496}, "Sub Urban", "Hashbury", 1, 5000},
{{-203.901580, -40.677711, 1002.273437, 1.281152}, "Tattoo Parlor", "Hashbury", 3, 5000},
{{381.711791, -57.392803, 1001.515136, 0.384104}, "Burger Shot", "Downtown", 10, 5000},
{{162.433456, -80.074943, 1001.804687, 181.413894}, "Zip", "Downtown", 18, 5000},
{{2472.269042, 2355.843994, -52.081687, 180.908721}, "Bank", "Esplanade East", 2, 20000},
{{-2662.547363, 1412.889892, 906.273437, 359.014434}, "Pleasure Domes", "Battery Point", 3, 20000},
{{207.453994, -97.612808, 1005.257812, 354.447326}, "Binco", "Juniper Hill", 15, 5000},
{{450.626647, -81.244300, 999.554687, 180.496154}, "Restaurant", "King's", 4, 10000},
{{-2221.623046, 134.066299, 1035.632812, 180.314666}, "Zero's RC Shop", "Garcia", 6, 10000},
{{371.580688, -4.054100, 1001.858886, 269.204956}, "Cluckin' Bell", "Downtown", 9, 5000},
{{-2035.186035, -118.390472, 1035.171875, 174.487930}, "Driving School", "Doherty", 3, 10000},
{{494.673217, -77.963714, 998.757812, 86.103706}, "Bar", "Doherty", 11, 5000},
{{-199.877899, -1757.300415, 675.768737, 181.764709}, "Hospital", "Downtown", 17, 7000},
{{2834.362060, 2457.724853, 1786.481079, 0.951004}, "Supa Save", "Juniper Hill", 182, 7000},
{{379.502655, -116.975624, 1001.492187, 271.294860}, "Pizza Stack", "Station", 5, 7500},
{{-17.980937, -56.735923, 1003.546875, 179.652252}, "24/7", "Easter Basin", 6, 7500},
{{-220.485549, 1401.872680, 27.773437, 92.538002}, "Burger King", "Garcia", 18, 7500},
{{475.374023, -12.065057, 1003.695312, 271.787384}, "Club", "Queens", 17, 7500},
{{292.108337, -31.316289, 1001.515625, 4.159865}, "New_Ammu", "Calton_Heights", 1, 7500}
};

forward loadRobbery();
public loadRobbery()
{
for(new i = 0; i < MAX_ROB_CP; i++)
{
robData[i][robCP] = CreateDynamicCP(robData[i][cpPlace][0], robData[i][cpPlace][1], robData[i][cpPlace][2], 1.0, -1, robData[i][robInt]);
robData[i][robTime] = 0;
robData[i][robStatus] = false;
}
}


stock beginRobbery(playerid, checkpointID)
{
if(Player[playerid][playerClass] == CIVILIAN)
{
if(isCuffed(playerid))
{
if(Player[playerid][english])
Server(playerid, "You can't rob while cuffed.");
else
Server(playerid, "Kamu tidak bisa merampok ketika di borgol.");
return 1;
}
if(inTied(playerid))
{
if(Player[playerid][english])
Server(playerid, "You can't rob while tied.");
else
Server(playerid, "Kamu tidak bisa merampok ketika di ikat.");
return 1;
}
new msg[128];
if(robData[checkpointID][robTime] == 0)
{
new id;
if(!robData[checkpointID][robStatus])
{
id = getcloseLocker(playerid);
Player[playerid][robberyLeft] = 999;
robData[checkpointID][robStatus] = true;
SetPlayerFacingAngle(playerid, robData[checkpointID][cpPlace][3]);
ClearAnimations(playerid);
ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Open" , 1, 1, 0, 0, 0, 0, 1);
SetPlayerAttachedObject(playerid, 0, 1550, 1, 0.158482, -0.203833, 0.000000, 167.302505, 79.854949, 342.084838, 1.000000, 1.000000, 1.000000);
SetTimerEx("startRobbery", 2500, false, "dd", playerid, checkpointID);
SetTimerEx("openLocker", 1500, false, "d", id);
}
else
{
if(Player[playerid][english])
format(msg, sizeof(msg), CHAT_YELLOW"%s "CHAT_WHITE"is being robbed, please wait.", robData[checkpointID][nameStore]);
else
format(msg, sizeof(msg), CHAT_YELLOW"%s "CHAT_WHITE"sedang di rampok, mohon tunggu.", robData[checkpointID][nameStore]);
Server(playerid, msg);
}
}
else
{
if(Player[playerid][english])
format(msg, sizeof(msg), CHAT_YELLOW"%s "CHAT_WHITE"is already robbed, please wait.", robData[checkpointID][nameStore]);
else
format(msg, sizeof(msg), CHAT_YELLOW"%s "CHAT_WHITE"telah dirampok, mohon tunggu.", robData[checkpointID][nameStore]);
Server(playerid, msg);
}
}
return 1;
}
Reply
#4

This is the format.

/*
- storeID - this is the store ID, continue the pattern.
- checkpointLoc - x, y, z location for entering the interior (this is also the place the player ends up being after leaving the interior)
- exitpointLoc - x, y, z location for leaving the interior (this is also the place the player ends up being after entering the interior)
- robpointLoc - x, y, z location for the actual robbery checkpoint
- storeStatus - leave it at 1, server will modify this on the fly.
- lowestCash - certain interiors will give more than others, this is how you define the lowest amount that store will ever produce from a robbery.
- highestCash - same as above, just this is the highest amount.
- virtualWorld - this tells the server which world to throw you in, this is so you only get player markers of people who are in the same store as you.
- interiorWorld - this tells the server which interior to put you in.
- storeName - this defines the name of the store for the text labels, and robbery reports "Jake has robbed Cluckin' Bell" etc.
- lastRobbed - this tells the server when the store was last robbed.
- storePrice - store price
- storeOwner - (-1 for manual load / 0 for "CZCNR Server")
*/
Reply
#5

Why did you start off with CCNR and it's .inc files while you clearly have no skills whatsoever.
Try something easier/beginner like and than move onto that since I doubt you'll understand anything if I try to explain.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)