SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 05/12/2011, 07:55 PM   #1
Deltac0_
Little Clucker
 
Deltac0_'s Avatar
 
Join Date: Dec 2011
Posts: 19
Reputation: 7
Cool RickRoll FS - [0.3d] - Rickroll all players - ZCMD

Just coded this in few minutes. Works only with 0.3d. Make sure you have ZCMD.

Command: /rickroll

NOTE: Anyone can use this command, I suggest to make it admin-only to prevent random Rickrollin'...

Thanks Biesmen for the new loop.

Code:
#include <a_samp>
#include <zcmd>

public OnFilterScriptInit()
{
	print("\n ~~RickRoll FS by Deltac0 Loaded~~\n");
	return 1;
}

CMD:rickroll(playerid, params[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected( i ))
        {
            PlayAudioStreamForPlayer(i, "http://deltac0.com/m/rick.mp3");
        }
    }
    return 1;
}

Quote:
We're no strangers to love
You know the rules and so do I
A full commitment's what I'm thinking of
You wouldn't get this from any other guy

I just wanna tell you how I'm feeling
Gotta make you understand

Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you

We've know each other for so long
Your heart's been aching
But you're too shy to say it
Inside we both know what's been going on
We know the game and we're gonna play it

And if you ask me how I'm feeling
Don't tell me you're too blind to see

Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you

Repeat Chorus

Give you up, give you up
Give you up, give you up
Never gonna give,
Never gonna give, give you up
Never gonna give,
Never gonna give, give you up

We've know each other for so long
Your heart's been aching
But you're too shy to say it
Inside we both know what's been going on
We know the game and we're gonna play it

I just wanna tell you how I'm feeling
Gotta make you understand

Chorus times three

Last edited by Deltac0_; 05/12/2011 at 09:30 PM.
Deltac0_ is offline   Reply With Quote
Old 05/12/2011, 08:01 PM   #2
DirtyBastard
Little Clucker
 
Join Date: Nov 2011
Posts: 30
Reputation: 9
Default Re: RickRoll FS - [0.3d] - Rickroll all players - ZCMD

Point of this?
DirtyBastard is offline   Reply With Quote
Old 05/12/2011, 08:02 PM   #3
jueix
Banned
 
Join Date: Dec 2010
Posts: 419
Reputation: 48
Default Re: RickRoll FS - [0.3d] - Rickroll all players - ZCMD

its funny thats his point.
jueix is offline   Reply With Quote
Old 05/12/2011, 08:04 PM   #4
fiki574
Gangsta
 
fiki574's Avatar
 
Join Date: Mar 2011
Location: Croatia
Posts: 841
Reputation: 167
Default Re: RickRoll FS - [0.3d] - Rickroll all players - ZCMD

Nevermind!
__________________

Last edited by fiki574; 26/04/2012 at 02:05 PM.
fiki574 is offline   Reply With Quote
Old 05/12/2011, 08:04 PM   #5
Deltac0_
Little Clucker
 
Deltac0_'s Avatar
 
Join Date: Dec 2011
Posts: 19
Reputation: 7
Default Re: RickRoll FS - [0.3d] - Rickroll all players - ZCMD

Quote:
Originally Posted by DirtyBastard View Post
Point of this?
You have 100/100 players on your server...
then they all are just playing normally...
but then you type /rickroll in the chatbox and the whole server goes crazy.

I know, you have always wanted to do that.
Now you can.
Go grab my script and copy paste it to your GM and release as your own or whatever.
I don't care.

_____________________________


Quote:
Originally Posted by fiki574_CRO View Post
Code:
CMD:rickroll(playerid[, params[])
{
    PlayAudioStreamForPlayer(playerid, "http://deltac0.com/m/rick.mp3");
    return 1;
}
Wouldn't that play it just for the player with the specified playerid? And theres a typo in your code, now go find it.
Deltac0_ is offline   Reply With Quote
Old 05/12/2011, 08:06 PM   #6
fiki574
Gangsta
 
fiki574's Avatar
 
Join Date: Mar 2011
Location: Croatia
Posts: 841
Reputation: 167
Default Re: RickRoll FS - [0.3d] - Rickroll all players - ZCMD

Quote:
Originally Posted by Deltac0_ View Post
You have 100/100 players on your server... then they all are just playing normally... but then you type /rickroll in the chatbox and the whole server goes crazy.

I know, you have always wanted to do that. Now you can. Go grab my script and copy paste it to your GM and release as your own or whatever. I don't care.
ROFL-ed on this:

Code:
the whole server goes crazy.
__________________
fiki574 is offline   Reply With Quote
Old 05/12/2011, 08:08 PM   #7
Epic_Mickey
Gangsta
 
Epic_Mickey's Avatar
 
Join Date: Jul 2011
Posts: 984
Reputation: 967
Default Re: RickRoll FS - [0.3d] - Rickroll all players - ZCMD

Why should everybody be crazy?
Epic_Mickey is offline   Reply With Quote
Old 05/12/2011, 08:09 PM   #8
Lorenc_
High-roller
 
Lorenc_'s Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 4,269
Reputation: 1129
Default Re: RickRoll FS - [0.3d] - Rickroll all players - ZCMD

Quote:
Originally Posted by fiki574_CRO View Post
Firstly why are you defining players when they are defined already (except if you dont want to play it for all players)!

Code:
CMD:rickroll(playerid[, params[])
{
    PlayAudioStreamForPlayer(playerid, "http://deltac0.com/m/rick.mp3");
    return 1;
}

And wth? You just basicly used one line of code which is pasted URL! *facepalm*
This only directs to one player, the other directs to all players. You cannot facepalm at what functionality it clearly shows.

Code:
for(new i, j = GetMaxPlayers(); i < j; i++)

Make your LOOP more safer lol.
__________________
Join the best Cops And Robbers in SA-MP, today. svr.irresistiblegaming.com:7777

Lorenc_ is offline   Reply With Quote
Old 05/12/2011, 08:10 PM   #9
Deltac0_
Little Clucker
 
Deltac0_'s Avatar
 
Join Date: Dec 2011
Posts: 19
Reputation: 7
Default Re: RickRoll FS - [0.3d] - Rickroll all players - ZCMD

Quote:
Originally Posted by fiki574_CRO View Post
ROFL-ed on this:

Code:
the whole server goes crazy.
Read the post above yours. And why you're using [code] tags when theres [quote] available?
Deltac0_ is offline   Reply With Quote
Old 05/12/2011, 08:15 PM   #10
Deltac0_
Little Clucker
 
Deltac0_'s Avatar
 
Join Date: Dec 2011
Posts: 19
Reputation: 7
Default Re: RickRoll FS - [0.3d] - Rickroll all players - ZCMD

Quote:
Originally Posted by Lorenc_ View Post
This only directs to one player, the other directs to all players. You cannot facepalm at what functionality it clearly shows.

Code:
for(new i, j = GetMaxPlayers(); i < j; i++)

Make your LOOP more safer lol.
Finally someone who understands.
Deltac0_ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorial] STRCMP and ZCMD - how to change your commands to ZCMD Swyft Tutorials 12 14/01/2015 09:58 PM
Revolutionary Roleplay [Heavy RP - By the Players, For the Players] Thoughts? Jarred Miller General 5 12/06/2011 07:06 PM


All times are GMT. The time now is 11:57 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.