ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 4368

Can Someone add send message that weather was changed to all players

by MaxModz - 07-24-2018 - 03:35 AM
#1
Can someone add change it so it sends a message to all players when weather is changed 

#pragma region Weather All
case Weather_All:

//call
addOption("Change to EXTRASUNNY"); //1
addOption("Change to CLEAR"); //2
addOption("Change to CLEARING"); //3
addOption("Change to ZOMBIE APOCALYPSE"); //4
addOption("Change to CLOUDS"); //5
addOption("Change to FOGGY"); //6
addOption("Change to OVERCAST"); //7
addOption("Change to RAIN"); //8
addOption("Change to SMOG"); //9
addOption("Change to THUNDER"); //10
addOption("Change to SNOWLIGHT"); //11
addOption("Change to SNOW"); //12
addOption("Change to BLIZZARD"); //13
addOption("Change to XMAS"); //14
switch(getOption())
{
case 1: 
setWeather("EXTRASUNNY");
case 2: 
setWeather("CLEAR");
case 3:
setWeather("CLEARING");
case 4:
setWeather("NEUTRAL");
case 5:
setWeather("CLOUDS");
case 6:
setWeather("FOGGY");
case 7:
setWeather("OVERCAST");
case 8:
setWeather("RAIN");
case 9:
setWeather("SMOG");
case 10:
setWeather("THUNDER");
case 11:
setWeather("SNOWLIGHT");
case 12:
setWeather("SNOW");
case 13:
setWeather("BLIZZARD");
case 14:
setWeather("XMAS");
}
break;
#pragma endregion
#CelestialFTW

Reply
#2
Please Stop. You're Asking Such BAsic Questions. If You Dont Know What Your Doing Please Leave
2021 Best Be Better Then 2020
Reply
#3
Thx Trinity For Saving Me Some Typing Lol
Reply
#4
Find a send a players message function in one of the many leaked sources here and modify it to send to everyone when the desired action is performed.
Reply
#5
Thats the easiest thing to do lol? Why not learn by urself ? P.S u also need different code to change weather all most likely
Papa A1 Original
Reply
#6
(07-24-2018 - 03:40 AM)trinity7 Wrote: Please Stop. You're Asking Such BAsic Questions. If You Dont Know What Your Doing Please Leave

Hey,

first of all this is not basic to make a message getting sent to all players in the lobby. You need a address you're getting out of ida for the "main function".
But if you just want to set a notify to yourself this is hella basic lol

:)
Reply
#7
(07-24-2018 - 12:46 PM)SinceModz Wrote:
(07-24-2018 - 03:40 AM)trinity7 Wrote: Please Stop. You're Asking Such BAsic Questions. If You Dont Know What Your Doing Please Leave

Hey,

first of all this is not basic to make a message getting sent to all players in the lobby. You need a address you're getting out of ida for the "main function".
But if you just want to set a notify to yourself this is hella basic lol

:)

maybe then he should be asking for adress not someone to code for him ?
Papa A1 Original
Reply
#8
just add this to your weather changer func
Code:
NETWORK_SEND_TEXT_MESSAGE(the message, players handle);
Reply
#9
(07-25-2018 - 12:28 AM)PhucedMODZ Wrote: just add this to your weather changer func
Code:
NETWORK_SEND_TEXT_MESSAGE(the message, players handle);

Thankyou i will try it
#CelestialFTW

Reply
#10
It is basic. 1 sec. here you go.

void SpoofTextAll(char *text)//this is the text function, the first part is a notify on your screen saying ......., second part is the text to all, its spoofed also, so like how african has it where it says the reciever changed the weather lol.
{
int Me = PLAYER::PLAYER_ID();
for (unsigned int i = 0; i <= 18; i++)
{
if (i == PLAYER::PLAYER_ID())
{
UI::SET_TEXT_FONT(0);
UI::_0x574EE85C("STRING");
UI::_ADD_TEXT_COMPONENT_STRING(text);
UI::_DRAW_NOTIFICATION(false, true);
}
else {
if (PLAYER::IS_PLAYER_PLAYING(i)) {
unsigned int* l_uiArgs = (unsigned int*)(*(unsigned int*)(*(unsigned int*)(0x83C9730C + (i << 2)) + 0x78) + 0x48);
((void(*)(uint a, char* b, uint *c, uint d))0x830A5F10)(0x83CA9B28, text, l_uiArgs, *(unsigned int*)(0x83C9730C + (i << 2)) + 0xC);
}
}
}
}


//then here's your weather change layout

void BLIZZARD()
{
GAMEPLAY::SET_WEATHER_TYPE_PERSIST("BLIZZARD");
GAMEPLAY::SET_WEATHER_TYPE_NOW_PERSIST("BLIZZARD");
GAMEPLAY::SET_OVERRIDE_WEATHER("BLIZZARD");
GAMEPLAY::SET_WEATHER_TYPE_NOW("BLIZZARD");
SpoofTextAll("~r~Demon Forums\n\n~b~Changed The Weather");
}
///then continue so Extrasunny etc.....
should help a few of you people out there :)
2021 Best Be Better Then 2020
Reply

Users browsing: 7 Guest(s)