New DJ job, suitable for everyone[UPDATED] -
Sandiel - 01.06.2012
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.
__________________________________________________ _________________
Re: New DJ job, suitable for everyone -
Sandiel - 01.06.2012
Some feedbacks would be appreciated.
Re: New DJ job, suitable for everyone -
irfu - 01.06.2012
good but i need a good admin system!
Re: New DJ job, suitable for everyone -
Kerlan - 01.06.2012
Not bad
Re: New DJ job, suitable for everyone -
pasha97 - 01.06.2012
well done. I see it's unique script, because there are no other such scripts
Re: New DJ job, suitable for everyone -
Kaperstone - 01.06.2012
WRONG SECTION !
gamemode's should be released at the section "Gamemode Scripts" not in "Filter Scripts and Include"
Re: New DJ job, suitable for everyone -
pasha97 - 01.06.2012
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!
Re: New DJ job, suitable for everyone -
Rg-Gaming.Info - 01.06.2012
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.
Re: New DJ job, suitable for everyone -
Kathleen - 01.06.2012
Nice Script
Re: New DJ job, suitable for everyone -
Saad_ - 01.06.2012
You should of posted a pastebin link and a ready .pwn and .amx, however good job it is unique
Re: New DJ job, suitable for everyone -
Sandiel - 01.06.2012
This is more of a tutorial than it's a release, stop being lazy lol
Anyways, thanks for the support guys, hope you enjoy.
Re: New DJ job, suitable for everyone -
Littlehelper - 02.06.2012
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?
Re: New DJ job, suitable for everyone -
Raiden Dragneel - 02.06.2012
A video would be appreciated, I want to see how it works instead of just copying the codes and testing it ourself.
Re: New DJ job, suitable for everyone -
sienal - 02.06.2012
Nice Work
Re: New DJ job, suitable for everyone -
Sandiel - 02.06.2012
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.
Re: New DJ job, suitable for everyone -
Sandiel - 02.06.2012
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)
Re: New DJ job, suitable for everyone -
mickos - 02.06.2012
There's one thing what I can say..
NICE
Re: New DJ job, suitable for everyone -
Lorenc_ - 02.06.2012
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.
Re: New DJ job, suitable for everyone -
Sandiel - 02.06.2012
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.
Re: New DJ job, suitable for everyone -
niels44 - 02.06.2012
is this a FS? or a tutorial? cuz i dont see ANY download link, this looks more like a tutorial, anyways good job