[Help] i need script about foodshop - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help] i need script about foodshop (
/showthread.php?tid=331668)
[Help] i need script about foodshop -
skew - 05.04.2012
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 =/\=
Re: [Help] i need script about foodshop -
Aira - 05.04.2012
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.
Re: [Help] i need script about foodshop -
skew - 05.04.2012
sure i found it on some server in thailand and i like it
Re: [Help] i need script about foodshop -
TzAkS. - 05.04.2012
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