Raised This Month: $ Target: $400
 0% 

Connect Message


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Benjamin1995
SourceMod Donor
Join Date: May 2009
Location: Germany
Plugin ID:
1076
Plugin Version:
1.1
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Admin and Cop Connect Messager
    Unapprover:
    Reason for Unapproving:
    too many errors and bugs and plugin already exists
    Old 08-08-2009 , 19:35   Connect Message
    Reply With Quote #1

    Hello,

    i made a Plugin for Roleplay and other server it is a Admin Connect Plugin with sound there are just 3 Command



    //Dont use sound/ just the supfolder!!!

    sm_deletejoinsound <name>
    example: sm_deletejoinsound benni

    //For Admins:
    sm_setjoinsound <name> <sound>
    example: sm_setjoinsound benni "bennisounds/admingsb.mp3"

    //For every player Players:
    sm_setcustomjoinsound <name> <sound>
    example: sm_setcustomjoinsound benni "bennisounds/admingsb.mp3"

    //For Roleplay:
    sm_setcopjoinsound <name> <sound>
    example: sm_setcopjoinsound benni "bennisounds/admingsb.mp3"

    //Picture:


    PHP Code:
    -->Fixed Warnings<-- 

    I think it will work for every Mod

    Have Fun
    Benni
    Attached Files
    File Type: zip connect.zip (504 Bytes, 366 views)
    File Type: sp Get Plugin or Get Source (connect.sp - 543 views - 11.2 KB)
    __________________

    Last edited by Benjamin1995; 09-13-2009 at 06:01.
    Benjamin1995 is offline
    Send a message via Skype™ to Benjamin1995
    almcaeobtac
    Senior Member
    Join Date: Nov 2008
    Location: Florida
    Old 08-08-2009 , 21:29   Re: Connect Message
    Reply With Quote #2

    Nice plugin
    __________________
    almcaeobtac is offline
    exvel
    SourceMod Donor
    Join Date: Jun 2006
    Location: Russia
    Old 08-09-2009 , 04:58   Re: Connect Message
    Reply With Quote #3

    You should use zip instead of rar.
    Anyway, plugin looks good.
    __________________
    For admins: My plugins

    For developers: Colors library
    exvel is offline
    Send a message via ICQ to exvel
    Benjamin1995
    SourceMod Donor
    Join Date: May 2009
    Location: Germany
    Old 08-09-2009 , 05:43   Re: Connect Message
    Reply With Quote #4

    Mhhhhh
    Ok ichange it to Zip
    __________________
    Benjamin1995 is offline
    Send a message via Skype™ to Benjamin1995
    kiwi87
    Member
    Join Date: Sep 2009
    Old 09-03-2009 , 19:35   Re: Connect Message
    Reply With Quote #5

    //For Admins:
    sm_setjoinsound <name> <sound>
    example: sm_setjoinsound benni "bennisounds/admingsb.mp3"

    //For every player Players:
    sm_setcustomjoinsound <name> <sound>
    example: sm_setcustomjoinsound benni "bennisounds/admingsb.mp3"


    I don't under stand. For all player join sound why is it sm_setcustomjoinsound <name??> <sound>


    kiwi87 is offline
    Benjamin1995
    SourceMod Donor
    Join Date: May 2009
    Location: Germany
    Old 09-05-2009 , 14:23   Re: Connect Message
    Reply With Quote #6

    mhhh ya mhhh
    sm_setjoinsound = just for admin
    and custom are for all that you want give a join sound
    __________________
    Benjamin1995 is offline
    Send a message via Skype™ to Benjamin1995
    kiwi87
    Member
    Join Date: Sep 2009
    Old 09-10-2009 , 15:33   Re: Connect Message
    Reply With Quote #7

    So for every player is it like this?
    //For every player Players:
    sm_setcustomjoinsound <name> <sound>
    example: sm_setcustomjoinsound @all "bennisounds/admingsb.mp3" ???
    kiwi87 is offline
    berni
    SourceMod Plugin Approver
    Join Date: May 2007
    Location: Austria
    Old 09-11-2009 , 14:03   Re: Connect Message
    Reply With Quote #8

    • Sounds are not getting downloaded when you connect, so it's useless.
    • This plugin is bloated and uses the same code again and again, you should encapsulate in functions
    • What is the difference between the commands ?
    • You should make a config for the joinsounds
    • Path variables should use the constant PLATFORM_MAX_PATH
    • use MaxClients instead of GetMaxClients() in loops
    • There are 16 warnings on compile that should be fixed.
    Quote:

    connect.sp(60) : warning 219: local variable "Sound" shadows a variable at a preceding level
    connect.sp(61) : warning 203: symbol is never used: "ClientName"
    connect.sp(157) : warning 219: local variable "Sound" shadows a variable at a preceding level
    connect.sp(15 : warning 203: symbol is never used: "ClientName"
    connect.sp(257) : warning 219: local variable "Sound" shadows a variable at a preceding level
    connect.sp(25 : warning 203: symbol is never used: "ClientName"
    connect.sp(355) : warning 219: local variable "Sound" shadows a variable at a preceding level
    connect.sp(356) : warning 203: symbol is never used: "ClientName"
    connect.sp(477) : warning 219: local variable "SteamId" shadows a variable at a preceding level
    connect.sp(47 : warning 219: local variable "Sound" shadows a variable at a preceding level
    connect.sp(49 : warning 219: local variable "SteamId" shadows a variable at a preceding level
    connect.sp(499) : warning 219: local variable "Sound" shadows a variable at a preceding level
    connect.sp(517) : warning 217: loose indentation
    connect.sp(519) : warning 219: local variable "SteamId" shadows a variable at a preceding level
    connect.sp(520) : warning 219: local variable "Sound" shadows a variable at a preceding level
    connect.sp(24) : warning 203: symbol is never used: "Sound"
    Greetings, ~Berni
    __________________
    Why reinvent the wheel ? Download smlib with over 350 useful functions.

    When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
    powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0

    Last edited by berni; 09-13-2009 at 04:56.
    berni is offline
    Benjamin1995
    SourceMod Donor
    Join Date: May 2009
    Location: Germany
    Old 09-12-2009 , 20:51   Re: Connect Message
    Reply With Quote #9

    Mkay its true but this plugin was a thing from 25 mins........
    I need to add a autodownloader i just made it for my server......
    than a friend said to me upload it^^
    __________________
    Benjamin1995 is offline
    Send a message via Skype™ to Benjamin1995
    berni
    SourceMod Plugin Approver
    Join Date: May 2007
    Location: Austria
    Old 09-13-2009 , 04:56   Re: Connect Message
    Reply With Quote #10

    Well, you either fix it or it get's unapproved, it's your choice
    __________________
    Why reinvent the wheel ? Download smlib with over 350 useful functions.

    When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
    powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
    berni is offline
    Reply



    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 21:02.


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