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
| const AudioContext = window.AudioContext || window.webkitAudioContext; | |
| const context = new AudioContext(); | |
| const osc = context.createOscillator(); | |
| osc.type = 'sine'; | |
| osc.frequency.value = 440; | |
| osc.connect(delay); | |
| osc.connect(context.destination); | |
| osc.start(); | |
| osc.stop(context.currentTime + 2); |
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
| public void Event_PlayerSpawn(Event event, const char[] name, bool dontBroadcast) | |
| { | |
| int userid = event.GetInt("userid"); | |
| int client = GetClientOfUserId(userid); | |
| RevokeWeapon(client, "weapon_lasergun"); | |
| } | |
| public void RevokeWeapon(const int client, const char[] revoke_clsname) | |
| { |
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 <sourcemod> | |
| #pragma semicolon 1 | |
| #pragma newdecls required | |
| public Plugin myinfo = | |
| { | |
| name = "MOTD test", | |
| author = "Me", | |
| description = "MOTD test", |
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
| <?php | |
| namespace App; | |
| use App\ServerMap as ServerMap; | |
| use Illuminate\Database\Eloquent\Model; | |
| class Server extends Model | |
| { | |
| public function __construct() |