This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
me=`basename $0` | |
if [ $# -ne 1 ] | |
then | |
echo Usage: $me remote | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <errno.h> | |
#include <netdb.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <arpa/inet.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module rdtsc; | |
import std.stdio; | |
import std.stdint; | |
int64_t ReadTimeStampCounter() { | |
version (X86_64) { | |
asm { | |
naked; | |
rdtsc; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project(gamemode) | |
cmake_minimum_required(VERSION 2.8) | |
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules) | |
include(AmxConfig) | |
include(SampPlugin) | |
find_package(SampGdk3 REQUIRED) | |
include_directories(${SampGdk3_INCLUDE_DIRS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set PATH=%PATH%;"%ProgramFiles%\Microsoft Visual Studio 10.0\VC\bin" | |
call vcvars32 | |
cl plugin.c /FAc /c | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
<LocalDebuggerCommand>$(SAMP_SERVER_ROOT)\samp-server.exe</LocalDebuggerCommand> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
<LocalDebuggerWorkingDirectory>$(SAMP_SERVER_ROOT)</LocalDebuggerWorkingDirectory> | |
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> | |
</PropertyGroup> | |
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <idc.idc> | |
static main() { | |
GetNatives(); | |
} | |
static FindNativeNameAddr(name) { | |
auto addr; | |
addr = FindText(0, SEARCH_DOWN | SEARCH_CASE, 0, 0, name); | |
while (addr != BADADDR) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <vector> | |
#include <Windows.h> | |
#include "SDK/plugin.h" | |
#include "jump-x86.h" | |
typedef void (*logprintf_t)(const char *format, ...); | |
static logprintf_t logprintf; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unbindall | |
model "razor/default" | |
// Weapon bindings | |
bind c "weapon 1; seta cg_drawCrosshair 7" | |
bind q "weapon 2; seta cg_drawCrosshair 2" | |
bind a "weapon 3; seta cg_drawCrosshair 4" | |
bind g "weapon 4; seta cg_drawCrosshair 8" | |
bind r "weapon 5; seta cg_drawCrosshair 7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package persons; | |
public class Person { | |
private String firstName = ""; | |
private String lastName = ""; | |
private String address = ""; | |
private String phone = ""; | |
public Person() { |