Skip to content

Instantly share code, notes, and snippets.

View continue98's full-sized avatar
🏢
Working from office

Daniil Sozontov continue98

🏢
Working from office
View GitHub Profile
#!/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()
#if defined RADIX_SORT_INC
#endinput
#endif
#define RADIX_SORT_INC
#if !defined MAX_SIZE_ARRAY_SORT
#define MAX_SIZE_ARRAY_SORT 1000
#endif
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())
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 },
// ================= [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)
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, "", "");
#pragma pack(1)
typedef struct _TEXT_DRAW_TRANSMIT
{
union
{
BYTE byteFlags;
struct
{
BYTE byteBox : 1;
BYTE byteLeft : 1;
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;
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)
{
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),