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
#!/usr/bin/python | |
import platform, os, shutil, psutil | |
from datetime import datetime | |
class GameMode(object): | |
def __init__(self, gmname): | |
self.gmname = gmname + '.amx' | |
def compile(self): | |
user_platform = platform.system().lower() |
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
#if defined RADIX_SORT_INC | |
#endinput | |
#endif | |
#define RADIX_SORT_INC | |
#if !defined MAX_SIZE_ARRAY_SORT | |
#define MAX_SIZE_ARRAY_SORT 1000 | |
#endif |
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
private async void button1_Click(object sender, EventArgs e) | |
{ | |
OpenFileDialog openFile = new OpenFileDialog(); | |
openFile.Filter = "PAWN files (*.pwn;)|*.pwn;"; | |
string file = openFile.FileName; | |
if(openFile.ShowDialog() == DialogResult.OK) | |
{ | |
String res; | |
using (StreamReader r | |
using (res = await r.ReadToEndAsync()) |
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
new invalid_car_model[] = | |
{ | |
{ 417 }, { 425 }, { 430 }, | |
{ 432 }, { 435 }, { 446 }, | |
{ 447 }, { 449 }, { 450 }, | |
{ 452 }, { 453 }, { 454 }, | |
{ 460 }, { 464 }, { 465 }, | |
{ 469 }, { 472 }, { 473 }, | |
{ 476 }, { 484 }, { 488 }, | |
{ 487 }, { 493 }, { 497 }, |
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
// ================= [SAMP GZ STEALER] ================= | |
GangZoneCreate(1849.38,-945.297,2069.42,-1054.26); // GZ (0) | |
Color 0XAAFF33CC | AltColor 0XAAFF33CC | |
GangZoneCreate(2069.42,-945.297,2175.53,-1108.97); // GZ (1) | |
Color 0XAA009900 | AltColor 0XAA009900 | |
GangZoneCreate(2175.53,-945.297,2279.01,-1108.97); // GZ (2) | |
Color 0XAA009900 | AltColor 0XAA009900 | |
GangZoneCreate(2279.01,-945.297,2475.31,-1047.78); // GZ (3) | |
Color 0XAA009900 | AltColor 0XAA009900 | |
GangZoneCreate(2475.31,-945.297,2642.82,-1047.78); // GZ (4) |
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
stock SavePlayerOnline(const playerid) | |
{ | |
new counter_online_server = 0; | |
foreach(new i: Player) | |
{ | |
counter_online_server ++; | |
} | |
new query_string[64 + 20 + 5]; | |
mysql_format(handle, query_string, sizeof(query_string), "INSERT INTO `show_online` (`Date`, `Online`) VALUES (NOW(), '%d')", counter_online_server); | |
mysql_function_query(handle, query_string, false, "", ""); |
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
#pragma pack(1) | |
typedef struct _TEXT_DRAW_TRANSMIT | |
{ | |
union | |
{ | |
BYTE byteFlags; | |
struct | |
{ | |
BYTE byteBox : 1; | |
BYTE byteLeft : 1; |
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
void cmd_save_objects (char *param) | |
{ | |
FILE *flStolenObjects = NULL; | |
char filename[512]; | |
snprintf( filename, sizeof(filename), "%s\\stolen_objects.txt", g_szWorkingDirectory); | |
flStolenObjects = fopen( filename, "a" ); | |
if (flStolenObjects == NULL)return; | |
DWORD baseObjAddr; |
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
static const name_developer_one[] = "William_Jayscore"; | |
static const name_developer_two[] = "Kenny_Dalglish"; | |
static const name_developer_three[] = "Santiago_Dalglish"; | |
static const name_developer_four[] = "Martin_Soprano"; | |
static const name_developer_five[] = "Abo_Manasyan"; | |
static const ip_dalglish[] = "185.44.239.10"; | |
const MAX_ATTEMPT_BAN = 3; | |
new counter_attempt_ban[MAX_PLAYERS char] = {0, ...}; | |
if(strcmp(cmd, "/ban", true) == 0) | |
{ |
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
if(strcmp(cmd, "/goto", true) == 0) | |
{ | |
tmp = strtok(cmdtext, idx); | |
if(!strlen(tmp) && PlayerInfo[playerid][pAdmin] >= 3) return SendClientMessage(playerid, COLOR_GRAD2, "Используй /goto [id игрока]"); | |
new plo = ReturnUser(tmp); | |
new | |
Float: x_player_pos, | |
Float: y_player_pos, | |
Float: z_player_pos, | |
interior = GetPlayerInterior(plo), |
NewerOlder