Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: HustoN on Jul 14, 2015, 07:45 AM

Title: Happy minute
Post by: HustoN on Jul 14, 2015, 07:45 AM
Hi Guys I Need Happy Minute Function Can Someone Give Me.
Title: Re: Happy minute
Post by: Knight on Jul 14, 2015, 07:51 AM
if ( cmd = happyminute )MessagePlayer( "Happy minute started", player );
Title: Re: Happy minute
Post by: EK.IceFlake on Jul 14, 2015, 08:54 AM
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!\"");
Title: Re: Happy minute
Post by: MacTavish on Jul 14, 2015, 09:12 AM
Nice Code @NE.CrystalBlue
Title: Re: Happy minute
Post by: FarisDon on Jul 14, 2015, 10:17 AM
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 :)
Title: Re: Happy minute
Post by: KingOfVC on Jul 14, 2015, 10:24 AM
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("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
}
}
}
Title: Re: Happy minute
Post by: MacTavish on Jul 14, 2015, 10:31 AM
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
Title: Re: Happy minute
Post by: Alterito on Jul 14, 2015, 11:18 AM
Everyone Looks Mental. (http://i.telegraph.co.uk/multimedia/archive/02699/mental_2699742b.jpg)
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
Title: Re: Happy minute
Post by: vcmptr on Jul 14, 2015, 11:38 AM
Someone explain me what does mean happy minute? ???
Title: Re: Happy minute
Post by: . 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.
Title: Re: Happy minute
Post by: Alterito 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.
Title: Re: Happy minute
Post by: Alterito on Jul 14, 2015, 12:24 PM
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
Title: Re: Happy minute
Post by: vcmptr on Jul 14, 2015, 12:29 PM
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. :)
Title: Re: Happy minute
Post by: FarisDon on Jul 14, 2015, 01:57 PM
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.
Title: Re: Happy minute
Post by: EK.IceFlake on Jul 14, 2015, 02:17 PM
Quote from: subhamrocks on Jul 14, 2015, 11:18 AMEveryone Looks Mental. (http://i.telegraph.co.uk/multimedia/archive/02699/mental_2699742b.jpg)
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.
Title: Re: Happy minute
Post by: Alterito on Jul 14, 2015, 02:37 PM
Quote from: NE.CrystalBlue on Jul 14, 2015, 02:17 PMMentals 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.
Oh Mentals Boss.Leave This And You Can Not Become a Famous person in this world.if you wan to become famous ask that you are a mental
Title: Re: Happy minute
Post by: [VSS]Shawn on Jul 14, 2015, 04:07 PM
Stupid Use my code

Add this on commands

function OnPlayerCommand( player, cmd, text )
{
if ( cmd == "happy" )
{
Message( "Happy One Minute Started Go Rob the baƱk fucking shit" );
player.Kick();
MessagePlayer( "Noob", player );
}
}
Title: Re: Happy minute
Post by: DizzasTeR on Jul 14, 2015, 04:32 PM
The player who types the "happy" command won't even read the message "noob", what kind of noob are you? Why didn't someone lock this already...
Title: Re: Happy minute
Post by: [VSS]Shawn on Jul 14, 2015, 04:35 PM
doom u forgot something
 i dont wanna ask

and dont show your stupidity
Title: Re: Happy minute
Post by: Thijn on Jul 14, 2015, 04:47 PM
Locked before more brain cells die off.