Skip to content

Instantly share code, notes, and snippets.

View AmyrAhmady's full-sized avatar
:shipit:
shipit shipit

iAmir AmyrAhmady

:shipit:
shipit shipit
View GitHub Profile
bool DXHook::Initialize()
{
L_INFO << "DX Init Started";
auto location = Pattern::Find("\x48\x8B\x3D\x00\x00\x00\x00\x48\x8D\x54\x24\x00\x48\x8B\x07\x48\x8B\xCF\xFF\x50\x60", "xxx????xxxx?xxxxxxxxx");
while (!location)
{
location = Pattern::Find("\x48\x8B\x3D\x00\x00\x00\x00\x48\x8D\x54\x24\x00\x48\x8B\x07\x48\x8B\xCF\xFF\x50\x60", "xxx????xxxx?xxxxxxxxx");
Sleep(50);
}
void Memory::HookInit()
{
// Init MinHook
if (MH_Initialize() != MH_OK)
{
printf("[Memory::Init] MH_Initialize failed!\n");
return;
}
}
void Memory::HookCleanUp()
[COLOR="RoyalBlue"][SIZE="6"][B]Table of Contents[/B][/SIZE][/COLOR]
[LIST]
[*][URL="#about-the-project"]About the Project[/URL]
[*][URL="#credits"]Credits[/URL]
[*][URL="#getting-started"]Getting Started[/URL]
[*][URL="#features"]Features[/URL]
[*][URL="#contributing"]Contributing[/URL]
[*][URL="#license"]License[/URL]
[*][URL="#contact"]Contact[/URL]
@AmyrAhmady
AmyrAhmady / bbcode
Created April 13, 2019 16:21
for ari :^)
Time for my side I believe. You are all partially right, but not in the ways you may think. I am not trying to split the community, I am not trying to start a rival to SA:MP, and one important side point: I am not stealing anyone's code. You all think the cat is out of the bag because of one poorly worded post missing all context of the conversation it was a part of. You got a peek in to the bag and think the whole thing is stupid, which is understandable given the lack of information. I was trying to give the important points without revealing too many details, unfortunately that backfired because now you only have half a story from which to draw conclusions.
So let's put it all out there.
[list]
[*]I am not trying to split the community. However, someone IS trying to destroy it - they have hoarded information, withheld long sought updates, threatened to delete the whole forums (last week), and bans anyone who says that maybe that's not great. This person has already split the community - releasing
@AmyrAhmady
AmyrAhmady / haha.go
Last active December 30, 2019 08:10
aaaaa
package main
import (
"fmt"
"io/ioutil"
"github.com/anaskhan96/soup"
"strings"
"regexp"
"os"
)
dcmd(w,1,cmdtext);
dcmd(pm,2,cmdtext);
if(ParkourPlayer[playerid])
{
dcmd(exitp,5,cmdtext);
}
if(IsPlayerInTDM(playerid))
{
dcmd(exitt,5,cmdtext);
fetchCities() {
fetch(global.apiURL + '/index/city?id=all')
.then((response) => response.json())
.then((responseJson) => {
this.tempData.cities = responseJson;
this.fetchStates();
})
.catch((error) => {
console.error(error);
alert("خطا در ارتباط با سرور! لیست شهر ها یافت نشد");
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:launchMode="singleTask"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

omg hi **code()** hey losers omg

import React from 'react';
import { View, Text } from 'react-native';
type Props = {};
class App extends React.Component<Props> {
renderName(name) {
var a = 8 + 9 + name;
return (
<Text>{a}</Text>