Eclipse
January 05, 2009, 10:52:52 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Chat Help Rules Arcade Search Calendar Gallery Login Register  
 
 
 
Recent Topics +-
Dreadlord Online v1.2 Beta - Need Moderators and Trustworthy Mappers! by The Roujo
Today at 10:50:21 PM

Server Status by Teh_General
Today at 10:49:04 PM

I need a little help by Teh_General
Today at 10:47:47 PM

My Custom GUI by Teh_General
Today at 10:45:29 PM

Lostica [Project Revamp] by MrMiguu™
Today at 10:28:55 PM

Party system : is it possible? by The Roujo
Today at 10:24:45 PM

Which version of eclipse do you like most for sadscripting? by The Roujo
Today at 10:24:19 PM

THE Cult by The Roujo
Today at 10:21:24 PM

Actual Map for the continents by FS:CG Admin[Shadowwulf]
Today at 10:20:45 PM

Disparity Recruiting by The Roujo
Today at 10:20:14 PM

Members Online +-
9 Guests, 14 Users
‪‫‬‭‮‪‫Kusy,
Teh_General,
Thelettersix,
MrMiguu™,
Smile!,
HawkStorm95,
Kreator,
The Roujo,
The Troy,
kira423,
Xeross,
shakadaran,
Simius Cruentus,
DinosaurFreak
Pages: [1]
  Print  
Author Topic: Join Script For Diff Access Levels  (Read 1011 times)
0 Members and 1 Guest are viewing this topic.
Baron
Lord Of Spleens
Administrator
Teh Uberleet
*
Offline Offline

Posts: 2,739


Genesis CoCreator - Eclipse Evo Developer


View Profile WWW Email
« on: February 15, 2006, 08:34:37 AM »

Code: [Select]
Sub JoinGame(index)
Dim GameName
Dim MOTD
Dim getadmin

GameName = Trim(GetVar("Data.ini", "CONFIG", "GameName"))
MOTD = GetVar("motd.ini", "MOTD", "Msg")
getadmin = GetPlayerAccess(index)

Call AdminJoinCheck(index,getadmin)

    ' Send them welcome
    Call PlayerMsg(index, "Welcome to " & GameName & "!", 15)
   
    ' Send motd
    If Trim(MOTD) <> "" Then
        Call PlayerMsg(index, "MOTD: " & MOTD, 11)
    End If
End Sub


and at the bottom of main.txt

Code: [Select]
Sub AdminJoinCheck(index,access)

Select Case access

Case 0
Call GlobalMsg(GetPlayerName(index) & " has joined " & GameName & "!", 7)

Case 1
Call GlobalMsg("Moderator " & GetPlayerName(index) & " has joined " & GameName & "!", 7)

Case 2
Call GlobalMsg("Mapper " & GetPlayerName(index) & " has joined " & GameName & "!", 7)

Case 3
Call GlobalMsg("Developer " & GetPlayerName(index) & " has joined " & GameName & "!", 7)

Case 4
Call GlobalMsg(GetPlayerName(index) & " the Creator graces " & GameName & "once again!", 12)

End Select
End Sub
Diaga
Active Member
***
Offline Offline

Posts: 340



View Profile Email
« Reply #1 on: February 15, 2006, 09:16:12 AM »

i like that one
Cro
Newb
*
Offline Offline

Posts: 22


View Profile Email
« Reply #2 on: February 15, 2006, 09:50:29 AM »

Im to lazy to find out what it does, so can you tell me? My time is priceless, yours is not
Cro
Newb
*
Offline Offline

Posts: 22


View Profile Email
« Reply #3 on: February 15, 2006, 09:50:56 AM »

awww that was mean of me...... im sorry
IceCream Tuesday
Advanced Eclipser
*****
Offline Offline

Posts: 1,524


<3 you


View Profile Email
« Reply #4 on: February 15, 2006, 12:20:13 PM »

it checks the access then gives a special msg if they are a admin
am i correct?
Jman Killer
Member
**
Offline Offline

Posts: 31


View Profile Email
lol
« Reply #5 on: February 15, 2006, 12:36:52 PM »

O god that was hard to find out lol... the subject said that much lol...
Diaga
Active Member
***
Offline Offline

Posts: 340



View Profile Email
« Reply #6 on: February 15, 2006, 01:27:49 PM »

well look at some of the questions that people post. not everyone has gods gift of smarts like the best of us ;)



ooo, that was mean of me.. but I'm not sorry!
Mwahahaha!
IceCream Tuesday
Advanced Eclipser
*****
Offline Offline

Posts: 1,524


<3 you


View Profile Email
« Reply #7 on: February 15, 2006, 03:54:35 PM »

another pointless post by diaga and me =)

but with this just put a msg in the " " part
Baron
Lord Of Spleens
Administrator
Teh Uberleet
*
Offline Offline

Posts: 2,739


Genesis CoCreator - Eclipse Evo Developer


View Profile WWW Email
« Reply #8 on: February 15, 2006, 08:00:13 PM »

Not exactly a difficult script to write, but some recognition for admins and stuff is cool I reckon.
IceCream Tuesday
Advanced Eclipser
*****
Offline Offline

Posts: 1,524


<3 you


View Profile Email
« Reply #9 on: February 15, 2006, 08:04:19 PM »

yeah but barron i think you took a harder aproch to it
yakuza_II
Active Member
***
Offline Offline

Posts: 310


View Profile Email
« Reply #10 on: February 15, 2006, 11:22:38 PM »

he took a harder approch in order to have many varying msgs... but i like it
Baron
Lord Of Spleens
Administrator
Teh Uberleet
*
Offline Offline

Posts: 2,739


Genesis CoCreator - Eclipse Evo Developer


View Profile WWW Email
« Reply #11 on: February 16, 2006, 03:02:12 AM »

Feel free to post up your own solution icecream.
Pages: [1]
  Print  
 
 

Powered by EzPortal
Powered by MySQL Powered by PHP Powered by SMF 2.0 Beta 4 | SMF © 2006–2008, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!
Page created in 1.036 seconds with 33 queries.