Raised This Month: $ Target: $400
 0% 

Model By Flag for Zombie Escape Mod (problem) !


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
oTm4n3
Member
Join Date: Jul 2021
Old 07-28-2021 , 15:53   Model By Flag for Zombie Escape Mod (problem) !
Reply With Quote #1


Hello , I'm trying or making a model for the member team, but I'm facing a problem, when I turn into a zombie, it remains the same model as a human.
[HTML]Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

Warning: Tag mismatch on line 52
Warning: Tag mismatch on line 55
Warning: Tag mismatch on line 66
Warning: Tag mismatch on line 69
Warning: Tag mismatch on line 80
Warning: Tag mismatch on line 83
Warning: Tag mismatch on line 94
Warning: Tag mismatch on line 97
Warning: Tag mismatch on line 108
Warning: Tag mismatch on line 111
Warning: Tag mismatch on line 122
Warning: Tag mismatch on line 125
Warning: Tag mismatch on line 136
Warning: Tag mismatch on line 139
Header size: 368 bytes
Code size: 2876 bytes
Data size: 2084 bytes
Stack/heap size: 16384 bytes; estimated max. usage=781 cells (3124 bytes)
Total requirements: 21712 bytes

14 Warnings.
Done.
PHP Code:

Script sma 
:
[
HTML]// Xavier's Server † Auto-Admin Skin Models Plugin.
// Designed & Developed by, Aditya Ambre [a.k.a. Vladimir Dz].
// Created on 27 Aug 2020.
// Copyrights © 2020 ¦ All Rights Reserved.

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <zombieplague>

public plugin_init() {
    
    
register_plugin("XVSkins †""5.0""oTm4n3")
    
    
register_event("ResetHUD""resetModel""b")
    
    return 
PLUGIN_CONTINUE
}

public 
plugin_precache() {
    
    
// Server-Fondator [Flags - "abcdefghjklmnoprsitu"] .
    
precache_model("models/player/fondator_ct/fondator_ct.mdl")

    
// Owner [Flags - "abcdefghijklmnopqrsux"] .
    
precache_model("models/player/owner_ct/owner_ct.mdl")

    
// Co-Owner [Flags - "abcdefijmnopqrsuv"] .
    
precache_model("models/player/co-owner_ct/co-owner_ct.mdl")
    
    
// Administrator [Flags - "abcdefijmnopqy"] .
    
precache_model("models/player/head-admin_ct/head-admin_ct.mdl")
    
    
// Admin-Helper [Flags - "bcejmno"] .
    
precache_model("models/player/helper-admin_ct/helper-admin_ct.mdl")

    
// Slots [Flags - "bejimw"] .
    
precache_model("models/player/slot_ct/slot_ct.mdl")
    
    
// VIPS [Flags - "b"] .
    
precache_model("models/player/vip_ct/vip_ct.mdl")
    
    return 
PLUGIN_CONTINUE
    
}

public 
resetModel(idlevelcid
{
    
// Server-Fondator 
    
if( has_flagid"t" )) {
        new 
CsTeams:userTeam cs_get_user_team(id)
        if (
userTeam == ZP_TEAM_HUMAN) {
            
cs_set_user_model(id"fondator_ct")
        }
        else if(
userTeam == ZP_TEAM_ZOMBIE) {
            
cs_set_user_model(id"zombie_source")
        }
        else {
            
cs_reset_user_model(id)
        }
    }

    
// Owner
    
else if( has_flagid"x" )) {
        new 
CsTeams:userTeam cs_get_user_team(id)
        if (
userTeam == ZP_TEAM_HUMAN) {
            
cs_set_user_model(id"owner_ct")
        }
        else if(
userTeam == ZP_TEAM_ZOMBIE) {
            
cs_set_user_model(id"zombie_source")
        }
        else {
            
cs_reset_user_model(id)
        }
    }

    
// Co-Owner
    
else if( has_flagid"v" )) {
        new 
CsTeams:userTeam cs_get_user_team(id)
        if (
userTeam == ZP_TEAM_HUMAN) {
            
cs_set_user_model(id"co-owner_ct")
        }
        else if(
userTeam == ZP_TEAM_ZOMBIE) {
            
cs_set_user_model(id"zombie_source")
        }
        else {
            
cs_reset_user_model(id)
        }
    }
    
    
// Administrator 
    
else if( has_flagid"y" )) {
        new 
CsTeams:userTeam cs_get_user_team(id)
        if (
userTeam == ZP_TEAM_HUMAN) {
            
cs_set_user_model(id"head-admin_ct")
        }
        else if(
userTeam == ZP_TEAM_ZOMBIE) {
            
cs_set_user_model(id"zombie_source")
        }
        else {
            
cs_reset_user_model(id)
        }
    }

    
// Admin-Helper 
    
else if( has_flagid"o" )) {
        new 
CsTeams:userTeam cs_get_user_team(id)
        if (
userTeam == ZP_TEAM_HUMAN) {
            
cs_set_user_model(id"helper-admin_ct")
        }
        else if(
userTeam == ZP_TEAM_ZOMBIE) {
            
cs_set_user_model(id"zombie_source")
        }
        else {
            
cs_reset_user_model(id)
        }
    }
    
    
// Slots 
    
else if( has_flagid"w" )) {
        new 
CsTeams:userTeam cs_get_user_team(id)
        if (
userTeam == ZP_TEAM_HUMAN) {
            
cs_set_user_model(id"slot_ct")
        }
        else if(
userTeam == ZP_TEAM_ZOMBIE) {
            
cs_set_user_model(id"zombie_source")
        }
        else {
            
cs_reset_user_model(id)
        }
    }

    
// VIPS 
    
else if( has_flagid"b" )) {
        new 
CsTeams:userTeam cs_get_user_team(id)
        if (
userTeam == ZP_TEAM_HUMAN) {
            
cs_set_user_model(id"vip_ct")
        }
        else if(
userTeam == ZP_TEAM_ZOMBIE) {
            
cs_set_user_model(id"zp_get_user_zombie")
        }
        else {
            
cs_reset_user_model(id)
        }
    }

    return 
PLUGIN_CONTINUE


Last edited by oTm4n3; 07-28-2021 at 22:49.
oTm4n3 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode