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
#include <YSI_Coding\y_timers> | |
#include <YSI_Server\y_colours> | |
#include <YSI_Visual\y_commands> | |
// Gamemode Entry | |
main() | |
{ | |
printf("Copyright (c) - 2023 Genesis Roleplay"); | |
} |
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
// Overload macros for UpdateTextDrawTime | |
#define UpdateTextDrawTime(%1) (_:UTDT0:UTDT1:UpdateTdOvrld(%1)) | |
#define UTDT0:UTDT1:UpdateTdOvrld(%1,%8PlayerText%9:%2) UpdateTextDrawTime__(%2,%1) | |
#define UTDT1:UpdateTdOvrld(%8Text%9:%1) UpdateTextDrawTime__(%1) | |
UpdateTextDrawTime__({PlayerText, Text}:textdraw, extraid = INVALID_PLAYER_ID, tag = tagof(textdraw)) | |
{ | |
new hour, minute, second; | |
gettime(hour, minute, second); |
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
#include <console> | |
#include <file> | |
#include <string> | |
stock sanitize(buffer[]) | |
{ | |
new pos = strfind(buffer, "\r\n"); | |
buffer[pos] = EOS; | |
return 1; |
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
/* | |
@Title: Datetime Script 1.0 | |
@Author: Aiura | |
@License: MIT | |
@Date: February 24th, 2023 | |
Feel free to copy and paste the code, but don't forget to put the credits at the top of the function | |
- Aiura | |
*/ |
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
CensorIp(ip[]) | |
{ | |
if (!IsValidIp(ip)) | |
return 0; | |
for (new i = 0, j = strlen(ip), k = 0; i < j; i++) | |
{ | |
if (ip[i] == '.') | |
{ | |
k ++; |
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
#!/bin/sh | |
clear | |
echo "+----------------------+" | |
echo "| App Installer v0.3 |" | |
echo "| By: Aiura |" | |
echo "+----------------------+" | |
echo | |
# If supplied argument is not 1 |
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
void:TogglePlayerNameTag(playerid, bool:toggle) | |
{ | |
for ( | |
new | |
targetid = 0, | |
maxPlayers = GetMaxPlayers(); | |
/* if (*/targetid < maxPlayers;/*) */ | |
ShowPlayerNameTagForPlayer( | |
playerid, |
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
/* | |
This is ported from easyDialog.inc for easier usage | |
But this only works for public functions and dumbest idea ever | |
I could just use indirection internally but meh | |
- Aiura | |
*/ | |
#if defined _inc_y_dialog_wrapper |
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
{ | |
"emeraldwalk.runonsave": { | |
"shell": "/bin/bash", | |
"autoClearConsole": true, | |
"commands": [ | |
{ | |
"match": "\\.pwn$", | |
"isAsync": true, | |
"cmd": "sampctl build" | |
}, |
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
#!/bin/sh | |
show_banner() { | |
clear | |
echo "+------------------------+" | |
echo "| sampctl dev installer |" | |
echo "| version: 0.5 |" | |
echo "| by: Aiura |" | |
echo "+------------------------+" | |
echo |
NewerOlder