Raised This Month: $ Target: $400
 0% 

Solved "Force" rain or snow?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 09-09-2018 , 16:06   Re: "Force" rain or snow?
Reply With Quote #1

Quote:
Originally Posted by GasmoN View Post
That's great dude but i still using hlds
I have not said that its only for regamedll. and hlds < > rehlds (not regamedll)
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 09-09-2018 at 16:07.
Ghosted is offline
GasmoN
Member
Join Date: Jul 2014
Old 09-09-2018 , 16:54   Re: "Force" rain or snow?
Reply With Quote #2

I have no idea how to do that.. I tried to find some answers on google but that link you sent me is the only link showing in results

Last edited by GasmoN; 09-09-2018 at 16:54.
GasmoN is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 09-09-2018 , 17:32   Re: "Force" rain or snow?
Reply With Quote #3

Quote:
Originally Posted by GasmoN View Post
I have no idea how to do that.. I tried to find some answers on google but that link you sent me is the only link showing in results
https://wiki.alliedmods.net/Half-Lif...vents#ReceiveW
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
GasmoN
Member
Join Date: Jul 2014
Old 09-09-2018 , 17:36   Re: "Force" rain or snow?
Reply With Quote #4

Thank you both, I made it and it is work fine

PHP Code:
public cmd_rain()
{
    
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("ReceiveW"), _0)
    
write_byte(1)
    
message_end()

But how can I stop the rain now?
GasmoN is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 09-09-2018 , 17:39   Re: "Force" rain or snow?
Reply With Quote #5

Quote:
Originally Posted by GasmoN View Post
Thank you both, I made it and it is work fine

PHP Code:
public cmd_srain()
{
    
message_begin(MSG_BROADCASTget_user_msgid("ReceiveW"), _0)
    
write_byte(0)
    
message_end()

But how can I stop the rain now?

IF YOU have read-it, you had already known

The solution in the quotes.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 09-09-2018 at 17:43.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
GasmoN
Member
Join Date: Jul 2014
Old 09-09-2018 , 17:49   Re: "Force" rain or snow?
Reply With Quote #6

I missed that one, I'm so sleepy

Anyway, with MSG_ONE_UNRELIABLE I had problem that all players were kicked from the server with the reason "
Host_Error: WriteDest_Parm: not a client" when I used command to start rain, BUT when I replaced MSG_ONE_UNRELIABLE with MSG_BROADCAST everithing worked just fine.
So I want to thank both of you for helping me with this one becouse i was trying all day to do this, thanks.

Last edited by GasmoN; 09-09-2018 at 17:51.
GasmoN is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 09-09-2018 , 18:16   Re: "Force" rain or snow?
Reply With Quote #7

That happened because you passed an invalid client id.
__________________
klippy 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 20:26.


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