checkpoint
#1

can someone explain how did i this cp in interior? i saw this and use for my gamemode, but can you explain how to add any other cp in interior..

new Float:checkCoords[MAX_POINTS][4] = {
{351.3314, 196.9337, 368.2675,217.0970} // robcityhall
};

new Float:checkpoints[MAX_POINTS][4] = {
{356.7246,215.6280,1008.3828,3.0}// robcityhall
};
Reply
#2

bump?
Reply
#3

adding values could be easier.
pawn Код:
new Float:checkpoints[MAX_POINTS][4] = {
the Float indicates that the variable will be a float type which looks like this 1.0 needs to have the dot in the number, is classified as a float.

after is the name obviously(after the : <name>)
then goes the array index 0 which is how many items there will be in the variable. your using a define MAX_POINTS. just make sure that value is always 1 more then the actual items you have(if you have 4 items then the array size should be 5 to not get buffer overflow).

The last thing is the number of parameters it will contain, which are separated by the comma (,).

example of adding more potions/locations

pawn Код:
new Float:checkpoints[MAX_POINTS][4] = {
{356.7246,215.6280,1008.3828,3.0},        //notice the comma after every line
{324.6546,56.5480,645.3828,1.0},
{553.7246,215.6280,582.3828,3.0},
{923.1453,45.6280,1008.3828,2.2}         // the last one does not require a comma!
};
Reply
#4

I don't understand the best.. btw, do you speak serbian?
Reply
#5

Bump?
Reply
#6

Bump once again. 2. Page
Reply
#7

I know this system but how to add cp in interior with this system...
Reply
#8

bump please !!!!!
Reply
#9

Код:
new Float:checkCoords[MAX_POINTS][4] = {
{351.3314, 196.9337, 368.2675} // robcityhall
{373.825653,-117.270904,1001.499511} //well stacked pizza
};
Under you command
Код:
 SetPlayerCheckpoint(playerid, 351.3314, 196.9337, 368.2675,10.0);
 SetPlayerCheckpoint(playerid, 373.825653,-117.270904,1001.499511,10.0);
Reply
#10

i want to stay this cp always, and no only in cmd... For example:

How to add checkpoint in Pizza for exit out? with this system which i gave you?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)