Making Jobs
#4

Dont worry too much about VarthShenon, he's trying hard to get his post count up.
What you want to do is download scripts to see how they did it, cause you are obviously new to pawno scripting.

The basic thing to make a job, is to set a variable to the player, like SetPVarInt(playerid, "job", 1);.
The player now has job 1, which can allow him to drive a Harvester, and use the command /harvest.

When the player use the command /harvest, you create a checkpoint for the player.
The player enters the checkpoint, and you give the player a variable called "HasCorn" or whatever. Then you create another checkpoint for the player, to the drop off place. The player enters the second checkpoint and do /dropoff, and you put the variable "HasCorn" to 0, give him the money, and then place a new checkpoint out of the corn field.

Thats the fastest way I can explain the whole system. Try your way ahead, and you will see within the code how to do it. It's easy, once you get to know it.
Reply


Messages In This Thread
Making Jobs - by BigAl - 11.08.2011, 23:22
Re: Making Jobs - by =WoR=Varth - 12.08.2011, 03:02
Re: Making Jobs - by BigAl - 12.08.2011, 06:04
Re: Making Jobs - by Kayaque - 12.08.2011, 07:13

Forum Jump:


Users browsing this thread: 2 Guest(s)