Reorganize some utils, change dividing lines

This commit is contained in:
Vortrex
2021-03-16 00:34:45 -05:00
parent dc145f92b9
commit deaf0b34a5
98 changed files with 1765 additions and 1849 deletions

View File

@@ -2,19 +2,19 @@
// Asshat-Gaming Roleplay
// https://github.com/VortrexFTW/gtac_asshat_rp
// Copyright (c) 2021 Asshat-Gaming (https://asshatgaming.com)
// ---------------------------------------------------------------------------
// ===========================================================================
// FILE: tazer.js
// DESC: Provides features and usage for the tazer item type
// TYPE: Server (JavaScript)
// ===========================================================================
// ---------------------------------------------------------------------------
// ===========================================================================
function isPlayerTazed(client) {
return (getPlayerData(client).pedState == AG_PEDSTATE_TAZED);
}
// ---------------------------------------------------------------------------
// ===========================================================================
function tazePlayer(client) {
getPlayerData(client).pedState = AG_PEDSTATE_TAZED;
@@ -26,11 +26,11 @@ function tazePlayer(client) {
}, getGlobalConfig().tazerEffectDuration);
}
// ---------------------------------------------------------------------------
// ===========================================================================
function unTazePlayer(client) {
getPlayerData(client).pedState = AG_PEDSTATE_READY;
setPlayerControlState(client, true);
}
// ---------------------------------------------------------------------------
// ===========================================================================