Raised This Month: $ Target: $400
 0% 

A problem with menu.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
obiwan
Junior Member
Join Date: Sep 2008
Old 06-15-2010 , 19:05   A problem with menu.
Reply With Quote #1

Hello guys,

I want to make a menu, but i have got some problems.

I want to make menu that turn on/off a VIP model.
Part of the code is
Code:
public resetModel(id, level, cid) {
        if (get_user_flags(id) & ADMIN_USER) {
                new CsTeams:userTeam = cs_get_user_team(id)
                if (userTeam == CS_TEAM_T) {
                        cs_set_user_model(id, "vip_t")
                }
                else if(userTeam == CS_TEAM_CT) {
                        cs_set_user_model(id, "vip_ct")
                }
                else {
                        cs_reset_user_model(id)
                }
        }

        return PLUGIN_CONTINUE
}
I would like to make menu for that which going to look like this :
Code:
1. VIP Model [ON]
and when you are going to press number 1 its going to change to
Code:
1. VIP Model [OFF]
and this code is going to 'turn off' for a player and he will have default model again. (ofcourse when he will press 1 he will have VIP model again).

I am new to scripting, so please help me! :-)
obiwan 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 14:46.


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