This file contains hidden or 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
| import random | |
| from dataclasses import dataclass, field | |
| from typing import ClassVar, Dict, List, Optional, Tuple | |
| from samp import ( | |
| PLAYER_STATE_DRIVER, | |
| PLAYER_STATE_ONFOOT, | |
| AddVehicleComponent, | |
| CallRemoteFunction, | |
| ChangeVehicleColor, |
This file contains hidden or 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
| import importlib | |
| import traceback | |
| from samp import SendClientMessage | |
| from .cmdparser import cmd, handle_command | |
| from .callbacks import names | |
| from .tms import admin_level | |
This file contains hidden or 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
| from dataclasses import dataclass | |
| from typing import Optional, Tuple | |
| from samp import ( | |
| KEY_CROUCH, | |
| GetPlayerFacingAngle, | |
| GetPlayerPos, | |
| IsPlayerInAnyVehicle, | |
| KillTimer, | |
| SendClientMessage, |
This file contains hidden or 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
| import functools | |
| from dataclasses import dataclass | |
| from kivy.app import App | |
| from kivy.lang import Builder | |
| from kivy.properties import ( | |
| BooleanProperty, | |
| ColorProperty, | |
| ListProperty, | |
| StringProperty, |
This file contains hidden or 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
| # cython: language_level=3, boundscheck=False, wraparound=False, cdivision=True | |
| cimport cython | |
| from libc.string cimport strncmp, strncpy | |
| from bus cimport Bus | |
| from cpu_instructions cimport cpu_function_from_name | |
| cdef class CPU: | |
| def __cinit__(self, Bus bus): |
This file contains hidden or 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
| import math | |
| from dataclasses import dataclass | |
| from typing import Dict, Tuple | |
| from samp import ( | |
| DIALOG_STYLE_LIST, | |
| CreateObject, | |
| DestroyObject, | |
| GetPlayerPos, | |
| IsObjectMoving, |
This file contains hidden or 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
| names = [ | |
| 'OnActorStreamIn', | |
| 'OnActorStreamOut', | |
| 'OnClientCheckResponse', | |
| 'OnDialogResponse', | |
| 'OnEnterExitModShop', | |
| 'OnIncomingConnection', | |
| 'OnObjectMoved', | |
| 'OnPlayerClickMap', | |
| 'OnPlayerClickPlayer', |
This file contains hidden or 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
| import contextlib | |
| from mpd import MPDClient | |
| from pysamp import ( | |
| DIALOG_STYLE_TABLIST_HEADERS, | |
| SendClientMessage, | |
| ShowPlayerDialog, | |
| ) | |
| from .cmdparser import cmd |
This file contains hidden or 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
| from csv import DictReader | |
| from dataclasses import dataclass | |
| @dataclass | |
| class Country: | |
| id: int | |
| short_name: str | |
| long_name: str |
This file contains hidden or 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
| # cython: boundscheck=False, wraparound=False | |
| from libc.string cimport strncmp, strncpy | |
| cimport cython | |
| from bus cimport Bus | |
| from cpu_instructions cimport cpu_function_from_name | |
| cdef class CPU: |