[FilterScript] New DJ job, suitable for everyone
#1

New DJ Job, suitable for everyone! [New & Improved]


Hello there, I'am Sandiel, and I'm presenting you today with a DJ job, that is easy to use, and most importantly fun to use, so you can rock a bit up in this bitch!

Short Description:
Commands:
* /assigndj [Playerid/PartOfName] [Hours]- For admins, assign one DJ in the server for a certain amount of time(only one has to be online)
* /prepareparty - The DJ has to prepare the party first, must be in the DJ Van (DYNAMIC)
* /startparty - Start the party once 5 or more players have joined the location of the party (via checkpoint)
* /endparty - I think this explains itself.

Requirements:
* ZCMD - Thanks to Zeex
* SSCANF2 - Thanks to ******
* IQ of over 50

__________________________________________________ _________________


Download:
* AMX file (Mediafire)
* PWN file (Mediafire)
* Pastebin link


Usage
Once an administrator assigns a DJ in the server for a certain amount of time (hours), this DJ will get access to the jobs commands. First off, he needs to use /prepareparty so that the party is prepared, he has to be in the DJ Van (DYNAMIC) and then a dialog pops up to everyone online that announces the party, if answered positively and they wish to join, a checkpoint is created, once they reach this checkpoint they must wait for another 4 players to join (5 minimum, you can change this too) And then once there are 5+ people in the party area the DJ can simply use /startparty to start the party and /play to access the music menu (custom URLs and song names) once he's finished he simply uses /endparty, as simple as that.


__________________________________________________ _________________
Reply
#2

Some feedbacks would be appreciated.
Reply
#3

good but i need a good admin system!
Reply
#4

Not bad
Reply
#5

well done. I see it's unique script, because there are no other such scripts
Reply
#6

WRONG SECTION !
gamemode's should be released at the section "Gamemode Scripts" not in "Filter Scripts and Include"
Reply
#7

Quote:
Originally Posted by xkirill
Посмотреть сообщение
WRONG SECTION !
gamemode's should be released at the section "Gamemode Scripts" not in "Filter Scripts and Include"
It is a fs, not a gm!
Reply
#8

Quote:
Originally Posted by pasha97
Посмотреть сообщение
It is a fs, not a gm!
fix it then it should be set to FS not GM
On Topic: Nice script.
Reply
#9

Nice Script
Reply
#10

You should of posted a pastebin link and a ready .pwn and .amx, however good job it is unique
Reply
#11

This is more of a tutorial than it's a release, stop being lazy lol
Anyways, thanks for the support guys, hope you enjoy.
Reply
#12

Quote:
Originally Posted by Sandiel
Посмотреть сообщение
This is more of a tutorial than it's a release, stop being lazy lol
Tutorial?
i dont see anything explained right there,that looks like an Copy-Paste work, and even if it is a "Tutorial", then it again is the wrong section for it?
Reply
#13

A video would be appreciated, I want to see how it works instead of just copying the codes and testing it ourself.
Reply
#14

Nice Work
Reply
#15

Quote:
Originally Posted by Raiden Dragneel
Посмотреть сообщение
A video would be appreciated, I want to see how it works instead of just copying the codes and testing it ourself.
I think that can be arranged, though I don't think I'll find 5+ people to start the party...
here's how it should go:
-DJ must get a CD from any 24/7 store.
-DJ must be in the DJ van (vehID 459) and must have the CD to /prepare.
-Then, he must wait for 5 people to /joinparty and get to the party location (checkpoint)
-then the DJ, after getting 5+ people, can /startparty, and I will get a list of songs available (adding a custom item in the list so they can play their own links besides the songs in the dialog/menu)
-Once their done, he can /stopparty - I think that explains itself...



NOTE: I'm adding a new edit to this, so when the DJ logs off (leavin, banned, kicked, crashed) the party is over.
Reply
#16

Quote:
Originally Posted by Littlehelper[MDZ]
Посмотреть сообщение
Tutorial?
i dont see anything explained right there,that looks like an Copy-Paste work, and even if it is a "Tutorial", then it again is the wrong section for it?
I can hardly read through your english communitcation skills, but anyways...This is my work, I haven't copy/paste it from anyone, it's not exactly a tutorial, just a release with instructions...I made a mistake, instead of [Filterscript] I clicked on [GameMode]...
It's not in the wrong section, just a wrong title, that's all.


NOTE: um, just a heads up, the word "an" only comes BEFORE a word that starts with vocal letters (like a, h, o, i)
Reply
#17

There's one thing what I can say..

NICE
Reply
#18

This will terminate your server honestly.

pawn Код:
public OnPlayerUpdate(playerid)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    if(IsPlayerInRangeOfPoint(i, 6, partyX, partyY, partyZ))
    {
        PplJoinParty++;
    }
    return 1;
}
I think you don't realize that OnPlayerUpdate calls more then once in a second. There this will waste so much memory (afaik with that loop). This is a infinite loop lol.
Reply
#19

Quote:
Originally Posted by Lorenc_
Посмотреть сообщение
This will terminate your server honestly.

pawn Код:
public OnPlayerUpdate(playerid)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    if(IsPlayerInRangeOfPoint(i, 6, partyX, partyY, partyZ))
    {
        PplJoinParty++;
    }
    return 1;
}
I think you don't realize that OnPlayerUpdate calls more then once in a second. There this will waste so much memory (afaik with that loop). This is a infinite loop lol.
I see your point, I have added the if statement to check wether if a party is prepared or not, if it is, it'll loop, otherwise it won't do anything..(Also, when a player /startparty's, PartyPrepared = 0; so it's not an infinite loop anymore, just for a period of time.)
Thanks for the heads up, appreciated.

EDIT: I guess a better solution would be to use a timer for this, but I can't do that right now as I have lost this script, and too lazy to post the timer, will do so soon however.
Reply
#20

is this a FS? or a tutorial? cuz i dont see ANY download link, this looks more like a tutorial, anyways good job
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)