Bulk update

This commit is contained in:
Jackzie 2021-04-20 21:35:54 -05:00
parent f37301cae8
commit 9adbe21719
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
22 changed files with 1221 additions and 103 deletions

View file

@ -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;