mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-09 20:43:21 +00:00
Bulk update
This commit is contained in:
parent
f37301cae8
commit
9adbe21719
22 changed files with 1221 additions and 103 deletions
|
@ -8,17 +8,17 @@ enum Character {
|
|||
Character_Zoey,
|
||||
Character_Louis
|
||||
}
|
||||
native int IdentityFix_SetPlayerModel(int client, int args);
|
||||
native int IdentityFix_SetPlayerModel(int client, int args, bool keep = false);
|
||||
|
||||
|
||||
static bool nativeAvailable, nativeTested;
|
||||
bool UpdatePlayerIdentity(int client, Character character) {
|
||||
bool UpdatePlayerIdentity(int client, Character character, bool keep = false) {
|
||||
if(!nativeTested) {
|
||||
nativeTested = true;
|
||||
nativeAvailable = GetFeatureStatus(FeatureType_Native, "IdentityFix_SetPlayerModel") == FeatureStatus_Available;
|
||||
}
|
||||
if(nativeAvailable) {
|
||||
int result = IdentityFix_SetPlayerModel(client, view_as<int>(character));
|
||||
int result = IdentityFix_SetPlayerModel(client, view_as<int>(character), keep);
|
||||
return result == 0;
|
||||
}else{
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue