Raised This Month: $51 Target: $400
 12% 

Thunder


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Seth26
BANNED
Join Date: Dec 2012
Location: California, CT
Old 12-28-2012 , 03:42   Thunder
Reply With Quote #1

Hey.

Here, the code is located. Please help me I have to convert them to rumble in the sky every minute.

Thank you for your help.

Code:
#include <amxmodx> 
#include <fakemeta>
 
#define TASK_ID_THUDER   76292

new const g_szThunderSound[] = "ambience/thunder_clap.wav" 

public plugin_precache() 
    precache_sound(g_szThunderSound) 
public plugin_init() 
{
 register_plugin("thunder", "1.0", "ironskillz1, SnusMumrikeN")
 set_task( 60.0, "Make_Thunder" )  // here you set the thunder time 60 = 1 minute
}
public client_putinserver(id) 
{ 
 if(is_user_bot(id)) 
  return;
 if(!task_exists(TASK_ID_THUDER)) 
 { 
  Restore_LightStyle() 
 } 
} 
public Make_Thunder( id ) 
{ 
 client_print( 0, print_chat, "UDV A VIHARSZIGETEN!" )
 //Those are de_aztec values 
 engfunc(EngFunc_EmitAmbientSound, 94, Float:{-680.000000,-912.000000,-304.000000}, g_szThunderSound, 0.000000, 0.000000, 32, 0) 
 engfunc(EngFunc_EmitAmbientSound, 94, Float:{-680.000000,-912.000000,-304.000000}, g_szThunderSound, 1.000000, 0.000000, 0, 100) 
 engfunc(EngFunc_LightStyle, 0, "z") 
 if(task_exists(TASK_ID_THUDER)) 
 { 
  remove_task(TASK_ID_THUDER) 
 } 
 set_task(0.2, "Restore_LightStyle", TASK_ID_THUDER) 
 return FMRES_HANDLED 
} 
public Restore_LightStyle() 
 engfunc(EngFunc_LightStyle, 0, "m")


There is no such topic because it has been deleted.

Last edited by Seth26; 12-28-2012 at 03:51.
Seth26 is offline
RaHBeR
๏_๏
Join Date: Jul 2012
Old 12-28-2012 , 04:30   Re: Thunder
Reply With Quote #2

This topic isn't in trash:
https://forums.alliedmods.net/showthread.php?t=203880
RaHBeR is offline
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 12-28-2012 , 04:34   Re: Thunder
Reply With Quote #3

Quote:
Originally Posted by Seth26 View Post
Hey.

Here, the code is located. Please help me I have to convert them to rumble in the sky every minute.

Thank you for your help.

Code:
#include <amxmodx> 
#include <fakemeta>
 
#define TASK_ID_THUDER   76292

new const g_szThunderSound[] = "ambience/thunder_clap.wav" 

public plugin_precache() 
    precache_sound(g_szThunderSound) 
public plugin_init() 
{
 register_plugin("thunder", "1.0", "ironskillz1, SnusMumrikeN")
 set_task( 60.0, "Make_Thunder" )  // here you set the thunder time 60 = 1 minute
}
public client_putinserver(id) 
{ 
 if(is_user_bot(id)) 
  return;
 if(!task_exists(TASK_ID_THUDER)) 
 { 
  Restore_LightStyle() 
 } 
} 
public Make_Thunder( id ) 
{ 
 client_print( 0, print_chat, "UDV A VIHARSZIGETEN!" )
 //Those are de_aztec values 
 engfunc(EngFunc_EmitAmbientSound, 94, Float:{-680.000000,-912.000000,-304.000000}, g_szThunderSound, 0.000000, 0.000000, 32, 0) 
 engfunc(EngFunc_EmitAmbientSound, 94, Float:{-680.000000,-912.000000,-304.000000}, g_szThunderSound, 1.000000, 0.000000, 0, 100) 
 engfunc(EngFunc_LightStyle, 0, "z") 
 if(task_exists(TASK_ID_THUDER)) 
 { 
  remove_task(TASK_ID_THUDER) 
 } 
 set_task(0.2, "Restore_LightStyle", TASK_ID_THUDER) 
 return FMRES_HANDLED 
} 
public Restore_LightStyle() 
 engfunc(EngFunc_LightStyle, 0, "m")


There is no such topic because it has been deleted.
PHP Code:
set_task60.0"Make_Thunder" )  // here you set the thunder time 60 = 1 minute 

PHP Code:
set_task60.0"Make_Thunder" .flags="b" )  // here you set the thunder time 60 = 1 minute 
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster is offline
Seth26
BANNED
Join Date: Dec 2012
Location: California, CT
Old 12-28-2012 , 04:35   Re: Thunder
Reply With Quote #4

Quote:
Originally Posted by RaHBeR View Post
Is re-opened, because the other one was not in compliance with the rule.

Last edited by Seth26; 12-28-2012 at 04:41.
Seth26 is offline
Seth26
BANNED
Join Date: Dec 2012
Location: California, CT
Old 12-28-2012 , 04:40   Re: Thunder
Reply With Quote #5

pokemonmaster

I get an error after conversion. Something is wrong.
Seth26 is offline
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 12-28-2012 , 06:27   Re: Thunder
Reply With Quote #6

Quote:
Originally Posted by Seth26 View Post
pokemonmaster

I get an error after conversion. Something is wrong.
And the error is?
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster is offline
Seth26
BANNED
Join Date: Dec 2012
Location: California, CT
Old 12-28-2012 , 06:34   Re: Thunder
Reply With Quote #7

Quote:
Originally Posted by pokemonmaster View Post
And the error is?
/tmp/textT3g9hl.sma(13) : error 001: expected token: ",", but found "-identifier-"

/tmp/textT3g9hl.sma(13) : error 017: undefined symbol "flags" /tmp/textT3g9hl.sma(13) : warning

215: expression has no effect /tmp/textT3g9hl.sma(13) : error 001: expected token: ";", but found ")"

/tmp/textT3g9hl.sma(13) : fatal error 107: too many error messages on one line Compilation aborted.

4 Errors

Last edited by Seth26; 12-28-2012 at 06:55.
Seth26 is offline
Old 12-28-2012, 06:44
Erdener
This message has been deleted by Erdener.
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 12-28-2012 , 07:26   Re: Thunder
Reply With Quote #8

Sorry, I forgot the comma.
Change it to this:
PHP Code:
set_task60.0"Make_Thunder", .flags="b" )  // here you set the thunder time 60 = 1 minute 
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster is offline
Seth26
BANNED
Join Date: Dec 2012
Location: California, CT
Old 12-28-2012 , 07:33   Re: Thunder
Reply With Quote #9

That's it. Thank you very much!
Seth26 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-28-2012 , 17:03   Re: Thunder
Reply With Quote #10

Quote:
Originally Posted by Seth26 View Post

There is no such topic because it has been deleted.[/I]
1st one not deleted, not locked : https://forums.alliedmods.net/showthread.php?t=203880
2nd one locked : https://forums.alliedmods.net/showthread.php?t=204075

I've required a temp ban against you.
Next time i gonna require a permanent ban.

Please, read rules, it is not complicated.

https://forums.alliedmods.net/misc.php?do=showrules
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode