View Single Post
Plugin Info:     Modification:          Category:          Approver:   ConnorMcLeod (74)
ÜnLoCo
Member
Join Date: Dec 2009
Location: 35.77N, 10.82E
Old 06-28-2010 , 00:35   Facebook Connect 1.0
Reply With Quote #1

Facebook Connect 1.0 (fbconnect 1.0) by ÜnLoCo

integrates facebook connect feature to your counter strike server.
  • players will be identified by their facebook accounts.
  • players will be able to view other players profiles.
  • admins will be able to ban players by their facebook ID/profile.
Requirements :
  • fbconnect plugin.
  • facebook application (php + sql => hosted).
Commands : (no cvars for this version 1.0)
  • for all players: say /fb to view profiles
  • for admins: say /fban to ban profiles
  • for admins: amx_fban to ban profiles
Installation :
  • Install Plugin : you have to open the sma and edit lines 14 15 [16 optional]. you can also comment any lines if you know what you doing !
  • make a free hosting site
some tips:
in Canvas :
in Connect :

  • upload the php files to the root of your site
    • import the sql script
    • configure Connect/require/config.php
    • configure include.js
    • remind me if i forgot something
    • ask good questions gently
Usage :
Players (including admins) have to:
  • follow the link in the console when kicked for the first time
  • go to application (liking the app if they want)
  • click the OK button.
    • maybe yu will have to allow popups .. i recommend google chrome.

  • watch the video on [Facebook] or [YouTube] if you want and you know .. rating liking subbing maybe
  • paste the setinfo fb "xxxxxxxxxxx" ... to console
  • join the game and have fun
to Do :
✔ - release the plugin 1.0
X - add option: immunity
X - add feature: unban
X - add feature: amx_fban "name" instead of menu only
X - add cvars (feel free to suggest)
  • announce players requesting profile
  • announce players connecting
  • announce players verified successfully
your ideas really count here.


Credits :
  • everyone ! especially Emp` for the good menu tutorial
[https://forums.alliedmods.net/showthread.php?t=46364]

and for bugsy for the Sockets example.

note : feel free to modify the connect.jpg to your liking.
needless to say : this fbconnect attaches a fb ID to an IP address .. so every time your ip changes you have to click the ok button again in order to join with your new fresh IP.

example :
facebook app: http://apps.facebook.com/noexitpro/ but the sv is down for now !
Attached Files
File Type: sma Get Plugin or Get Source (fbconnect.sma - 2209 views - 21.2 KB)
File Type: zip sqlscript.zip (300 Bytes, 868 views)
File Type: zip php.zip (58.4 KB, 913 views)
__________________

Last edited by ÜnLoCo; 07-04-2010 at 05:30.
ÜnLoCo is offline