User
Pass
2FA
 
 

Cerere plugin models

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support
Author Message912
Bhupesh

[Mentally Stable]



Status: Offline
(since 31-08-2021 07:06)
Joined: 27 Jul 2017
Posts: 21, Topics: 12
Location: India

Reputation: 36.8

Post Posted: 21-09-2017, 19:24:07 | Translate post to: ... (Click for more languages)

Name: Fondator model , admin model , player models
Plugin description: I want fondator model only T and Ct | And Another Model for Admin only T and Ct | And Another Model for Player only T and CT
More details:
Example:

0 0
  
Back to top
View user's profile Send private message
GoreSpintecatoru.

[Inactiv o perioada]



Status: Offline
(since 09-11-2017 19:29)
Joined: 18 Feb 2017
Posts: 638, Topics: 28
Location: Romania

Reputation: 762.7
Votes: 40

       
Post Posted: 28-09-2017, 16:56:03 | Translate post to: ... (Click for more languages)

Code:

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

public plugin_init() {
        register_plugin("AMX Admin Model", "1.1.1", "whitemike")
        register_event("ResetHUD", "resetModel", "acceses, example:b")
        return PLUGIN_CONTINUE
}

public plugin_precache() {
        precache_model("models/player/admin_ct/admin_ct.mdl")
        precache_model("models/player/admin_te/admin_te.mdl")

        return PLUGIN_CONTINUE
}

public resetModel(id, level, cid) {
        if (get_user_flags(id) & ADMIN_KICK) {
                new CsTeams:userTeam = cs_get_user_team(id)
                if (userTeam == CS_TEAM_T) {
                        cs_set_user_model(id, "admin_te")
                }
                else if(userTeam == CS_TEAM_CT) {
                        cs_set_user_model(id, "admin_ct")
                }
                else {
                        cs_reset_user_model(id)
                }
        }

        return PLUGIN_CONTINUE
}


Regulament|My Official Website[V:1.1]|Panel JB[V:1.0]

0 0
  
Back to top
View user's profile Send private message
Bhupesh

[Mentally Stable]



Status: Offline
(since 31-08-2021 07:06)
Joined: 27 Jul 2017
Posts: 21, Topics: 12
Location: India

Reputation: 36.8

Post Posted: 30-09-2017, 05:15:24 | Translate post to: ... (Click for more languages)

T/C
0 0
  
Back to top
View user's profile Send private message
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support  


The time now is 29-03-2024, 01:20:35
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x