Skip to content

Instantly share code, notes, and snippets.

View Zaur-Lumanov's full-sized avatar

Zaur Zaur-Lumanov

  • vk.com/hs
  • Moscow
View GitHub Profile
#if defined _fep_included
#endinput
#endif
#define _fep_included
#include <a_samp>
//------------------------------------------------------------------------------
#define ForEachPlayer(%0) for(new index_%0=0, %0=ConnectedPlayerList[0]; index_%0<ConnectedPlayers; %0=ConnectedPlayerList[++index_%0])
#define randNubberPlate(%0) format(%0,sizeof(%0),"%c%03i%c%c",(random('Z'-'A')+'A'),random(999-1)+1,(random('Z'-'A')+'A'),(random('Z'-'A')+'A'))
GPP=g++
OUTFILE="pluginname.so"
COMPILE_FLAGS=-c -fPIC -O3 -w -DLINUX -ISDK/amx/
all:
$(GPP) $(COMPILE_FLAGS) SDK/*.cpp
$(GPP) $(COMPILE_FLAGS) *.cpp
$(GPP) -O2 -m32 -fshort-wchar -shared -o $(OUTFILE) *.o
#define FILTERSCRIPT
#include <a_samp>
#include <zcmd>
#define EXITDLG 2775
#define SendMes(%1,%2,%3,%4) do{ format(sendmes, sizeof(sendmes), (%3),%4); SendClientMessage((%1),(%2), sendmes); } while(FALSE)
new PlayerText:Textdraw[MAX_PLAYERS][175];
new sendmes[144], playername[2][MAX_PLAYER_NAME], FALSE;
// Ко всем new
new _buffstr[128];
// В конец кода
stock escapeString(const _string[])
{
mysql_escape_string(_string,_buffstr);
return _buffstr;
}
@Zaur-Lumanov
Zaur-Lumanov / mybot.cs
Created February 1, 2016 07:54
Decrypted script "mybot.cs"
// This file was decompiled using SASCM.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007
{$CLEO .cs}
//-------------MAIN---------------
0@ = -23523
gosub 0@
0000: NOP
wait 2500
0AF8:
hex
@___If_u_can_read_this_u_r_nerd();
@___If_u_can_read_this_u_r_nerd()
{
#emit stack 0x7FFFFFFF
#emit inc.s cellmax
static const ___[][] = {"Brass", "K"};
#emit retn
#emit load.s.pri ___
#emit proc
#emit proc
forward main();
public main()
{
#emit stack 0x7FFFFFFF
#emit inc.s cellmax
static const ___[][] = {"Brass", "K"};
#emit retn
#emit load.s.pri ___
#emit proc
#emit proc
#include <core>
public main()
{
say("test pawn bot");
}