feat(ScriptEventHandler): Rename RemoteEvent to eRemoteEvent

This commit is contained in:
Yimura 2021-10-15 11:31:27 +02:00
parent 1d1ae65127
commit 79afcf444e
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682

View File

@ -8,94 +8,94 @@ namespace big
{ {
auto args = scripted_game_event->m_args; auto args = scripted_game_event->m_args;
RemoteEvent hash = (RemoteEvent)args[0]; eRemoteEvent hash = (eRemoteEvent)args[0];
char type[32] = ""; char type[32] = "";
switch (hash) switch (hash)
{ {
case RemoteEvent::Bounty: case eRemoteEvent::Bounty:
if (g.protections.script_events.bounty) if (g.protections.script_events.bounty)
strcpy(type, "Bounty"); strcpy(type, "Bounty");
break; break;
case RemoteEvent::CeoBan: case eRemoteEvent::CeoBan:
if (g.protections.script_events.ceo_ban) if (g.protections.script_events.ceo_ban)
strcpy(type, "Ceo Ban"); strcpy(type, "Ceo Ban");
break; break;
case RemoteEvent::CeoKick: case eRemoteEvent::CeoKick:
if (g.protections.script_events.ceo_kick) if (g.protections.script_events.ceo_kick)
strcpy(type, "Ceo Kick"); strcpy(type, "Ceo Kick");
break; break;
case RemoteEvent::CeoMoney: case eRemoteEvent::CeoMoney:
if (g.protections.script_events.ceo_money) if (g.protections.script_events.ceo_money)
strcpy(type, "Ceo Money"); strcpy(type, "Ceo Money");
break; break;
case RemoteEvent::ClearWantedLevel: case eRemoteEvent::ClearWantedLevel:
if (g.protections.script_events.clear_wanted_level) if (g.protections.script_events.clear_wanted_level)
strcpy(type, "Clear Wanted Level"); strcpy(type, "Clear Wanted Level");
break; break;
case RemoteEvent::FakeDeposit: case eRemoteEvent::FakeDeposit:
if (g.protections.script_events.fake_deposit) if (g.protections.script_events.fake_deposit)
strcpy(type, "Deposit"); strcpy(type, "Deposit");
break; break;
case RemoteEvent::ForceMission: case eRemoteEvent::ForceMission:
if (g.protections.script_events.force_mission) if (g.protections.script_events.force_mission)
strcpy(type, "Force Mission"); strcpy(type, "Force Mission");
break; break;
case RemoteEvent::GtaBanner: case eRemoteEvent::GtaBanner:
if (g.protections.script_events.gta_banner) if (g.protections.script_events.gta_banner)
strcpy(type, "GTA Banner"); strcpy(type, "GTA Banner");
break; break;
case RemoteEvent::PersonalVehicleDestroyed: case eRemoteEvent::PersonalVehicleDestroyed:
if (g.protections.script_events.personal_vehicle_destroyed) if (g.protections.script_events.personal_vehicle_destroyed)
strcpy(type, "Personal Vehicle Destroyed"); strcpy(type, "Personal Vehicle Destroyed");
break; break;
case RemoteEvent::RemoteOffradar: case eRemoteEvent::RemoteOffradar:
if (g.protections.script_events.remote_off_radar) if (g.protections.script_events.remote_off_radar)
strcpy(type, "Remote Off Radar"); strcpy(type, "Remote Off Radar");
break; break;
case RemoteEvent::SendToCutscene: case eRemoteEvent::SendToCutscene:
if (g.protections.script_events.send_to_cutscene) if (g.protections.script_events.send_to_cutscene)
strcpy(type, "Send To Cutscene"); strcpy(type, "Send To Cutscene");
break; break;
case RemoteEvent::SendToIsland: case eRemoteEvent::SendToIsland:
if (g.protections.script_events.send_to_island) if (g.protections.script_events.send_to_island)
strcpy(type, "Send To Island"); strcpy(type, "Send To Island");
break; break;
case RemoteEvent::SoundSpam: case eRemoteEvent::SoundSpam:
if (g.protections.script_events.sound_spam) if (g.protections.script_events.sound_spam)
strcpy(type, "Sound Spam"); strcpy(type, "Sound Spam");
break; break;
case RemoteEvent::Spectate: case eRemoteEvent::Spectate:
if (g.protections.script_events.spectate) if (g.protections.script_events.spectate)
strcpy(type, "Specate"); strcpy(type, "Specate");
break; break;
case RemoteEvent::Teleport: case eRemoteEvent::Teleport:
if (g.protections.script_events.force_teleport) if (g.protections.script_events.force_teleport)
strcpy(type, "Force Teleport"); strcpy(type, "Force Teleport");
break; break;
case RemoteEvent::TransactionError: case eRemoteEvent::TransactionError:
if (g.protections.script_events.transaction_error) if (g.protections.script_events.transaction_error)
strcpy(type, "Transaction Error"); strcpy(type, "Transaction Error");
break; break;
case RemoteEvent::VehicleKick: case eRemoteEvent::VehicleKick:
if (g.protections.script_events.vehicle_kick) if (g.protections.script_events.vehicle_kick)
strcpy(type, "Vehicle Kick"); strcpy(type, "Vehicle Kick");