Skip to content

Instantly share code, notes, and snippets.

View dennorske's full-sized avatar
🐶

denNorske dennorske

🐶
View GitHub Profile
@dennorske
dennorske / test.py
Created December 4, 2023 15:10
DialogList concept for PySAMP
from python.core.color import DialogColor # Colors that has double curly brackets, basically.
class ListItem:
"""A list item is a string that is colored,
formatted and split into tabs. Each field is split with \\t.
To format an item, access the field directly.
"""
def __init__(
@dennorske
dennorske / cmdparser.py
Created April 24, 2022 20:47 — forked from Cheaterman/cmdparser.py
cmdparser.py
import inspect
import types
import samp
t_unauthorized = 'You are not allowed to use this command'
t_unauthd_color = 0xFF1111FF
_cmd_list = dict()
current_cmd = None
[19:42:58] [debug] Server crashed due to an unknown error
[19:42:58] [debug] Native backtrace:
[19:42:58] [debug] #0 f7262e8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[19:42:58] [debug] #1 f725bbcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[19:42:58] [debug] #2 f725cdbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[19:42:58] [debug] #3 f725d226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[19:42:58] [debug] #4 f7262adc in ?? () from plugins/crashdetect.so
[19:42:58] [debug] #5 f7738cb0 in __kernel_rt_sigreturn () from linux-gate.so.1
[19:42:58] [debug] #6 f7738c89 in __kernel_vsyscall () from linux-gate.so.1
[19:42:58] [debug] #7 f72b3912 in gsignal () from /lib/i386-linux-gnu/libc.so.6
//////////////////////////////////////////////////
1 - Trial Admin
Trial admins are in the start phase to show us
their capabilities to perform well on an admin
team.
//Commands:
/goto
/slap
/playerweaps
//place this at the top with the other "new's" in the script.
new BotIndexer;
//place this at the bottom.
stock Say(channel[], text[])
{
if(!strlen(text) || !strlen(channel))
return 1;
if(botindexer == 4)
botindexer = 0;
//==////==////==////==////==////==////==////==////==////==////==////==// OnPlayerConnect:
print("hadet3");
AllFormat(grey,
"*** "cgreen"%s"cgrey"[%d] has joined the server ***",
"*** "cgreen"%s"cgrey"[%d] ha ingresado a el servidor ***",
"*** "cgreen"%s"cgrey"[%d] è entrato nel server ***",
"*** "cgreen"%s"cgrey"[%d] har koblet til serveren ***", PlayerName(playerid), playerid);
print("hadet4");
Criminals must follow the server rules just like any other player.
Criminals can not pester, kill, tease or provoke the cops or Admins.
You are not allowed to abuse commands/features/bugs to get an unfair adventage
Robbing in server arranged events is strictly forbidden.
Criminals are allowed to use /goto in order to rob.
If you are a VIP member or Admin, we do not allow you to hide in the private VIP/Admin areas
Respect decisions by admins and cops, they are just doing their duties.
Do not stalk IRC Cop radio. If you get caught, you'll get a ban from IRC.
Admins are allowed to interfere into cop chases in extreme situations or rulebreaking.
Along with robbing and being part of gangs comes rules and responsibilities.
//add this on top
new bool:TimerHasBeenCalled[MAX_PLAYERS]; //global
new bool:pickedup[MAX_PLAYERS]; //global
//replace with this
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
if(pickedup[playerid] == false) //to prevent multiple "pickups" by a player to confuse the timers
{
eXtreme StuntinG Server Rules
1) Do not use any kind of cheats, hacks or mods in general. (Skins are allowed)
2) Do not create more than one account.
3) Do not spam or flood on the main chat and do not use /me for unnecessary messages.
4) Do not flood the server teleports or abuse commands.
5) Do not make /q jokes on the main chat.
6) Do not disturb players in stunt areas with big vehicles, ramming or spawnkilling either with weapons or vehicles.
// ANTI FLAME --------------------------------------------
new strfindres = -1;
new stringz[132];
new words[11][]=
{
"fuck",
"nigger",
"bastard",
"asshole",