Jump to content
News ticker
  • Bienvenue sur le nouveau forum VeryGames
  • Welcome to the new VeryGames forum
  • VeryNews

    cherche plugin vip


    Recommended Posts

    RegAdminCmd("sm_taille", Command, ADMINFLAG_COSTUME1) voilz jpense c sa


    Petite rectification, ( peut etre une faute de frappe je ne sais pas ^^)


    compare :

    RegAdminCmd("sm_taille", Command, ADMINFLAG_COSTUME1)


    RegAdminCmd("sm_taille", Command, ADMFLAG_CUSTOM1);


    Bonne chance ;)

    Link to comment
    Share on other sites

    Tient je tes fait sa vite fait ;)


    #include <sourcemod>
    #include <sdktools>
    #include <morecolors>
    #define LOGO "{lightgreen}[{green}VIP-TAILLE{lightgreen}]"
    public Plugin:myinfo=
    name = "VIP-TAILLE",    
    author = "IceTea",    
    version = "1.0",
    public OnPluginStart()
    HookEvent("player_spawn", PlayerSpawn);        
    RegAdminCmd("sm_taille", CommandeTaille, ADMFLAG_CUSTOM1);
    public Action:PlayerSpawn(Handle:event,String:name[], bool:dontBroadcast)
    new client = GetClientOfUserId(GetEventInt(event,"userid"));       
    if (GetUserFlagBits(client) & ADMFLAG_CUSTOM1)   
    CPrintToChat(client, "%s {default}Tapez {lightgreen}!taille {default}pour changer votre taille", LOGO);    
    public Action:CommandeTaille(client, args)
    new Handle:menu = CreateMenu(Menu_Taille);    
    SetMenuTitle(menu, "Choisissez votre taille");   
    AddMenuItem(menu, "petite", "Petite Taille");    
    AddMenuItem(menu, "normal", "Taille Normal");    
    AddMenuItem(menu, "grande", "Grande Taille");   
    SetMenuExitButton(menu, true);    
    DisplayMenu(menu, client, MENU_TIME_FOREVER);
    public Menu_Taille(Handle:menu, MenuAction:action, client, param2)
    if (action == MenuAction_Select)    
    new String:info[64];                
    GetMenuItem(menu, param2, info, sizeof(info));        
    if (StrEqual(info, "petite"))        
    SetEntPropFloat(client, Prop_Send, "m_flModelScale", 0.7);            
    CPrintToChat(client, "%s {default}Vous avez choisis de rétrécir", LOGO);        
    else if (StrEqual(info, "normal"))        
    {            SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.0);           
    CPrintToChat(client, "%s {default}Vous avez choisis de vous mettre a une taille normale", LOGO);       
    else if (StrEqual(info, "grande"))        
    SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.3);            
    CPrintToChat(client, "%s {default}Vous avez choisis de grandir", LOGO);        
    else if (action == MenuAction_End)    












    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    • Create New...