Skip to content

Instantly share code, notes, and snippets.

View earlwlkr's full-sized avatar

earlwlkr earlwlkr

  • Ho Chi Minh City, Vietnam
View GitHub Profile
#include <physics>
#define SPEED 5.0
#define MAX_SOCCER_PLAYERS 5
enum E_SOCCER
{
bool:E_STARTED,
Timer: E_TIMER_LOOP,
timer DieuTraTimer[1000](playerid)
{
if (!DangDieuTra{ playerid }) return 1;
if (DieuTraLimit[playerid] > 1)
{
if (!(--DieuTraLimit[playerid]))
{
SendClientMessage(playerid, X11_LIGHT_GREY, "Ban da that bai trong viec tim kiem thu pham");
DangDieuTra{ playerid } = false;
// By Earl Walker - 1212156
#include <iostream>
#include <vector>
#include <string>
#include <locale>
using namespace std;
//#define MANUALLY_INPUT
#include <sstream>
#include <iostream>
#include <algorithm>
#include <vector>
#include "ClientInfo.h"
#include "IntervalScaledAttribute.h"
#include "BinaryAttribute.h"
#include "CategoricalAttribute.h"
@earlwlkr
earlwlkr / uart.c
Created November 27, 2014 08:30
UART driver
/************************************************************************/
/* Author: cqkhanh */
/* Date: 21/11/2014*/
/* Brief: Driver for UART*/
/* History Prepared/Updated by */
/* +21/11/2014: initial version cqkhanh */
/* +26/11/2014: update send and receive functions earlwlkr */
/************************************************************************/
/* Include */
@earlwlkr
earlwlkr / main.c
Last active August 29, 2015 14:10
UART-LED main app
#include <stdint.h>
#include "led.h"
#include "uart.h"
uart_err_t send_message(const uint8_t msg[], uint32_t msg_length);
void blink_led(led_colour_t colour);
void halt(void);
int main()
{
/************************************************************************/
/* Author: cqkhanh */
/* Date: 21/11/2014*/
/* Brief: Driver for UART*/
/* History Prepared/Updated by */
/* +21/11/2014: initial version cqkhanh */
/* +26/11/2014: update send and receive functions earlwlkr */
/************************************************************************/
/* Include */
#include <a_samp>
#include <YSI\y_iterate>
#include <zcmd>
new bool: wearing_mask[MAX_PLAYERS char];
public OnPlayerConnect(playerid)
{
wearing_mask{playerid} = false;
return 1;
#include <a_samp>
new words_blacklist[][24] = {
// Ghi nhung chu bi cam vao day.
"ditmeserver", "blabla"
};
public OnFilterScriptInit()
{
/*
Vehicle Shop Filterscript - By Mark
Commands:
- /vehshop: hien shop xe
Huong dan:
* Cai dat:
- Tai include mSelection
- Copy tu dong 25 den dong 47 bo vao gamemode chinh