SA-MP Forums Archive
[FilterScript] System DriveThru + Hunger & Thirst - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] System DriveThru + Hunger & Thirst (/showthread.php?tid=563772)



System DriveThru + Hunger & Thirst - Learning - 17.02.2015

---------------------------------------------------------------------------------
SYSTEM


Drive Thru + Hunger & Thirst

What contains ?

Well, it was like a small system of Hunger & Thirst , where leaves more realistic , these shall go bars emptying , and when ending will receive a message in chat warning that need to eat , to make more realistic if it dies, when resurrect rod that was empty will be filled , showing that it is a new life and etc ..
It has command if you want to test the system they are, /SetHunger, /SetThirst, /RHunger, /RThirst, these commands can be seen through the /CommandsFS
OBS : Required folder DRIVETHRUHUNGERTHIRST

System Demo Video

https://www.youtube.com/watch?v=xLcgT6kqR-s

Operation
The operation is something simple , you only need to go on a Burger Shot , or other snack bar that has great parking space and look for checkpoint / TextLabel and type /Drive Thru . Thus opening a small Dialog so you can have the choice of eating or drinking something . This only works for those who have in a vehicle.
It has a command to be able to go to the Drive Thru using the command /DVS in dialog, to further facilitate , you can only use those for ADM Rcon !

Intention

Well, my intention was to make life easier for some RP/RPG servers , or any other style , for those workers who are doing load, and is low on life and can not get out of the vehicle to buy something , then just go in Drive Thru .

Some Explanations

The Drive Thru is only in large cafeterias. Great what I say is :

http://i.imgur.com/FFnFB7u.png

For in cafeterias as the picture below shows that do not have return around , there is the Drive Thru (E or location to add )

http://i.imgur.com/6WVv7Kg.png

Oh .. it is worth remembering that there is 6 Drive Thru . They being in LS[3], SF[1] e LV[2] !
Prints

1-http://i.imgur.com/nJx4BDS.png

2-http://i.imgur.com/pzaw5Jk.png

3-http://i.imgur.com/kojh21F.png

4-http://i.imgur.com/yaVIhFW.png

5-http://i.imgur.com/aqEstki.png

6-http://i.imgur.com/Ibk83Hd.png

print as is the progress and where they are
7-http://i.imgur.com/gxglgqv.png

Download

Pastebin

OBS : Required 2 includes , as follows progress & DOF2 / Was left the Brazilian menu , more can are changing !

Download : PROGRESS
Download : DOF2
--------------------------------------------------------------------------------


Re: System DriveThru + Hunger & Thirst - Eddye - 17.02.2015

First. O/ thanks for the nice FS...


Re: System DriveThru + Hunger & Thirst - JaydenJason - 17.02.2015

Would be better if it was in english


Re: System DriveThru + Hunger & Thirst - zT KiNgKoNg - 17.02.2015

Quote:
Originally Posted by JaydenJason
Посмотреть сообщение
Would be better if it was in english
I don't know if you're stupid or you just can't read but it is in english.


Re: System DriveThru + Hunger & Thirst - Kaperstone - 17.02.2015

Roleplay servers more and more remind me of SIMS.


Re: System DriveThru + Hunger & Thirst - ZombieNest - 17.02.2015

Quote:
Originally Posted by Kaperstone
Посмотреть сообщение
Roleplay servers more and more remind me of SIMS.
I still got my sims 4 installer dvd
fk it
: Better play SA-MP!


Re: System DriveThru + Hunger & Thirst - wahyumahadir - 19.02.2015

very awesome dude (Y) but i've a error

Код:
C:\Users\win 8.1\Downloads\trucking\pawno\include\YSI\y_iterate.inc(909) : warning 202: number of arguments does not match definition
C:\Users\win 8.1\Downloads\trucking\pawno\include\YSI\y_iterate.inc(922) : error 025: function heading differs from prototype
C:\Users\win 8.1\Downloads\trucking\filterscripts\Sleep_System.pwn(72) : warning 209: function "Itter_OnPlayerDisconnect" should return a value
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: System DriveThru + Hunger & Thirst - Learning - 24.02.2015

Quote:
Originally Posted by Eddye
Посмотреть сообщение
First. O/ thanks for the nice FS...
Thank you, what good taste!

Quote:
Originally Posted by JaydenJason
Посмотреть сообщение
Would be better if it was in english
is in English ! '-'

Quote:
Originally Posted by zT KiNgKoNg
Посмотреть сообщение
I don't know if you're stupid or you just can't read but it is in english.
Yep ^^

Quote:
Originally Posted by wahyumahadir
Посмотреть сообщение
very awesome dude (Y) but i've a error

Код:
C:\Users\win 8.1\Downloads\trucking\pawno\include\YSI\y_iterate.inc(909) : warning 202: number of arguments does not match definition
C:\Users\win 8.1\Downloads\trucking\pawno\include\YSI\y_iterate.inc(922) : error 025: function heading differs from prototype
C:\Users\win 8.1\Downloads\trucking\filterscripts\Sleep_System.pwn(72) : warning 209: function "Itter_OnPlayerDisconnect" should return a value
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
I ignore these errors , do the following , go to the folder and run the pawno pawno , and then you open the FS .
If you are already doing so I apologize , most will not know it helps !


Re: System DriveThru + Hunger & Thirst - Alex Magaсa - 24.02.2015

Good job maye, interesting.


Re: System DriveThru + Hunger & Thirst - Learning - 24.02.2015

Quote:
Originally Posted by Alex Magaсa
Посмотреть сообщение
Good job maye, interesting.
Thank you very much.


Re: System DriveThru + Hunger & Thirst - wahyumahadir - 25.02.2015

I added a bit of command

-/food

Code:
Code:
CMD:food(playerid,params[])
{
   if(isnull(params))
   {
      SendClientMessage(playerid, COLOR_LIGHTRED, "Pakai: /food [burger/pizza/chicken]");
   }
   if(strcmp(params,"burger",true) == 0)
   {
      if(IsPlayerInRangeOfPoint(playerid, 20, 366.0248, -73.3478, 1001.5078))
      {
         if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, 0xFF0000FF,"| DriveThru | You don't have $500 to buy!");
	 	 if(GetPVarInt(playerid,"HUNGER") >= 100) return SendClientMessage(playerid, COLOR_RED,"| HUNGER | You are satisfied, don't need more food!");
		 GivePlayerMoney(playerid, -2500);
         GetPlayerHealth(playerid,life),SetPlayerHealth(playerid,life+75.0);
         SetPVarInt(playerid,"HUNGER",GetPVarInt(playerid,"HUNGER")+80);
         SetProgressBarValue(PGHUNGER, GetPVarInt(playerid,"HUNGER"));
         UpdateProgressBar(PGHUNGER,playerid);
         return SendClientMessage(playerid, COLOR_BLUE, "Thank you for purchasing Burger");
      }
      else return SendClientMessage(playerid, COLOR_BLUE, "You must be in Burger Shot for eat a Burger");
   }
   if(strcmp(params,"pizza",true) == 0)
   {
      if(IsPlayerInRangeOfPoint(playerid, 50, 372.3520, -131.6510, 1001.4922))
      {
         if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, 0xFF0000FF,"| DriveThru | You don't have $500 to buy!");
	 	 if(GetPVarInt(playerid,"HUNGER") >= 100) return SendClientMessage(playerid, COLOR_RED,"| HUNGER | You are satisfied, don't need more food!");
		 GivePlayerMoney(playerid, -2500);
         GetPlayerHealth(playerid,life),SetPlayerHealth(playerid,life+75.0);
         SetPVarInt(playerid,"HUNGER",GetPVarInt(playerid,"HUNGER")+80);
         SetProgressBarValue(PGHUNGER, GetPVarInt(playerid,"HUNGER"));
         UpdateProgressBar(PGHUNGER,playerid);
         return SendClientMessage(playerid, COLOR_BLUE, "Thank you for purchasing Pizza");
      }
      else return SendClientMessage(playerid, COLOR_BLUE, "You must be in Stacked Pizza untuk fot eat a Pizza");
   }
   if(strcmp(params,"chicken",true) == 0)
   {
      if(IsPlayerInRangeOfPoint(playerid, 50, 365.7158, -9.8873, 1001.8516))
      {
         if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, 0xFF0000FF,"| DriveThru | You don't have $500 to buy!");
	 	 if(GetPVarInt(playerid,"HUNGER") >= 100) return SendClientMessage(playerid, COLOR_RED,"| HUNGER | You are satisfied, don't need more food!");
		 GivePlayerMoney(playerid, -2500);
         GetPlayerHealth(playerid,life),SetPlayerHealth(playerid,life+75.0);
         SetPVarInt(playerid,"HUNGER",GetPVarInt(playerid,"HUNGER")+80);
         SetProgressBarValue(PGHUNGER, GetPVarInt(playerid,"HUNGER"));
         UpdateProgressBar(PGHUNGER,playerid);
         return SendClientMessage(playerid, COLOR_BLUE, "Thank you for purchasing Chicken");
      }
      else return SendClientMessage(playerid, COLOR_BLUE, "You Must Be in Chickenbell to food a chicken");
   }
   return 1;
}
Give Me REP please