mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 03:43:21 +00:00
Update things
This commit is contained in:
parent
9590ceb207
commit
d4f9241b3c
25 changed files with 650 additions and 345 deletions
|
@ -154,6 +154,9 @@ Action Timer_SetWitchTarget(Handle h, DataPack pack) {
|
|||
}
|
||||
|
||||
stock SpecialType GetSpecialType(const char[] input) {
|
||||
if(StrEqual(input, "random")) {
|
||||
return view_as<SpecialType>(GetRandomInt(0, 6))
|
||||
}
|
||||
for(int i = 0; i < 8; i++) {
|
||||
if(strcmp(SPECIAL_NAMES[i], input, false) == 0) return view_as<SpecialType>(i + 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue