|
|
#1 |
|
Big Clucker
![]() ![]() Join Date: Jul 2009
Location: Big Smoke's
Posts: 84
Reputation: 3
|
Okay i have a problem with Checkpoints, the first CP is good, but the second isn't,
it doesn't stop loading the cargo off. Also i have 4 checkpoints more to go, but i haven't finished them, because the second one doesn't work well. Heres the /work code, it works fine, but i'm just adding it here for you to see my first CP. pawn Code:
Ok, here's the bad boy. pawn Code:
Oh and i want it to say "The cargo is being loaded on the bus" for the first CP and "The cargo is being loaded off the bus" for 4 others. Here are the coordinates for the other 4 Checkpoints: pawn Code:
I don't want you to make it for me, just give me tips how should i make the checkpoint system. Last edited by kaiks; 28/06/2012 at 07:04 PM. |
|
|
|
|
|
#2 |
|
Big Clucker
![]() ![]() Join Date: May 2012
Posts: 139
Reputation: 8
|
You should create some pVar where you store the checkpoint order.
My suggestion is to you add on /work, the first checkpoint position, something like this: WorkCheckpoint[playerid]=1; and then, onplayerentercheckpoint you check if the workcheckpoint is 1, create the 2nd one and change the WorkCheckpoint[playerid] to 2, and so on until the last one. I hope this helps you, but let me know if you need more help
|
|
|
|
|
|
#3 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Jul 2011
Posts: 900
Reputation: 91
|
You can use
PHP Code:
Just make CP Id's for each one like.. Once the player enter the First It sets CP[playerid] = 500 the second - CP[playerid] = 501 etc. - And so on. |
|
|
|
|
|
#4 |
|
Big Clucker
![]() ![]() Join Date: Jul 2009
Location: Big Smoke's
Posts: 84
Reputation: 3
|
Thanks, but how should i define WorkCheckpoint?
|
|
|
|
|
|
#5 |
|
Big Clucker
![]() ![]() Join Date: May 2012
Posts: 139
Reputation: 8
|
new WorkCheckpoint[MAX_PLAYERS];
|
|
|
|
|
|
#6 |
|
Big Clucker
![]() ![]() Join Date: Jul 2009
Location: Big Smoke's
Posts: 84
Reputation: 3
|
Ok, please tell me where to put it, idk if my placement is right, because it doesn't change anything.
pawn Code:
pawn Code:
|
|
|
|
|
|
#7 |
|
Big Clucker
![]() ![]() Join Date: Jul 2009
Location: Big Smoke's
Posts: 84
Reputation: 3
|
I'm terribly sorry for doubleposting, but i need to get this fixed asap!
|
|
|
|
|
|
#8 |
|
Banned
![]() Join Date: Jun 2012
Location: Sacramento
Posts: 382
Reputation: 15
|
put this under #inclue <a_samp>
Code:
new WorkCheckpoint[MAX_PLAYERS]; |
|
|
|
|
|
#9 |
|
Big Clucker
![]() ![]() Join Date: Jul 2009
Location: Big Smoke's
Posts: 84
Reputation: 3
|
Well, i have this already there
// edit: it won't delete the second CP and it won't create the third. |
|
|
|
|
|
#10 |
|
Banned
![]() Join Date: Jun 2012
Location: Sacramento
Posts: 382
Reputation: 15
|
you trying to make a race
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| checkpoint problem +REP | peterory | Scripting Help | 2 | 09/06/2012 08:00 AM |
| Checkpoint problem | ajwar | Scripting Help | 0 | 03/09/2011 08:33 PM |
| checkpoint problem | hadzx | Help Archive | 1 | 13/03/2011 05:48 PM |
| Checkpoint problem | aircombat | Help Archive | 7 | 05/06/2010 03:29 PM |
| Checkpoint problem | killdahobo99 | Help Archive | 5 | 14/07/2009 02:42 PM |