[FilterScript] Sprunk Machines System. The RolePlay Version [1.1]
#1

Sprunk/Snack System
By 4ir W4ys

I got a Sprunk Machine System. That giving the players Health. + Anims and Support'd By 3D text label. It's my First Script.
It's Is to use becuase the Defines. Acually the Defines are Controlling almost Everything:

pawn Code:
#include <a_samp>

#define SprunkCMD "/drink" // Change it, To the Command you want, The player will need to Type near the Sprunk Machine.
#define PlaceErrorMessage "Warning: You are not near Sprunk/Snack Machine" // Change It, To the Message you want the server show, If the PlayerIsn't near Sprunk Machine...
#define ErColor 0xFFFFFFFF // Change it, To the Color You want the server will send With the Error Messages ( It's Currectly White )
#define Cost 3 // Change it, To the Cost of a drink in the Sprunk Machine.
#define GiveHP 20 // Change it, To the Health the playe Will get if He using Sprunk Machine
#define CostErrorMessage "Warning: You don't Have Enough Money." // Chanhe it, To the Message That will show if the player Don't hav Enought Money
#define SPRUNK_COUNT 10 // Chanhe it, To the Max Sprunk Machnies you create'd ;D
See? Everything. You can write there your message if he isn't near the Sprunk Machine. And if doesn't have money, You can edit The Command you want the player will neeed to type If he want's to drink, How much money he will need to pay (3$ be defult) and even how much health he will get After He using the sprunk machine.

Alright, Now I will Show you How to Create A Sprunk Machine:
First, Set the SPRUNK_COUNT in the defines to the number you want. Remember that the first SPRUNK COUNT is 0 and not 1 After That In public OnFilterScriptInit Write
This:
pawn Code:
public OnFilterScriptInit()
{
    SM[0] = CreateSprunkMachine(Float:X, Float:Y, Float:Z, Float:Angle);
    return 1;
}
I will explane:
Code:
Float:X - The X "co" You want to Set for the Sprunk machine
Float:Y - The Y "co" You want to Set for the Sprunk machine
Float:Z - The Z "co" You want to Set for the Sprunk machine
Float:Angle - The Angle you want to Set for the Sprunk machine
And Voila, You got Your first Sprunk Machine. Fo to the sprunk Machine, And a 3D text will be create'd
With the Command you need to Type if you want to Drink som'. That's All in Short. Have fun with it

Download
>> Pastebin <<

btw: Dont remove my Credits pls.

Reply
#2

Very nice, well done
Reply
#3

Quote:
Originally Posted by costel_nistor96
View Post
Very nice, well done
Thanks, Soon i will upload The next version.
Reply
#4

nice
thanks ..
Reply
#5

Quote:
Originally Posted by xkirill
View Post
nice
thanks ..
Thanks to you
Reply
#6

i think this thread Is teach someone to make this FS = So move this to tutorial
and edit this thread with sub:

Introducing:

Picture and screen:

bugs:

update:

Download:

Credits:


But Nice job 9/10
Reply
#7

Quote:
Originally Posted by Horrible
View Post
i think this thread Is teach someone to make this FS = So move this to tutorial
and edit this thread with sub:

Introducing:

Picture and screen:

bugs:

update:

Download:

Credits:


But Nice job 9/10
Wow, Thanks for the Insane rating. I left the sprunk machine bussiness for now, Im Making a Map :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)