Jump to content

quix

Manager
  • Posts

    562
  • Joined

  • Last visited

  • Days Won

    60

Everything posted by quix

  1. quix

    [CLEO] My Mods

    7. This code will replace cheat codes "BAGUVIX" with "INFHEALTH" and "AEZAKMI" with "NOPOLICE". {$CLEO} // Constants const CHEAT_INFHEALTH = 'INFHEALTH'; CHEAT_NOPOLICE = 'NOPOLICE'; // Variables var cheat1: string; cheat2: string; // Main function thread 'ReplaceCheats' while true wait 0 // Get the currently entered cheats cheat1 := read_memory_string(0xB73490, 8, false) cheat2 := read_memory_string(0xB734A0, 8, false) // Replace BAGUVIX with INFHEALTH if cheat1 = 'BAGUVIX' then write_memory_string(0xB73490, CHEAT_INFHEALTH, 10, false) end // Replace AEZAKMI with NOPOLICE if cheat2 = 'AEZAKMI' then write_memory_string(0xB734A0, CHEAT_NOPOLICE, 9, false) end end
  2. quix

    [CLEO] My Mods

    6. Cool script: Creates a hot air balloon that starts flying, after you exit the balloon you get a cutscene and a parachute to land safely. Keybind for activation : F10 {$CLEO .cs} // Key codes const KEY_F10 = 121; // F10 key code // Mission variables var blip_marker: MarkerID; car: CarID; // Script entry point thread 'CoolScript' while true wait 0 if is_key_pressed(KEY_F10) then // Show message and play sound effect show_text_highpriority("Welcome to the cool script!", 5000, 1) audio_play_sound_frontend(0x11D, "FRONTEND_BEAST_MENU_SOUNDSET") // Spawn a hot air balloon and attach a marker to it balloon = create_object(17268, 2495.0, -1669.0, 12.0) blip_marker = create_marker_above_object(balloon) set_marker_color(blip_marker, 1) set_marker_size(blip_marker, 3) // Teleport player to the hot air balloon and start flying set_char_coordinates($PLAYER_CHAR, 2495.0, -1669.0, 15.0) set_char_z_angle($PLAYER_CHAR, 0.0) wait 2000 set_char_proof_cars($PLAYER_CHAR, true) set_char_proof_fire($PLAYER_CHAR, true) set_char_proof_explosions($PLAYER_CHAR, true) car = create_car(424, 2495.0, -1669.0, 50.0) set_car_z_angle(car, 0.0) wait 1000 set_car_color(car, 2, 2) set_car_immunities(car, true, true, true, true, true) attach_object_to_car(balloon, car, 0.0, 0.0, 10.0, 0.0, 0.0, 0.0) set_car_cruise_speed(car, 50.0) // Wait for player to jump out of the hot air balloon while true wait 0 if is_char_in_car($PLAYER_CHAR, car) then if is_key_pressed(32) then // Space key code audio_play_sound_frontend(0x10A, "FRONTEND_DEFAULT_SOUNDSET") set_char_coordinates($PLAYER_CHAR, 2495.0, -1669.0, 12.0) detach_object(balloon) destroy_object(balloon) delete_marker(blip_marker) destroy_car(car) break end_if end_if end_while // Play a cutscene of a helicopter flying away cutscene_start(1) set_camera_position(2467.0, -1467.0, 89.0, 0.0, 0.0, 0.0) set_camera_point_at_position(2507.0, -1667.0, 50.0, 2) wait 1000 cutscene_end() // Display a message and give the player a parachute show_text_highpriority("Use the parachute to land safely!", 5000, 1) give_player_weapon($PLAYER_CHAR, 46, 1) end_if end_while end_thread
  3. quix

    [CLEO] My Mods

    5. Creates a mission : You get teleported to big smoke's house and you have his skin, and you need to go to CJ's house and kill him, after the mission, you get $3.000.000: {$CLEO .cs} // Key codes const KEY_F10 = 121; // F10 key code // Checkpoint coordinates const CHECKPOINT_X = 2495.5; CHECKPOINT_Y = -1669.2; CHECKPOINT_Z = 12.5; // Script entry point thread 'BigSmokeMission' while true wait 0 if is_key_pressed(KEY_F10) then // Change player skin to Big Smoke change_player_skin(271) // Teleport player to Big Smoke's house set_char_coordinates($PLAYER_CHAR, 2467.4, -1663.3, 13.3) // Create checkpoint at CJ's house create_checkpoint(0, CHECKPOINT_X, CHECKPOINT_Y, CHECKPOINT_Z) // Wait for player to reach checkpoint while true wait 0 if is_char_in_area_3d($PLAYER_CHAR, CHECKPOINT_X-2.0, CHECKPOINT_Y-2.0, CHECKPOINT_Z-2.0, CHECKPOINT_X+2.0, CHECKPOINT_Y+2.0, CHECKPOINT_Z+2.0, true) then // Spawn enemy ped with CJ's skin and a Deagle enemy_ped = create_ped(26, 0, 0.0, 0.0, 0.0) set_char_coordinates(enemy_ped, 2467.4, -1663.3, 13.3) set_char_weapon(enemy_ped, 24, 9999) set_char_health(enemy_ped, 500) // Wait for enemy ped to die while is_char_alive(enemy_ped) wait 0 end_while // Remove checkpoint and give player money delete_checkpoint(0) give_player_money(3000000) break end_if end_while end_if end_while end_thread
  4. quix

    [CLEO] My Mods

    4. Creates a menu with 3 options, first one gives you Deagle, second gives you M4 and third gives you Rocket Launcher: {$CLEO .cs} // Key codes const KEY_F10 = 121; // F10 key code // Menu options const MENU_OPTION_DEAGLE = 0; MENU_OPTION_M4 = 1; MENU_OPTION_ROCKET_LAUNCHER = 2; // Script entry point thread 'WeaponMenu' while true wait 0 if is_key_pressed(KEY_F10) then // Create menu menu('Weapon Menu', 'Deagle', 'M4', 'Rocket Launcher') // Wait for menu selection menu_item_selected = 0 while not menu_item_selected wait 0 if menu_active('Weapon Menu') then menu_item_selected = menu_selected_item() end_if end_while // Give the player the selected weapon if menu_item_selected == MENU_OPTION_DEAGLE then give_weapon_to_char($PLAYER_CHAR, 24, 9999) else_if menu_item_selected == MENU_OPTION_M4 then give_weapon_to_char($PLAYER_CHAR, 31, 9999) else_if menu_item_selected == MENU_OPTION_ROCKET_LAUNCHER then give_weapon_to_char($PLAYER_CHAR, 35, 9999) end_if // Wait for menu to close while menu_active('Weapon Menu') wait 0 end_while end_if end_while end_thread
  5. quix

    [CLEO] My Mods

    3. Creates a menu containing 4 options: Random Teleport, Teleport to LS, Teleport to SF, Teleport to LV. These are self explanatory (you get teleported to the middle of each city, but the first selection, where you get teleported somewhere random on the map): {$CLEO .cs} // Key codes const KEY_F10 = 121; // F10 key code // Menu options const MENU_OPTION_RANDOM = 0; MENU_OPTION_LS = 1; MENU_OPTION_SF = 2; MENU_OPTION_LV = 3; // Location coordinates const LS_CENTER_X = 1399.76; LS_CENTER_Y = -1168.98; LS_CENTER_Z = 23.97; SF_CENTER_X = -2352.27; SF_CENTER_Y = 988.43; SF_CENTER_Z = 35.17; LV_CENTER_X = 1705.9; LV_CENTER_Y = 1471.31; LV_CENTER_Z = 10.82; // Script entry point thread 'TeleportMenu' while true wait 0 if is_key_pressed(KEY_F10) then // Create menu menu('Teleport Menu', 'Random Location', 'Middle of LS', 'Middle of SF', 'Middle of LV') // Wait for menu selection menu_item_selected = 0 while not menu_item_selected wait 0 if menu_active('Teleport Menu') then menu_item_selected = menu_selected_item() end_if end_while // Teleport player to selected location if menu_item_selected == MENU_OPTION_RANDOM then random_x = random_float_in_range(-3000.0, 3000.0) random_y = random_float_in_range(-3000.0, 3000.0) teleport($PLAYER_CHAR, random_x, random_y, 0.0) else_if menu_item_selected == MENU_OPTION_LS then teleport($PLAYER_CHAR, LS_CENTER_X, LS_CENTER_Y, LS_CENTER_Z) else_if menu_item_selected == MENU_OPTION_SF then teleport($PLAYER_CHAR, SF_CENTER_X, SF_CENTER_Y, SF_CENTER_Z) else_if menu_item_selected == MENU_OPTION_LV then teleport($PLAYER_CHAR, LV_CENTER_X, LV_CENTER_Y, LV_CENTER_Z) end_if // Wait for menu to close while menu_active('Teleport Menu') wait 0 end_while end_if end_while end_thread
  6. quix

    [CLEO] My Mods

    2. Transforms you (the player) into Michelle. Also teleports you to her garage and spawns a monster truck after 3 seconds: {$CLEO .cs} // Key codes const KEY_F4 = 115; // F4 key code // Location coordinates const MICHELLE_GARAGE_X = -1996.37; MICHELLE_GARAGE_Y = 276.6; MICHELLE_GARAGE_Z = 35.17; // Script entry point thread 'MichelleGarageTeleport' while true wait 0 if is_key_pressed(KEY_F4) then // Set player's skin to Michelle (id 191) set_player_skin($PLAYER_CHAR, 191) // Teleport player to Michelle's Garage teleport_with_car($PLAYER_CHAR, MICHELLE_GARAGE_X, MICHELLE_GARAGE_Y, MICHELLE_GARAGE_Z, 90.0, -1) // Wait for 3 seconds wait 3000 // Spawn a Monster Truck in front of the player new_car = create_car(MONSTER, get_offset_from_car_in_world_coords($PLAYER_CAR, 0.0, 5.0, 0.0)) // Set the car's speed to 0 set_car_speed(new_car, 0.0) end_if end_while end_thread
  7. In this topic, I'll post some codes I'll create for you to understand how this language works. (NOTE: These codes might not work as intended and might need some changes!) 1. Gives you 1000 health, 1337 armor, and Deagle when pressing F2: {$CLEO .cs} // Key codes const KEY_F2 = 113; // F2 key code // Weapon IDs const WEAPON_DEAGLE = 24; // Deagle weapon ID // Script entry point thread 'LeaksForTheWin' while true wait 0 if is_key_pressed(KEY_F2) then // Give player the Deagle give_player_weapon($PLAYER_CHAR, WEAPON_DEAGLE, 9999) // Set player health and armor set_player_health($PLAYER_CHAR, 1000) set_player_armour($PLAYER_CHAR, 1337) // Display text wait 500 show_text_box('Leaks for the win!') wait 5000 clear_text_box() end_if end_while end_thread
  8. quix

    [SPawn] My Codes

    4. This code creates a new currency named "LeakCoins" and will be visible by a textdraw at the middle bottom of the screen. If you kill someone with a headshot, you get 10 LeakCoins, eitherway you only get 5 and if you die you lose 5. It updates after every kill / death and resets LeakCoins to 0 after player disconnection. #include <sourcemod> new const Float:TEXTDRAW_X = 320.0; new const Float:TEXTDRAW_Y = 450.0; new Handle:textdraw_LeakCoins; public void OnPluginStart() { // Create the textdraw for LeakCoins textdraw_LeakCoins = TextDrawCreate(TEXTDRAW_X, TEXTDRAW_Y, "LeakCoins: 0"); TextDrawColor(textdraw_LeakCoins, 255, 0, 0, 255); // Set the text color to red TextDrawSetOutline(textdraw_LeakCoins, 1); // Add an outline to the text } public Action EntDeath(ent, attacker, weapon) { if (!IsClientConnected(ent) || !IsClientConnected(attacker)) return Plugin_Continue; if (attacker == ent) // Suicide { TextDrawSetString(textdraw_LeakCoins, "LeakCoins: " + GetPlayerInt(attacker, "LeakCoins")); return Plugin_Continue; } // Check if the attacker killed with headshot or not if (weapon == CSW_DEAGLE && GetClientEyePosition(attacker, Vector:eye_pos) && GetClientEyePosition(ent, Vector:victim_pos)) { new Float:distance = GetDistanceBetweenPoints(eye_pos, victim_pos); if (distance <= 128.0) { SetPlayerInt(attacker, "LeakCoins", GetPlayerInt(attacker, "LeakCoins") + 10); TextDrawSetString(textdraw_LeakCoins, "LeakCoins: " + GetPlayerInt(attacker, "LeakCoins")); return Plugin_Continue; } } // If the attacker didn't kill with headshot, give them 5 LeakCoins SetPlayerInt(attacker, "LeakCoins", GetPlayerInt(attacker, "LeakCoins") + 5); TextDrawSetString(textdraw_LeakCoins, "LeakCoins: " + GetPlayerInt(attacker, "LeakCoins")); return Plugin_Continue; } public Action ClientDisconnect(client) { SetPlayerInt(client, "LeakCoins", 0); TextDrawSetString(textdraw_LeakCoins, "LeakCoins: 0"); return Plugin_Continue; }
  9. quix

    [SPawn] My Codes

    3. Sends a welcoming message every 10 minutes in chat: #include <sourcemod> public void OnPluginStart() { CreateTimer(600.0, RepeatMessage, _, TIMER_REPEAT); } public Action RepeatMessage(Handle timer) { ChatMessage("\x04[Leaks]\x01 Welcome to Leaks!", -1); return Plugin_Continue; }
  10. quix

    [SPawn] My Codes

    2. Shows when the player kills an enemy by a headshot: #include <sourcemod> public Action:ClientDisconnect(int client) { // Clean up any textdraws when the client disconnects ShowSyncHudText(client, -1, ""); return Plugin_Continue; } public Action:ClientPostThink(int client) { // Check if the player killed an enemy with a headshot if (GetClientProp(client, Prop_Send, "m_iLastKilledByHeadshot") == 1) { // Show a congratulatory textdraw ShowSyncHudText(client, 1, "Headshot! Nice shot!"); } return Plugin_Continue; }
  11. In this topic, I'll post some codes I'll create for you to understand how this language works. (NOTE: These codes might not work as intended and might need some changes!) 1. If the player has "Leaks" in their name, it sends a welcoming message to them, eitherway, it sets their health to 200: #include <sourcemod> public Action:ClientConnect(int client) { char name[MAX_PLAYER_NAME+1]; GetClientName(client, name, sizeof(name)); if (strstr(name, "Leaks") != NULL) { char msg[128]; format(msg, sizeof(msg), "Welcome to the server, %s! Enjoy your stay.", name); ShowSyncTextMsg(client, 1, msg); } else { SetEntProp(client, Prop_Send, "m_iHealth", 200); } return Plugin_Continue; }
  12. [CLOSED] Topicul a fost inchis. Pentru mai multe informații contactați moderatorul responsabil.
  13. [CLOSED] Topicul a fost inchis. Pentru mai multe informații contactați moderatorul responsabil.
  14. [CLOSED] Topicul a fost inchis. Pentru mai multe informații contactați moderatorul responsabil.
  15. [CLOSED] Topicul a fost inchis. Pentru mai multe informații contactați moderatorul responsabil.
  16. [CLOSED] Topicul a fost inchis. Pentru mai multe informații contactați moderatorul responsabil.
  17. quix

    [DELETED]Caut

    [DELETED] Topicul a fost șters. Pentru mai multe informații contactați moderatorul responsabil.
  18. 577777 regele

  19. [INVALID LINK] Topicul a fost INCHIS. Dacă se dorește redeschiderea acestuia, contactați un moderator.
  20. [INVALID LINK] Topicul a fost INCHIS. Dacă se dorește redeschiderea acestuia, contactați un moderator.
  21. [INVALID LINK] Topicul a fost INCHIS. Dacă se dorește redeschiderea acestuia, contactați un moderator.
  22. [INVALID LINK] Topicul a fost INCHIS. Dacă se dorește redeschiderea acestuia, contactați un moderator.
  23. [INVALID LINK] Topicul a fost INCHIS. Dacă se dorește redeschiderea acestuia, contactați un moderator.
×
×
  • Create New...