Happy minute

Started by HustoN, Jul 14, 2015, 07:45 AM

Previous topic - Next topic

HustoN

Hi Guys I Need Happy Minute Function Can Someone Give Me.
Quote from: DeViL_JiN on Jul 11, 2015, 06:31 PMAsk finchdon for brain, because he doesn't use his brain :)

Knight

if ( cmd = happyminute )MessagePlayer( "Happy minute started", player );

EK.IceFlake

Quote from: Knight on Jul 14, 2015, 07:51 AMif ( cmd = happyminute )MessagePlayer( "Happy minute started", player );
umm...
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)
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
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


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

Retired VC:MP Player/Scripter :P

FarisDon

#4
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

#5
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("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
}
}
}

MacTavish

Quote from: KingOfVC on Jul 14, 2015, 10:24 AMfunction 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
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

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

#8
Someone explain me what does mean happy minute? ???
My English is not good.

.

Quote from: vcmptr on Jul 14, 2015, 11:38 AMSomeone 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

Quote from: vcmptr on Jul 14, 2015, 11:38 AMSomeone explain me what does mean happy minute? ???
Is That Moment in VCCNR Server When a robbber rob  a shop he got random cash.

Alterito

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

Quote from: S.L.C on Jul 14, 2015, 11:41 AM
Quote from: vcmptr on Jul 14, 2015, 11:38 AMSomeone 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 Jul 14, 2015, 11:59 AM
Quote from: vcmptr on Jul 14, 2015, 11:38 AMSomeone 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

Quote from: subhamrocks on Jul 14, 2015, 12:24 PMfunction 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

Quote from: subhamrocks on Jul 14, 2015, 11:18 AMEveryone 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.