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
 1150

Fix protections xobx to ps3

by carlos_20 - 03-01-2020 - 02:42 PM
#1
I have the protections that warns in xbox someone can help me to put them in ps3 is that I can not put them I do not know where I have the fault
Reply
#2
post code plzezzzz
Reply
#3
/*Variables & Void*/
unsigned int repetitveCall[50];
void ShowProtection(char *namesend, char *msg)
{
char buff[500];
snprintf(buff, sizeof(buff), "%s ~o~%s", namesend, msg);
UI::_0xF42C43C7("STRING");
UI::_ADD_TEXT_COMPONENT_STRING(buff);
UI::_0x38F82261(5000, 1);
}
/*Chars*/
char Scripted_Game_Event_t[4 * 4];
/*Bools*/
bool protectionevent = false;
/*Structures*/
unsigned int Scripted_Game_Event_S(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9)
{
int addressOfArgs = r3 + 9 * 0x4;
char* NameOfSender = (char*)(*(int*)(senderData + 0x78) + 0x10 + 0x4C);
if (protectionevent)
{
if (*(int*)addressOfArgs == 0x2 && *(int*)(addressOfArgs + 0x8) == 0x35)
{
ShowProtection(NameOfSender, "Tried to Off-Host Kick You!");
*(int*)addressOfArgs = 0;
}
}
return ((DWORD(*)(DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD))SCRIPTED_GAME_EVENT)(r3, senderData, recieverData, r6, r7, r8, r9);
}
/*Call Protections*/
unsigned int Scripted_Game_Event(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9)
{
static unsigned int Return = 0;
memcpy((void*)SCRIPTED_GAME_EVENT, (void*)Scripted_Game_Event_t, 4 * 4);
if (repetitveCall[0] > 0)
{
repetitveCall[0]--;
return Return;
}
repetitveCall[0]++;
Return = Scripted_Game_Event_S(r3, senderData, recieverData, r6, r7, r8, r9);
PatchInJump((PDWORD)SCRIPTED_GAME_EVENT, (DWORD)Scripted_Game_Event, FALSE);
repetitveCall[0] = 0;
return Return;
}
/*Structure Hook*/
void Hook_To_Game(int mode)
{
switch (mode)
{
case 0:
memcpy((void*)Scripted_Game_Event_t, (void*)SCRIPTED_GAME_EVENT, 4 * 4);
PatchInJump((PDWORD)SCRIPTED_GAME_EVENT, (DWORD)Scripted_Game_Event, FALSE);
break;
}
}
/*Call On Hook*/
void Hook_Protections()
{
Hook_To_Game(0);//scripted game protection
}
Reply
#4
if you want add me to discord : Aurelio#1348
Reply
#5
if (weapons)
{
*(int*)0x12C37EC = 0x4E800020;
*(int*)0x12C3ACC = 0x4E800020;
*(int*)0x12C3C74 = 0x4E800020;
}
else if(ENTITY::IS_ENTITY_ATTACHED(0x12C37EC || 0x12C3ACC || 0x12C3C74))
{
char* playernamefromentity2 = PLAYER::GET_PLAYER_NAME(NETWORK::_0x40DBF464(NETWORK::NET_TO_PED(NETWORK::NETWORK_GET_NETWORK_ID_FROM_ENTITY(0x12C37EC || 0x12C3ACC || 0x12C3C74))));//Grabs Attackers Name From Entity(Ped) - NET_TO_PED
char buf[512];
snprintf(buf, sizeof(buf), "~r~ %s Estan Intentando Dar/Quitar Armas beta", playernamefromentity2);
PRINT(buf, 5000);
}
Reply
#6
(03-01-2020 - 02:42 PM)carlos_20 Wrote: I have the protections that warns in xbox someone can help me to put them in ps3 is that I can not put them I do not know where I have the fault
what?
Reply
#7
In theory I am trying to let me know when they attack me
Reply
#8
(03-01-2020 - 02:42 PM)carlos_20 Wrote: I have the protections that warns in xbox someone can help me to put them in ps3 is that I can not put them I do not know where I have the fault
wtf
Reply

Users browsing: 2 Guest(s)