SA-MP Forums Archive
how to get all area croods in an interior ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to get all area croods in an interior ? (/showthread.php?tid=423452)



how to get all area croods in an interior ? - omidi - 17.03.2013

hi
im really confused how i can make the checkpoint when player in range of some croods so checkpoint will be on
for example i use sf cnr gamemode
as you can see in these images
when i stand here the checkpoint will be on

and if i stand here it will be disappear

so i want when a player in an interior and interior has a checkpoint if he walk in all over interior so checkpoint dont
disappear
i used many zone maker in game and when i put croods it aint work

sry for my bad english


Re: how to get all area croods in an interior ? - stabker - 17.03.2013

You can use incognito's streamer, CreateDynamicCP function.


Re: how to get all area croods in an interior ? - Smikkeltoetje - 17.03.2013

as far as i understand you,... you want it so when people enter the betting store (on the picture above)
That is shows a checkpoint, that does not dissapear?

Try:

/save [optional name here]

AddStaticPickup(MARKER ID, X Y Z);

You can try this


Re: how to get all area croods in an interior ? - omidi - 17.03.2013

in sf cnr game mode it has
Код:
//Variables
new Float:checkCoords[MAX_POINTS][4] = {
{145.4055,-96.1957,177.4023,-70.9268} //ZipMain  // its for range im sure like if player in range of point , like //when u near these croods that checkpoint will be on and if far it will off
}

new Float:checkpoints[MAX_POINTS][4] = {
{-1605.5288,712.4097,13.8714,1.0}, //ZipMain // and its the checkpoint place 
}



Re: how to get all area croods in an interior ? - nor15 - 17.03.2013

Quote:
Originally Posted by omidi
Посмотреть сообщение
in sf cnr game mode it has
Код:
//Variables
new Float:checkCoords[MAX_POINTS][4] = {
{145.4055,-96.1957,177.4023,-70.9268} //ZipMain  // its for range im sure like if player in range of point , like //when u near these croods that checkpoint will be on and if far it will off
}

new Float:checkpoints[MAX_POINTS][4] = {
{-1605.5288,712.4097,13.8714,1.0}, //ZipMain // and its the checkpoint place 
}
I got this gamemode and i got the same problem but i know how to fix it and help you , PM me.


Re: how to get all area croods in an interior ? - Scenario - 17.03.2013

The stream distance is too low for what you're trying to accomplish. Can you post the line of code where the checkpoint is being created?


Re: how to get all area croods in an interior ? - Patrick - 17.03.2013

i've use this gamemode before. but now i stopped and start developing my own one. as you can see at first time.

so im going to give you a parameter to use this

pawn Код:
#define MAX_POINTS 1 //everytime you add 1 checkpoint you should add the maxpoint define +1
new Float:checkCoords[MAX_POINTS][4] = {
{NorthEast-X,NorthEast-Y,SouthWest-X,SouthWest-Y}
}
new Float:checkpoints[MAX_POINTS][4] = {
{Float: X,Float: Y, Float, Z, CPsize}
{
so you need this box to help you out
Код:
				NORTH
					_________________ Point 2;  - NORTH EAST
					|                |
					|    This is     |
				WEST 	|  the area that | EAST
					|    you want    |
					|   to define!   |
					|________________|
South West - Point 1;