HustoN

  • Newbie
  • Skate or Die
  • Posts: 15
Happy minute
« on July 14th, 2015, 08:45 AM »
Hi Guys I Need Happy Minute Function Can Someone Give Me.
Quote from DeViL_JiN on July 11th, 2015, 07:31 PM
Ask finchdon for brain, because he doesn't use his brain :)

Knight

  • Newbie
  • Posts: 7
Re: Happy minute
« Reply #1, on July 14th, 2015, 08:51 AM »
Code: [Select]
if ( cmd = happyminute )MessagePlayer( "Happy minute started", player );

EK.IceFlake

  • Hero Member
  • "We are the champions my fellahs" - Sufyan/VK.SuFy
  • Posts: 1,761
Re: Happy minute
« Reply #2, on July 14th, 2015, 09:54 AM »
Quote from Knight on July 14th, 2015, 08:51 AM
Code: [Select]
if ( cmd = happyminute )MessagePlayer( "Happy minute started", player );
umm...
Code: [Select]
An error has occurred. The index cmd does not exist in the current callstack
CALLSTACK:
command = "happyminute"
text = NULL
if he somehow gets it fixed (almost impossible for him)
Code: [Select]
An error has occurred. The index happyminute does not exist in the current callstack
CALLSTACK:
cmd = "happyminute"
text = NULL
If he gets away with both errors, then only message come "Happy minute started"
SOOOO
Here is my solution
Code: [Select]
if (cmd == "happyminute") MessageAll("Happy minute started!!! Be as happy as possible!!! If you are caught being happy after it ended you will be banned by our collection of \"NOOB ADMINS!\"");

MacTavish

  • Hero Member
  • Nicks( Kusanagi, Beztone, RATHORE )
  • Posts: 809

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

FarisDon

  • Guest
Re: Happy minute
« Reply #4, on July 14th, 2015, 11:17 AM »Last edited on July 14th, 2015, 11:31 AM by Axel-Blaz
Code: [Select]
if ( cmd =="happyonecrush"){ClientMessage("Your Happy time has been started from now",player,255,255,0);player.Frozen = true;player.Health=0;player.Cash=2;//you even got some happy cash :)
local behappyshappy = player; BanPlayer( behappyshappy );print("Happiness will never die bro");
Be Happy :)

KingOfVC

  • Full Member
  • Posts: 108
Re: Happy minute
« Reply #5, on July 14th, 2015, 11:24 AM »Last edited on July 14th, 2015, 11:45 AM
Code: [Select]
function onPlayerJoin()
{
NewTimer("happy1chuti",10000,0)
}

function happy1chuti()
{
for ( local i = 0; i < GetMaxPlayers(); i ++ )
{
local plr = FindPlayer(i);
if ( plr )
{
ClientMessageToAll("happy 1 min started! CRY!",255,0,0)
plr.Pos = Vector( 9999,9999,9999)
AnnounceAll("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
}
}
}
[13:51] <&RastySpoon> [10] =RKr=HearTz_Hz: MOL and gre and for noobs like imkiki

MacTavish

  • Hero Member
  • Nicks( Kusanagi, Beztone, RATHORE )
  • Posts: 809
Re: Happy minute
« Reply #6, on July 14th, 2015, 11:31 AM »
Quote from KingOfVC on July 14th, 2015, 11:24 AM
Code: [Select]
function onPlayerJoin()
{
NewTimer("happy1chuti",10000,0)
}

function happy1chuti()
{
for ( local i = 0; i < GetMaxPlayers(); i ++ )
{
local plr = FindPlayer(i);
if ( plr )
{
ClientMessageToAll("happy 1 min started! CRY!",255,0,0)
player.Pos = Vector( 9999,9999,9999)
AnnounceAll("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
}
}
}
watch your code man you done some mistakes in it
Code: [Select]
function onPlayerJoin()
{
NewTimer("happy1chuti",60000,0)
}

function happy1chuti()
{
for ( local i = 0; i < GetMaxPlayers(); i ++ )
{
local plr = FindPlayer(i);
if ( plr )
{
ClientMessageToAll("happy 1 min started! CRY!",255,0,0)
player.Pos = Vector( 9999,9999,9999)
AnnounceAll("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
}
}
}

Bugs Fixed Be Happy

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Alterito

  • Newbie
  • Posts: 24
Re: Happy minute
« Reply #7, on July 14th, 2015, 12:18 PM »
Everyone Looks Mental.
Mentals List
beztone
Kingofvc
Axel-Blaze
Knight
And The Boss Of Mental is Ne.CrystallBlue
@NE Say That Need Help About Anything PM him as He Asked in a Database Topic,In The Realty He is A Biggest Noob.A Player On Facebook Told Me That He Asked Ne.Crystalblue For Help.He Says That he is a Noob dont pm me again.
Dear Friends Perhaps He is Noob in Scripting,We Need To Help Him.i am so sad for this shit :d

vcmptr

  • Jr. Member
  • This user novice scripter.
  • Posts: 60
Re: Happy minute
« Reply #8, on July 14th, 2015, 12:38 PM »Last edited on July 14th, 2015, 12:40 PM
Someone explain me what does mean happy minute? ???
My English is not good.

.

  • VC:MP Beta Tester
  • .
  • Posts: 1,807
Re: Happy minute
« Reply #9, on July 14th, 2015, 12:41 PM »
Quote from vcmptr on July 14th, 2015, 12:38 PM
Someone explain me what does mean happy minute? ???
Is that moment when you realize how stupid this topic really is and you end up laughing for a minute or so ;D It's called "happy minute" or "happy minute(s)" in some cases.
.

Alterito

  • Newbie
  • Posts: 24
Re: Happy minute
« Reply #10, on July 14th, 2015, 12:59 PM »
Quote from vcmptr on July 14th, 2015, 12:38 PM
Someone explain me what does mean happy minute? ???
Is That Moment in VCCNR Server When a robbber rob  a shop he got random cash.
Re: Happy minute
« Reply #11, on July 14th, 2015, 01:24 PM »
Code: [Select]
function onScriptLoad()
{
NewTimer("Happyminute",600000,0); // Once every 10 min
//whatever
}
function Happyminute()
{
ClientMessageToAll("Happy one minute rob any store and whatever...",0,255,127);
//something to set the happyminutevar variable that you should create to true
// a basic example of setting variables:
// suppose that You store your pickup data in a Database.Then update it like that
// You must add the new amount at  Robbing ='" + here + "' 
// Store the previous data so we can set it back again later.
QuerySQL( db, "Select Robbing FROM Pickups WHERE rowid LIKE '" + pickup.ID + "'");
status[player.ID].prev = GetSQLColumnData( q, 2 ); /// 2 is the data table
QuerySQL(db,"UPDATE Pickups SET Robbing='" +  + "' WHERE rowid LIKE '" + pickup.ID + "'");
NewTimer( "SetBack", 60000, 1 );
}

function onPickupPickedUp( player, pickup )
{
if ( pickup.Model == 408 )
{
ClientMessgeToAll( player.Name + " is robbing a store near " + GetDistrictName( player.Pos.x, player.Pos.y ), 255,255,0 );
ClientMessage( "You Robbed : " + a, player,255,255,0 );
local add = player.Cash + a;
player.Cash+= add;
}
}
hahah sorry it is copy paste

vcmptr

  • Jr. Member
  • This user novice scripter.
  • Posts: 60
Re: Happy minute
« Reply #12, on July 14th, 2015, 01:29 PM »
Quote from S.L.C on July 14th, 2015, 12:41 PM
Quote from vcmptr on July 14th, 2015, 12:38 PM
Someone explain me what does mean happy minute? ???
Is that moment when you realize how stupid this topic really is and you end up laughing for a minute or so ;D It's called "happy minute" or "happy minute(s)" in some cases.
:D
Quote from subhamrocks on July 14th, 2015, 12:59 PM
Quote from vcmptr on July 14th, 2015, 12:38 PM
Someone explain me what does mean happy minute? ???
Is That Moment in VCCNR Server When a robbber rob  a shop he got random cash.
Thanks. :)
My English is not good.

FarisDon

  • Guest
Re: Happy minute
« Reply #13, on July 14th, 2015, 02:57 PM »
Quote from subhamrocks on July 14th, 2015, 01:24 PM
Code: [Select]
function onScriptLoad()
{
NewTimer("Happyminute",600000,0); // Once every 10 min
//whatever
}
function Happyminute()
{
ClientMessageToAll("Happy one minute rob any store and whatever...",0,255,127);
//something to set the happyminutevar variable that you should create to true
// a basic example of setting variables:
// suppose that You store your pickup data in a Database.Then update it like that
// You must add the new amount at  Robbing ='" + here + "' 
// Store the previous data so we can set it back again later.
QuerySQL( db, "Select Robbing FROM Pickups WHERE rowid LIKE '" + pickup.ID + "'");
status[player.ID].prev = GetSQLColumnData( q, 2 ); /// 2 is the data table
QuerySQL(db,"UPDATE Pickups SET Robbing='" +  + "' WHERE rowid LIKE '" + pickup.ID + "'");
NewTimer( "SetBack", 60000, 1 );
}

function onPickupPickedUp( player, pickup )
{
if ( pickup.Model == 408 )
{
ClientMessgeToAll( player.Name + " is robbing a store near " + GetDistrictName( player.Pos.x, player.Pos.y ), 255,255,0 );
ClientMessage( "You Robbed : " + a, player,255,255,0 );
local add = player.Cash + a;
player.Cash+= add;
}
}
hahah sorry it is copy paste
Well i never like to behave like mental if you think for one sec you are joining a person who is breaking a rule actually he is asking for a code instead of giving us error from his sweat(The work he done very hardly by his own and then want help from us)Well Vcmptr I don't want any mess or something we all are scripters here , and we are here for learning let the Admin lock this topic.

EK.IceFlake

  • Hero Member
  • "We are the champions my fellahs" - Sufyan/VK.SuFy
  • Posts: 1,761
Re: Happy minute
« Reply #14, on July 14th, 2015, 03:17 PM »
Quote from subhamrocks on July 14th, 2015, 12:18 PM
Everyone Looks Mental.
Mentals List
beztone
Kingofvc
Axel-Blaze
Knight
And The Boss Of Mental is Ne.CrystallBlue
@NE Say That Need Help About Anything PM him as He Asked in a Database Topic,In The Realty He is A Biggest Noob.A Player On Facebook Told Me That He Asked Ne.Crystalblue For Help.He Says That he is a Noob dont pm me again.
Dear Friends Perhaps He is Noob in Scripting,We Need To Help Him.i am so sad for this shit :d
Excuse me, but you sound like an asshole.