Skip to content

Commit

Permalink
Version 1.1.1 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
nushnush committed Jan 26, 2021
1 parent d9a38a5 commit 5cb1a87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Binary file modified sourcemod/plugins/warpaints.smx
Binary file not shown.
10 changes: 7 additions & 3 deletions sourcemod/scripting/warpaints.sp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public Plugin myinfo =
name = "[TF2] Warpaint Skins",
author = "StrikeR14",
description = "Apply warpaint skins!",
version = "1.1",
version = "1.1.1",
url = "https://steamcommunity.com/id/kenmaskimmeod/"
};

Expand Down Expand Up @@ -65,7 +65,9 @@ public Action SetSkin(int client, int args)

if(!IsValidWarpaint(skin))
{
ReplyToCommand(client, "[SM] Unavailable skin id (%i). Available values: 200-215, 217, 218, 220, 221, 223-226, 228, 230, 232, 234-273, 300-310.", skin);
PrintToChat(client, "[SM] Unavailable skin id (%i).", skin);
PrintToChat(client, "[SM] Available values: 102, 104-106, 109, 112-114, 112, 130, 139, 143, 144, 151, 160, 161, 163,");
PrintToChat(client, "[SM] Available values: 200-215, 217, 218, 220, 221, 223-226, 228, 230, 232, 234-273, 300-310.");
return Plugin_Handled;
}

Expand Down Expand Up @@ -102,6 +104,8 @@ bool FindInDef(const int def)

bool IsValidWarpaint(const int war)
{
return (200 <= war <= 283 && war != 216 && war != 219 && war != 222 && war != 227 && war != 229 && war != 231 && war != 233 && war != 274)
return (102 <= war <= 114 && war != 103 && war != 107 && war != 108 && war != 110 && war != 111)
|| war == 122 || war == 130 || war == 139 || war == 143 || war == 144 || war == 151 || war == 160 || war == 161 || war == 163
|| (200 <= war <= 283 && war != 216 && war != 219 && war != 222 && war != 227 && war != 229 && war != 231 && war != 233 && war != 274)
|| (300 <= war <= 310);
}

0 comments on commit 5cb1a87

Please # to comment.