[HowTo]Create Properties
#21

Quote:
Originally Posted by Pentel
Quote:

First we need for one Property 3 Coords

1.Area Point 1
2.Area Point 2
Those are very importent that People can See the Checkpoint of the Property, so they can buy it.
3.Checkpoint of the Property
Without this it wont work

To get the Area Points Do This

-Start/Launch DEBUG Mode

Do "/save" like this:
/save1--------------------
| | /save1 & /save2:This is how we get the Area where the Checkpoint can be seen
| /save3 | /save3:This is the Checkpoint where People can buy it
| |
|---------------------/save2

Wasnt so hard isnt?

Yes it is hard. When I do /save it saves one line with like
pawn Код:
AddPlayerClass(220,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1); <-- EXAMPLE
But he says I have to take 3x and I can only add one line as a coord, how do I combine these 3 take saves? Thanks. Because now my checpkoint is flickering and disappearing. Non-solid.
you need to take the XandY coords. that will be 1958.3783,1343.1572 1958... is the X axis and 1343... is the Y axis
Reply
#22

Okey, Now I got this:
AddPlayerClass(256,368.1495,-114.9159,1001.4922,37.7903,0,0,0,0,0,0); // 1
AddPlayerClass(256,380.0675,-133.5288,1001.4922,259.9459,0,0,0,0,0,0); // 2
AddPlayerClass(256,376.1435,-114.9993,1001.4922,272.4793,0,0,0,0,0,0); // CP

MAP:

1-----------
| |
| CP |
|_________2

That's correct right?
Now how do I put 1 and 2 together!?
Thanks.
Reply
#23

*Sorry for Bumping, But I'm serious need of help*
How do I combine:
Код:
368.1495,-114.9159,1001.4922,37.7903
380.0675,-133.5288,1001.4922,259.9459
Into:
{Xmin, Ymin, Xmax, Ymax}
Reply
#24

Quote:
Originally Posted by Pentel
*Sorry for Bumping, But I'm serious need of help*
How do I combine:
Код:
368.1495,-114.9159,1001.4922,37.7903
380.0675,-133.5288,1001.4922,259.9459
Into:
{Xmin, Ymin, Xmax, Ymax}
368.1495 = minX
-114.9159=minY
380.0675=maxX
-133.5288=maxY

the other 2 are the Z axis (height) and the angle
Reply
#25

Which means you get:

{368.1495,-114.9159, 380.0675,-133.5288}
And I had that! But no checkpoint for me.
Reply
#26

Thanks Y_Less,
So my code is incorrect or not ?
pawn Код:
{368.1495,-114.9159, 380.0675,-133.5288}
OR:
pawn Код:
{368.1495,-133.5288, 380.0675,-114.9159}
I can count, but like I said before, I'm confused. And you may call me a noob, or whatever, but once I got this, I can do alot more and I'm still learning everyday .
Reply
#27

Bump
Reply
#28

claiver, seriously dude...the ymin and ymax are backwards...

like y_less said whats bigger numerically:

-114 or -133

its -114 thats the max position on y axis :P

remember when u go into negative numbers u need to reverse ur thinking effectively...basically if u have - in fron of the number, the closer u get to 0 the higher the number is numerically...simple

Edit by Y_Less: you wrote -144 was bigger
Reply
#29

lmao i think some guys has to go back to school ^^
cheers
[GM]The_Don
Reply
#30

lbleugh :S my brain was tired :S i been trying to fix my streamer stuff for a while now and my head got fryed in the process lol

thanx y_less lol
Reply
#31

sorry, always had some problems (still have) with negative numbers
Reply
#32

Quote:
Originally Posted by Y_Less
Quote:
Originally Posted by <tAxI>
i been trying to fix my streamer stuff for a while now and my head got fryed in the process lol
I know EXACTLY how you feel!
i feel like that if i come back from work and i sit at the computer again and beginn to script ^^
Reply
#33

This has helped me alot but i coem across this...

Quote:

C:\Users\Jack\Desktop\VRPL\gamemodes\Land.pwn(144) : error 017: undefined symbol "playerCheckpoint"
C:\Users\Jack\Desktop\VRPL\gamemodes\Land.pwn(144) : error 029: invalid expression, assumed zero
C:\Users\Jack\Desktop\VRPL\gamemodes\Land.pwn(144) : error 029: invalid expression, assumed zero
C:\Users\Jack\Desktop\VRPL\gamemodes\Land.pwn(144) : fatal error 107: too many error messages on one line

Line 144:
Код:
			switch (playerCheckpoint[playerid]) {
any ideas i've tryed alot fixing it, but no luck...
Reply
#34

Quote:
Originally Posted by [GM
The_Don ]
Код:
if(strcmp(cmd, "/buy", true) == 0) {
		new property=999;

		if(IsPlayerInCheckpoint(playerid)) {
switch (playerCheckpoint[playerid]) {
				case CP_DRAGON:{
					property = P_DRAGON;
				}
				case CP_SEXSHOP:{
					property = P_SEXSHOP;
				}
				case CP_BAR:{
					property = P_BAR;
				}
				case CP_CALIGULA:{
					property = P_CALIGULA;
				}
				case CP_ZIP:{
					property = P_ZIP;
				}
				case CP_BINCO:{
					property = P_BINCO;
				}
				case CP_TATOO:{
					property = P_TATOO;
				}
				case CP_BOTIQUE:{
					property = P_BOTIQUE;
				}

				case CP_PAWN:{
					property = P_PAWN;
				}
			}
The Part in the "/Buy" is where the playerCheckpoint is...
Reply
#35

Ahh... Lol Thanks any way seif
Reply
#36

maybe i should have been adding that it also works with SA-DM MG LG etc...

it works with Any Script witch is Based on Properties with that System
cheers

[GM]The_Don
Reply
#37

The checkpoint's doesn't show up What's wrong

//-1256.6121,47.1139,14.1370,224.5741//pos 1
//-1254.7679,47.2156,14.1366,316.8725//pos 2
//-1253.3939,46.4457,14.1365,93.3081//pos 3

#define MAX_POINTS 3
new Float:checkCoords[MAX_POINTS][4] = {
{-1254.7679,47.1139,-1256.6121,47.2156}, //BANK This doesn't show up
{-37.2183,-91.8006, -14.1099,-74.6845}, //BANK_2
{-34.6621,-31.4095, -2.6782,-25.6232} //BANK_3
};


new Float:checkpoints[MAX_POINTS][3] = {
{-1253.3939,46.4457,14.1365},
{-23.0664,-90.0882,1003.5469},
{-33.9593,-29.0792,1003.5573}
};
Reply
#38

please upload your script at pastebin.ca ^^
we might can help you better then
Reply
#39

could u explain it better pls ?



i didnt get it
Reply
#40

Hmm... too complicated for me. perhaps you could make it a filterscript? I am getting good with filterscripts (except creating)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)