Posts: 16
Threads: 4
Joined: Jan 2008
Reputation:
0
I've decided to make a restaurant in MTA and convert it to SA:MP, but 1 question, how to make the "area" of "buying"
I mean you come to restaurant and how to make the command /buy or something and it gives you HP and makes /me eats bla bla.
Posts: 607
Threads: 41
Joined: Apr 2009
you shuld use ifplayertopoint for /me and give helath use SetPlayerHealth... Use search :P Or go to sampWIKI
Posts: 16
Threads: 4
Joined: Jan 2008
Reputation:
0
I didn't mean it.
I meant like:
You come to restaurant,
type /buy
the list of commands shows
you do /buy sprunk
and it gives you like 50 hp and makes /me drinks sprunk
Posts: 602
Threads: 3
Joined: Jun 2009
Reputation:
0
use onplayercommandtext, look on wiki for how this works
Then if player types /buy do a check to see if they are in the restaurant, as suggested playertopoint function.
then if they are display a menu or something with a list. Again you can find tutorials on how to do menues on the forum and on the wiki.
hope that helps.
I assume you already have some way for someone to enter the restaurant?
Posts: 16
Threads: 4
Joined: Jan 2008
Reputation:
0
Well, that helped, but I am "green" in these things so can anyone put me example code ?
;x
Posts: 16
Threads: 4
Joined: Jan 2008
Reputation:
0
Ok thanks, i'll try this.
Posts: 16
Threads: 4
Joined: Jan 2008
Reputation:
0
How to verify IsPlayerToPoint? Can you give me example coords?