Author Topic: /count  (Read 2289 times)

88nateatx

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +2/-7
  • Doesn't give a damn about his bad reputation.
    • View Profile
/count
« on: October 25, 2011, 03:03:14 am »
Code: [Select]
function onPlayerCommand( player, cmd, text )
{
if ( cmd == "count" )
{
NewTimer( Message, 1000, 1, "=3=", 200, 0, 0 );
NewTimer( Message, 2000, 1, "=2=", 200, 0, 0 );
NewTimer( Message, 3000, 1, "=1=", 200, 200, 0 );
NewTimer( Message, 4000, 1, "=GO!=", 0, 200, 0 );
}
}
Just a colorful little counting script snippet.
Useful for DMs.
« Last Edit: October 29, 2011, 04:07:29 am by 88nateatx »


Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-15
    • View Profile
Re: /count
« Reply #1 on: October 28, 2011, 01:12:28 pm »
That snippet wont work :P
You start of with an elseif while you need to use if first.

This should work:
Code: [Select]
function onPlayerCommand( player, cmd, text )
{
   if ( cmd == "count" )
{
NewTimer( Message, 1000, 1, "=3=", 200, 0, 0 );
NewTimer( Message, 2000, 1, "=2=", 200, 0, 0 );
NewTimer( Message, 3000, 1, "=1=", 200, 200, 0 );
NewTimer( Message, 4000, 1, "=GO!=", 0, 200, 0 );
}
}

88nateatx

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +2/-7
  • Doesn't give a damn about his bad reputation.
    • View Profile
Re: /count
« Reply #2 on: October 29, 2011, 04:04:19 am »
Here's your solution! ( Kinda lazy of me, but who cares?  :P )

First add:

Code: [Select]
function Count ( player )
{
BigMessage( player ,"=3=" , 5000, 3 );
}
function Count2 ( player )
{
BigMessage( player ,"=2=" , 5000, 3 );
}
function Count3 ( player )
{
BigMessage( player ,"=1=" , 5000, 3 );
}
function CountGO ( player )
{
BigMessage( player ,"=GO!=" , 5000, 3 );
}

Then:
Code: [Select]
function onPlayerCommand( player, cmd, text )
{
 if ( cmd == "count" )
{
NewTimer( Count, 1000, 1, player );
NewTimer( Count2, 2000, 1, player );
NewTimer( Count3, 3000, 1, player );
NewTimer( CountGO, 4000, 1, player );
}
}

Enjoy!

BTW, Thijn, got that fixed, thanks for reminding me ;D
« Last Edit: October 29, 2011, 04:07:13 am by 88nateatx »


Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-15
    • View Profile
Re: /count
« Reply #3 on: October 29, 2011, 01:55:36 pm »
Here's your solution! ( Kinda lazy of me, but who cares?  :P )

First add:

Code: [Select]
function Count ( player )
{
BigMessage( player ,"=3=" , 5000, 3 );
}
function Count2 ( player )
{
BigMessage( player ,"=2=" , 5000, 3 );
}
function Count3 ( player )
{
BigMessage( player ,"=1=" , 5000, 3 );
}
function CountGO ( player )
{
BigMessage( player ,"=GO!=" , 5000, 3 );
}

Then:
Code: [Select]
function onPlayerCommand( player, cmd, text )
{
 if ( cmd == "count" )
{
NewTimer( Count, 1000, 1, player );
NewTimer( Count2, 2000, 1, player );
NewTimer( Count3, 3000, 1, player );
NewTimer( CountGO, 4000, 1, player );
}
}

Enjoy!

BTW, Thijn, got that fixed, thanks for reminding me ;D
Just use
Code: [Select]
function onPlayerCommand( player, cmd, text )
{
   if ( cmd == "count" )
{
NewTimer( "BigMessage", 1000, 1, player ,"=3=" , 5000, 3 );
NewTimer( "BigMessage", 2000, 1, player ,"=2=" , 5000, 3 );
NewTimer( "BigMessage", 3000, 1, player ,"=1=" , 5000, 3 );
NewTimer( "BigMessage", 4000, 1, player ,"=GO!=" , 5000, 3 );
}
}

Ankit

  • Newbie
  • *
  • Posts: 21
  • Karma: +0/-3
    • View Profile
Re: /count
« Reply #4 on: February 20, 2012, 01:04:01 pm »
Code: [Select]
function onPlayerCommand( player, cmd, text )
{
if ( cmd == "count" )
{
NewTimer( Message, 1000, 1, "=3=", 200, 0, 0 );
NewTimer( Message, 2000, 1, "=2=", 200, 0, 0 );
NewTimer( Message, 3000, 1, "=1=", 200, 200, 0 );
NewTimer( Message, 4000, 1, "=GO!=", 0, 200, 0 );
}
}
Just a colorful little counting script snippet.
Useful for DMs.
I Have Did It Like /count not like /c count
look:
Code: [Select]
else if ( szCommand == "count" )
{
              NewTimer( "BigMessage", 1000, 1, player ,"=3=" , 5000, 3 );
              NewTimer( "BigMessage", 2000, 1, player ,"=2=" , 5000, 3 );
              NewTimer( "BigMessage", 3000, 1, player ,"=1=" , 5000, 3 );
              NewTimer( "BigMessage", 4000, 1, player ,"=GO!=" , 5000, 3 );
}
so when i type /count nothing happens why? do i have to define a pPlayer too?

Dopelherz

  • Newbie
  • *
  • Posts: 11
  • Karma: +1/-0
    • View Profile
Re: /count
« Reply #5 on: May 23, 2017, 02:23:19 pm »
Gtfo, bumptard. Nobody needs you. Go back to vcmp forum

mega mind

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-5
    • View Profile
Re: /count
« Reply #6 on: May 23, 2017, 03:06:30 pm »
Code: [Select]
function onPlayerCommand( player, cmd, text )
{
if ( cmd == "count" )
{
NewTimer( Message, 1000, 1, "=3=", 200, 0, 0 );
NewTimer( Message, 2000, 1, "=2=", 200, 0, 0 );
NewTimer( Message, 3000, 1, "=1=", 200, 200, 0 );
NewTimer( Message, 4000, 1, "=GO!=", 0, 200, 0 );
}
}
Just a colorful little counting script snippet.
Useful for DMs.
I Have Did It Like /count not like /c count
look:
Code: [Select]
else if ( szCommand == "count" )
{
              NewTimer( "BigMessage", 1000, 1, player ,"=3=" , 5000, 3 );
              NewTimer( "BigMessage", 2000, 1, player ,"=2=" , 5000, 3 );
              NewTimer( "BigMessage", 3000, 1, player ,"=1=" , 5000, 3 );
              NewTimer( "BigMessage", 4000, 1, player ,"=GO!=" , 5000, 3 );
}
so when i type /count nothing happens why? do i have to define a pPlayer too?

try this


else if ( szCommand == "count" )
   {
   NewTimer( "BigMessage", 1000, 1, pPlayer ,"=3=" , 5000, 3 );
   NewTimer( "BigMessage", 2000, 1, pPlayer ,"=2=" , 5000, 3 );
   NewTimer( "BigMessage", 3000, 1, pPlayer ,"=1=" , 5000, 3 );
   NewTimer( "BigMessage", 4000, 1, pPlayer ,"=GO!=" , 5000, 3 );
   }

Dopelherz

  • Newbie
  • *
  • Posts: 11
  • Karma: +1/-0
    • View Profile
Re: /count
« Reply #7 on: May 24, 2017, 01:52:00 pm »
Gtfo, bumptard. Nobody needs you. Go back to vcmp forum

stfu bumptard. every one needs a good scripter and not a script steeler like u

bumptard? Stfu little kid. Script steeler? Nope. You are here to steal scripts it can be easily proven. Grow up your brain and graduate. Little scriptkiddo. And im a better scripter than you and this noobish community.

edit http://forum.liberty-unleashed.co.uk/index.php/topic,2900.msg15085/topicseen.html#new

look how shitty you are. You cant even do something like /wep wepname
You obviously suck.
« Last Edit: May 24, 2017, 01:53:33 pm by Dopelherz »

mega mind

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-5
    • View Profile
Re: /count
« Reply #8 on: May 25, 2017, 03:37:27 pm »
yea "what ever" GTFO

Dopelherz

  • Newbie
  • *
  • Posts: 11
  • Karma: +1/-0
    • View Profile
Re: /count
« Reply #9 on: June 11, 2017, 10:37:19 am »
You know what, kiddo? I'm done talking to you. I'm not gonna waste my time with some 10 year old being a script-kiddo, a bump-tard, and what else could it be.

mega mind

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-5
    • View Profile
Re: /count
« Reply #10 on: June 11, 2017, 11:06:44 pm »
You know what, kiddo? I'm done talking to you. I'm not gonna waste my time with some 10 year old being a script-kiddo, a bump-tard, and what else could it be.


lol ur a kid who has no mind and a useless scripter just survaing arround the forum to steel scripts

DamageCreation

  • Jr. Member
  • **
  • Posts: 99
  • Karma: +19/-24
  • A.C.A.B
    • View Profile
    • https://www.youtube.com/channel/UCP_6YCRd7fD8whagTfQG0UA
Re: /count
« Reply #11 on: June 12, 2017, 11:10:46 pm »
lol
PW

 

© Liberty Unleashed Team.