[FilterScript] System DriveThru + Hunger & Thirst
#1

---------------------------------------------------------------------------------
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

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
--------------------------------------------------------------------------------
Reply
#2

First. O/ thanks for the nice FS...
Reply
#3

Would be better if it was in english
Reply
#4

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.
Reply
#5

Roleplay servers more and more remind me of SIMS.
Reply
#6

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!
Reply
#7

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.
Reply
#8

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 !
Reply
#9

Good job maye, interesting.
Reply
#10

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

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)