Help Me Please -
ColdRain - 05.05.2012
How i can make the location work very good ?
pawn Код:
new Float:brifcase[MAX_BRIF][3] =
{
{1499.01, -1803.68, 32.42}, // 1
{1496.97, -1537.96, 66.59},
{1406.25, -1304.29, 7.95},
{1406.83, -1208.54, 186.41},
{1175.11, -1181.85, 90.49}, // 5
{992.12, -1195.99, 53.99},
{594.25, -1274.08, 63.38},
{594.25, -1274.08, 63.38},
{422.92, -1296.91, 14.54},
{340.92, -1333.57, 13.60}, // 10
{378.12, -1883.43, 1.54},
{877.00, -1808.90, 30.98},
{1225.56, -1768.63, 52.98},
{1827.87, -1993.33, 12.94},
{1923.00, -2200.56, 25.93}, // 15
{2058.63, -1992.89, 38.92},
{1094.28, -2036.90, 81.79},
{1872.32, -1683.74, 57.99},
{2239.72, -1819.42, 12.95},
{2737.34, -1759.99, 43.91}, // 20
{2952.14, -1877.25, 4.93},
{2613.15, -2205.23, -1.00},
{2540.03, -2426.98, 29.08} // 23
};
pawn Код:
if(pickupid == brifcases){
new string[128];
new playername[24];
GetPlayerName(playerid,playername,24);
format(string,sizeof(string),"%s(%d) Has Founded The Brifcase At Location: %s",playername,playerid);
format(string,sizeof(string),"%s(%d) Has Get %d Score And $%d From Brifcase",playername,playerid,brifscore[random(sizeof(brifscore))], brifcash[random(sizeof(brifcash))]);
SendClientMessageToAll(COLOR_GREEN,string);
HasGotTheBrif[playerid] =1;
SetTimer("ReSpawnBrif",20000,0);
}
AW: Help Me Please -
vyper - 05.05.2012
Explain what do you want/need
Re: Help Me Please -
ColdRain - 05.05.2012
i want when its give Hint: like this happened Example
Hint: Brifcase Has been spotted Loaction: Idelwood or sometime say Pershing Square get the brifcase location
Re: Help Me Please -
ColdRain - 05.05.2012
Sorry for double posts
Re: Help Me Please -
ToiletDuck - 05.05.2012
is there any CMD like /spawnbriefcase or its just spawning randomly?
Re: Help Me Please -
ColdRain - 05.05.2012
Randomly spawn at places up
AW: Help Me Please -
vyper - 05.05.2012
I ain't gonna do the whole thing just tell you how it should look like.. the scripting will be done by you

this way you learn
here's how to do it:
pawn Код:
enum briefinfo
{
Float:xPos, // X coord of the briefcase
Float:yPos, // Y coord of the briefcase
Float:zPos, // Z coord of the briefcase
Location[32] // Location
};
Add location to this:
pawn Код:
new Float:brifcase[MAX_BRIF][briefinfo] =
{
{1499.01, -1803.68, 32.42, "Location 1"}, // 1
{1496.97, -1537.96, 66.59, "Location 2"},
{1406.25, -1304.29, 7.95, "Location 3"},
// ... and so on (add location name after coords)
};
Then you can simply create some gvars to store the info
Re: Help Me Please -
ToiletDuck - 05.05.2012
pawn Код:
enum bcinfo
{
Float:XPOS,
Float:YPOS,
Float:ZPOS,
Position[23]
};
pawn Код:
new Float:BriefCasePos[3], BriefCaseFound=1, BriefCaseLocation[23];
pawn Код:
public briefCase()
{
new string[175];
if(!BriefCaseFound)
{
format(string, sizeof(string), "**The {33FF66} BriefCase {FFFFFF}has {FF0000} not {FFFFFF} been found, it is still hidden in {FFFF66} %s", BriefCaseLocation);
SendClientMessageToAll(-1, string);
}
else if(BriefCaseFound)
{
BriefCaseFound = 0;
new randomcase = random(sizeof(brifcase));
BriefCasePos[0] = brifcase[randomcase][XPOS];
BriefCase[1] = brifcase[randomcase][YPOS];
BriefCase[2] = brifcase[randomcase][ZPOS];
format(BriefCaseLocation, sizeof(BriefCaseLocation), "%s", brifcase[randomcase][Position]);
format(string, sizeof(string), "**The {33FF66}BriefCase has been {FF0000} hidden in {FFFF66} %s!", MoneyBagLocation);
SendClientMessageToAll(-1, string);
BriefCasePickup = CreatePickup(1210, 2, BriefCasePos[0], BriefCasePos[1], BriefCasePos[2], -1);
}
return 1;
}
try this
and use
pawn Код:
new Float:brifcase[MAX_BRIF][briefinfo] =
{
{1499.01, -1803.68, 32.42, "Location 1"}, // 1
{1496.97, -1537.96, 66.59, "Location 2"},
{1406.25, -1304.29, 7.95, "Location 3"},
// ... and so on (add location name after coords)
};
Just what Vyper said use this pwn code
Re: Help Me Please -
ColdRain - 05.05.2012
Okay now what i type what function i use ?? OnPlayerPickUp ?
Re: Help Me Please -
ColdRain - 05.05.2012
thnx all :P its works