[FilterScript] Rick Roll FilterScript [NOOB FRIENDLY]
#21

can u look here? i remove reason and admin, i want put just " Sscarface has been rickroll'd."

and commands is still bug: when i rickroll a player they show to me my name.

look here:

Код:
CMD:rickroll(playerid, params[])
{
        if(IsPlayerAdmin(playerid)) {
            new PlayerID; //The variable for the Player ID you put in for the player we want to Rick Roll.
            new str[128]; //Our variable for a message string.
			new pName[MAX_PLAYER_NAME];
            GetPlayerName(playerid, pName, sizeof(pName));
            if(sscanf(params, "us[64]", PlayerID)) return SendClientMessage(playerid, RED, "USAGE: /rickroll [playerid]"); //Tell SSCANF if the parameters/the syntax is written wrong to return a message (PlayerID and the reason used here)

            if(!IsPlayerConnected(PlayerID)) //If the ID is wrong or not connected, return the message below:
            return SendClientMessage(playerid, RED, "Player is not connected!");

            format(str, sizeof(str), "%s has been Rick Roll'd", pName); //format the string we've defined to send the message, playername and adminname are used to receive the information about the names
        	SendClientMessageToAll(COLOR_MAGENTA, str); //Send the message we formatted with format using the str variable we declared/made.
        	PlayAudioStreamForPlayer(PlayerID, "http://www.geekspeakradio.us/jocofullinterview41.mp3"); //Play the Rick Roll song. (Never Gonna Give You Up - Rick Astley.)
			GameTextForPlayer(PlayerID, "~p~You have been Rick Roll'd by an Admin!", 4000, 3); //Send a message to the players screen.
			SetPlayerHealth(PlayerID, 100.0); //Set the players health to %30.
		}
        return 1;
}
Reply


Messages In This Thread
Rick Roll FilterScript [NOOB FRIENDLY] - by NoahF - 29.08.2012, 22:41
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by Johnson_Brooks - 29.08.2012, 23:46
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by Cena44 - 30.08.2012, 00:19
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by Justin Reif - 30.08.2012, 14:07
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by NoahF - 30.08.2012, 19:46
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by Lordzy - 31.08.2012, 03:14
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by NoahF - 08.09.2012, 11:19
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by Guitar - 10.09.2012, 11:21
Respuesta: Re: Rick Roll FilterScript [NOOB FRIENDLY] - by HydraX - 10.09.2012, 15:50
Re: Respuesta: Re: Rick Roll FilterScript [NOOB FRIENDLY] - by NoahF - 10.09.2012, 19:53
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by NoahF - 10.09.2012, 19:55
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by dreami2504 - 10.09.2012, 20:23
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by NoahF - 10.09.2012, 21:05
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by DwayneVanKom - 07.10.2012, 01:37
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by Uberanwar - 07.10.2012, 08:34
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by Mr.Mercer - 07.10.2012, 09:11
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by NoahF - 07.10.2012, 10:06
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by M3mPHi$_S3 - 07.10.2012, 10:34
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by NoahF - 07.10.2012, 10:35
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by Glover2 - 20.01.2013, 03:56
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by sscarface - 20.01.2013, 12:43
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by Jack_Ryder - 20.01.2013, 13:19
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by yourfunworld - 20.01.2013, 16:55
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by kanuin - 20.01.2013, 17:29
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by DJ_Shocker - 23.01.2013, 04:00
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by DiGiTaL_AnGeL - 23.01.2013, 13:02
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by NoahF - 10.03.2013, 14:42
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by matthew1211 - 12.03.2013, 18:32
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by NicholasA - 20.04.2013, 10:56
Re: Rick Roll FilterScript [NOOB FRIENDLY] - by NoahF - 09.05.2013, 23:47

Forum Jump:


Users browsing this thread: 3 Guest(s)