[Help] i need script about foodshop
#1

sorry for my English na T_T

ummm i looking for script that make u buy the pizza chicken or something with Dialog style like offline mode.


Where can i find it?

Plssss help me =/\=
Reply
#2

I don't know if somebody made something like this.. Try scripting it for yourself using
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
and SetPlayerHealth(playerid, +20) if they buy stuff or whatever you want it to be.
Reply
#3

sure i found it on some server in thailand and i like it
Reply
#4

On a command
Код:
ShowPlayerDialog(playerid, 123, DIALOG_STYLE_LIST, "Food", "Pizza\nSnack\n", "Ok", "Cancel");
OnDialogResponse
Код:
if(dialogid == 123)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid, COLOR_RED, "You eated pizza");
 SetPlayerHealth(playerid, 100);
}
if(listitem == 1)
{
SendClientMessage(playerid, , "You eated Snack's");
 SetPlayerHealth(playerid, 100);
}
}
}
You can do and more things to eat,and is easy with dialog creator.
Take it from my signature
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)