mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 12:03:20 +00:00
Add some minor checks
This commit is contained in:
parent
d5a4f2224f
commit
3f5959ec71
8 changed files with 138 additions and 59 deletions
|
@ -1,15 +0,0 @@
|
|||
public void MarkPlayer(int client, int marker) {
|
||||
|
||||
}
|
||||
|
||||
public void UnmarkPlayer(int client) {
|
||||
|
||||
}
|
||||
|
||||
public void IsPlayerMarked(int client) {
|
||||
|
||||
}
|
||||
|
||||
public void ToggleMarkPlayer(int client, marker) {
|
||||
|
||||
}
|
|
@ -40,6 +40,7 @@ bool ToggleMarkPlayer(int client, int target) {
|
|||
Call_PushCell(target);
|
||||
Call_Finish();
|
||||
g_PendingBanTroll[target] = true;
|
||||
EnableTroll(target, "NoProfanity");
|
||||
ShowActivity(client, "marked %N as troll", target);
|
||||
return true;
|
||||
}else{
|
||||
|
|
|
@ -37,6 +37,7 @@ float GetIdealMinDistance(int specialType) {
|
|||
}
|
||||
|
||||
bool SpawnSpecialInFace(int target, int specialType) {
|
||||
if(specialType >= sizeof(SPECIAL_NAMES)) return false;
|
||||
static float pos[3], ang[3];
|
||||
static float testPos[3];
|
||||
testPos = pos;
|
||||
|
@ -68,6 +69,7 @@ bool SpawnSpecialInFace(int target, int specialType) {
|
|||
}
|
||||
|
||||
bool SpawnSpecialNear(int target, int specialType) {
|
||||
if(specialType >= sizeof(SPECIAL_NAMES)) return false;
|
||||
static float pos[3];
|
||||
if(L4D_GetRandomPZSpawnPosition(target, specialType, 10, pos)) {
|
||||
int special = (specialType == 7) ? L4D2_SpawnWitch(pos, ZERO_VECTOR) : L4D2_SpawnSpecial(specialType, pos, ZERO_VECTOR);
|
||||
|
|
|
@ -36,4 +36,4 @@ float ZERO_VECTOR[3] = {0.0, 0.0, 0.0};
|
|||
#include <feedthetrolls/commands>
|
||||
#include <feedthetrolls/events>
|
||||
#include <feedthetrolls/timers>
|
||||
#include <feedthetrolls/menus>
|
||||
#include <feedthetrolls/menus>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue