Delivery System around LS
#1

Well I want to create a delivery system around Los Santos. I got the coordinates for 14 checkpoints around los santos. Problem is, I dont know how to create this complicated checkpoint thing. First of all, When the player enter the vehicle etc. ID 413, Pony, a message will come up telling him if he wants to deliver, type in /deliver. When the player type's in /deliver, he has to go to the 14 checkpoints around LS but if he leaves the van it is auto cancelled. Another thing is, once a player enters one checkpoint, he is given money, so another thing I want is how to give money to a player for every checkpoint he passes and how do I make the checkpoints start all over again. In better detail, I mean once a player has completed all 14 checkpoints, he has to start again from checkpoint 1. Can someone please show me how to do this?
Reply
#2

Anyone?
Reply
#3

Iv just created a delivery system and I should be able to help.
Use
pawn Код:
if(newstate == PLAYER_STATE_DRIVER && oldstate != PLAYER_STATE_DRIVER)//inside vehicle
For when the player is inside the vehicle to send messages etc.

To check if its a pony.

pawn Код:
new vehmd = GetVehicleModel(GetPlayerVehicleID(playerid));
if(vehmd == 413)
{

}
edit: also under the /deliver command. Put the vehmd in there and an if statement checking if the vehicle model is a pony. Much like the example here.
Also, this is quite complicated stuff. It took me a whole night to do all the code and another day to completely finish it. Im a begginer but I got it working. The success was the fact that I wrote everything down on paper and planned everything! Trust me I'v never really done it but it helps so much.
Reply
#4

Alright that covers the message. But can anyone help me on the checkpoints?
Reply
#5

I did research and I think its better to give each checkpoints a name...
Код:
new Check1
Problem is, how do I create a damn checkpoint system around Los Santos?!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)