Yea i got it now.. and how its going with my beta missions?? becuase there was a 50kb restriction and the mission was 53 kb I had to put it on my own site.. I will update the mission soon becuase it now is very bad still.. I already made the mission better with banks, vehicle shops blah blah blah but I still need to put the new version in the website.. Anyway im creating a new campaign... Its cool to have a campaign with street races and SMS messages looking like hint messages... and you start with a minicooper but end the campaign with a ferrari. The last mission is a role-playing mission where you can randomly find street racers and if you come within 5 meters of them you can challenge them for a race then you earn money and you may buy something
... only the last mission has money -_-..
hey RedHouse to buy something you need atleast 3 scripts..
Counter.sqs --- this enables some starting money and the distracting/ earning.
P1Money=0
Hint format ["you have £%1 money", P1Money]
time.sqs --- you can also choose a work.sqs but this would be best for SP because it spends 1 hour. every 60 seconds an hour passes by and you earn a specific amount of money.
moneyernt=300
#start
~1
skiptime .95
playercounter=playercounter+_moneyernt
hint "an hour has passed and you have earned 300$ for security of the president."
~60
goto "start"
buypistol.sqs --- this allows you to buy a specific weapon, we'll use a pistol as example.
_cost=100
?(playercounter<_cost) : goto "end"
playercounter=playercounter-_cost
hint Format["You have spent £100 and £%1 left in your pocket", playercounter]
crate1 addweaponcargo ["cz75",1]
crate1 addmagazinecargo ["cz75mag",4]
man1 removeaction Action1
exit
#end
hint "Sorry you do not have enough money for a cz75. You need $100."
you need to add a crate called crate1 (ammo crate)
trigger for Counter.sqs:
size: whole map
condition: this
on activation: [] exec "Counter.sqs"
trigger for Time.sqs:
size: whole map
condition: this
on activation: [] exec "Time.sqs"
trigger for buypistol.sqs:
size: any
condition: (player distance >5 shopkeeper) ; shopkeeper is the name of a man.
on activation: [] exec "buypistol.sqs"
some may not work becuase I forgot small parameters like (player distance >5 shopkeeper).. im not sure but these are the 3 basic role-playing scripts! gtg eat dinner now.. cya guys
;D