mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 08:03:20 +00:00
Minor improvements
This commit is contained in:
parent
7d3f8b604a
commit
65a3af9ae0
5 changed files with 7 additions and 7 deletions
|
@ -46,14 +46,14 @@ public void OnEntityCreated(int entity, const char[] classname) {
|
|||
if(StrEqual(classname, "infected", false))
|
||||
SDKHook(entity, SDKHook_OnTakeDamageAlive, NerfGun_OnTakeDamage);
|
||||
else if(StrEqual(classname, "prop_physics")) {
|
||||
char model[64];
|
||||
/*char model[64];
|
||||
GetEntPropString(entity, Prop_Data, "m_ModelName", model, sizeof(model));
|
||||
for(int i = 0; i < CAR_MODEL_COUNT; i++) {
|
||||
if(StrEqual(CAR_MODELS[i], model)) {
|
||||
HookSingleEntityOutput(entity, "OnHitByTank", OnCarHitByTank);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
HookSingleEntityOutput(entity, "OnHitByTank", OnCarHitByTank);
|
||||
} else if(StrEqual(classname, "prop_car_alarm")) {
|
||||
HookSingleEntityOutput(entity, "OnHitByTank", OnCarHitByTank);
|
||||
} else if(StrEqual(classname, "tank_rock") || StrContains(classname, "_projectile", true) > -1 ) {
|
||||
|
|
|
@ -26,7 +26,7 @@ void SetupTrolls() {
|
|||
// Tied to: ProjectileMagnetType
|
||||
Trolls[index].AddFlag("Infected (rocks/goo)", true);
|
||||
Trolls[index].AddFlag("Teammates (grenades)", false);
|
||||
Trolls[index].AddFlag("Thrown Cars (wip)", false);
|
||||
Trolls[index].AddFlag("Thrown Tank Objects", false);
|
||||
|
||||
/// CATEGORY: Infected
|
||||
SetCategory("Infected");
|
||||
|
|
|
@ -237,7 +237,7 @@ public void DB_FindNotes(Database db, DBResultSet results, const char[] error, a
|
|||
int client = GetClientOfUserId(data);
|
||||
if(client > 0 && results.RowCount > 0) {
|
||||
static char noteCreator[32];
|
||||
PrintChatToAdmins("Notes for %N", client);
|
||||
PrintChatToAdmins("> Notes for %N", client);
|
||||
while(results.FetchRow()) {
|
||||
results.FetchString(0, reason, sizeof(reason));
|
||||
results.FetchString(1, noteCreator, sizeof(noteCreator));
|
||||
|
@ -262,9 +262,9 @@ public void DB_ListNotesForPlayer(Database db, DBResultSet results, const char[]
|
|||
if(client > 0) {
|
||||
if(results.RowCount > 0) {
|
||||
if(target > 0) {
|
||||
PrintToChat(client, "Notes for %N:", target);
|
||||
PrintToChat(client, "> Notes for %N:", target);
|
||||
} else {
|
||||
PrintToChat(client, "Notes for %s:", auth);
|
||||
PrintToChat(client, "> Notes for %s:", auth);
|
||||
}
|
||||
char noteCreator[32];
|
||||
while(results.FetchRow()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue