Jump to content

FaceBook System - Like it!


xxSPEEDYxx

Recommended Posts

(f)Facebook System v1.0

(f) Informatii:

Acesta este un vechi proiect de al meu care l-am inceput sa-l fac acum 3-4 luni, dupa aceea m-am oprit din "fabricarea" lui :)). Ieri m-am hotarat sa-l termin, si sa vi-l fac cadou, daca tot SOPA/PIPA o sa inchida facebook-ul macar sa mai existe in SA-MP :)). Este un system simplu bazat pe cele 3 "preferate" ale mele: SQLite, ZCMD and SScanf.

Puteti da likeuri la un interval de 1 ora. Puteti sa va setati: Ocupatia, Tara, Varsta, Statusul( de ex: Dansez ), si multe altele. Totul este in dialoguri. Este doar versiunea beta, deci este probabil sa gasiti si ceva buguri, si daca gasiti chiar va rog sa raportati.

Cam atat, mai mult o sa descoperiti voi, daca o sa-l testati. :))

(f) Comenzi:

/facebook [PlayerID] - Prin comanda asta va uitati la profilul unui player, sau chiar la profilul dumneavoastra.

/cfacebook - Cu comanda asta, va creati propriul profil de facebook.

/dfacebook - Va stergeti profilul.

/flogin - Va logati in contul vostru de facebook, asta daca aveti unul :))

/fhelp - Gasiti informatii despre acest system.

(f) Poze:

Am sa va arat cateva poze ... sunt doar cateva, din toate cele ce sunt in system.

300qlnq.jpg

enajn.jpg

75233703.png

kbslc3.jpg

(f) Credits:

xxSPEEDYxx - Pentru ca am creat systemul :))

[E.m.O]K1DDU - Pentru ca ma ajutat sa testez systemul

Zh3r0( 0Admin ) - Pentru ca sa va puteti da like la 1 ora :))

(f) Download:

[download]Direct Link[/download]

[download]Pastebin[/download]

Fara reclama in semnatura!

Link to comment
Share on other sites

  • 2 weeks later...

frate... la mne nu mere:| ajutama te rog (CONTACT: <removed> )  te rog :cry:

are bug  :(( cand dai /cfacebook si scri parola nu apare nimic dupa

Poate se incurca FS-ul cu dialoguri din GM, incercati sa puneti ca FS-ul FaceBook sa fie trecut primul la linia filterscripts in server.cfg [Ex: filterscripts FaceBook LuxAdmin VIP]

Daca tot nu functioneaza contactati creatorul prin PM nu va postati adresele prin comentari 8-|.

[PS. mi-e imi functiona perfect ^^]

frate... la mne nu mere:| ajutama te rog (CONTACT: <removed> )  te rog :cry:

Nu se posteaza adrese de Y!M, MSN sau Skype in comentari!


F*ck everybody who want and who try to judge me for who I am, b*star*s !

 

 

Link to comment
Share on other sites

trb sa aveti sscanf plugin,si zcmd pentru a nu da erori

de asemenea deobicei primul filterscript din server.cfg de la linia filterscript nu are nici un bug deoarece este incarcat primul si nu creeaza conflicte..bine acum depinde si de fs-ul respectiv... daca nu s-au incurcat dialogurile etc...

bv Speed ;) eu folosesc dini deoarece este mult mai usor de folosit si sigur..se invata foarte rpd...

cei care nu au sscanf uitati aici includele

/*  
 *  Version: MPL 1.1
 *  
 *  The contents of this file are subject to the Mozilla Public License Version 
 *  1.1 (the "License"); you may not use this file except in compliance with 
 *  the License. You may obtain a copy of the License at 
 *  http://www.mozilla.org/MPL/
 *  
 *  Software distributed under the License is distributed on an "AS IS" basis,
 *  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 *  for the specific language governing rights and limitations under the
 *  License.
 *  
 *  The Original Code is the sscanf 2.0 SA:MP plugin.
 *  
 *  The Initial Developer of the Original Code is Alex "Y_Less" Cole.
 *  Portions created by the Initial Developer are Copyright (C) 2010
 *  the Initial Developer. All Rights Reserved.
 *  
 *  Contributor(s):
 *  
 *  Special Thanks to:
 *  
 *  SA:MP Team past, present and future
 */

native sscanf(const data[], const format[], {Float,_}:...);
native unformat(const data[], const format[], {Float,_}:...) = sscanf;
intr-un document de tip inc. si uitati si zmcd
/**********************************
 *                                *
 *   @Author:      ZeeX           *
 *   @Version:     0.3.1          *
 *   @Released:    31/10/2009     *
 *                                *
 **********************************/

#if defined _zcmd_included
	#endinput
#endif	
#define _zcmd_included

#define MAX_FUNC_NAME (32)

#define COMMAND:%1(%2)          \
			forward cmd_%1(%2); \
			public cmd_%1(%2)		

#define CMD:%1(%2) \
			COMMAND:%1(%2)

#define command(%1,%2,%3) \
			COMMAND:%1(%2, %3)      
      
#define cmd(%1,%2,%3) \
			COMMAND:%1(%2, %3)

#if !defined isnull
	#define isnull(%1) \
				((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif


forward OnPlayerCommandReceived(playerid, cmdtext[]); 
forward OnPlayerCommandPerformed(playerid, cmdtext[], success); 


static
	bool:zcmd_g_HasOPCS = false,
	bool:zcmd_g_HasOPCE = false;

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	zcmd_g_HasOPCS = funcidx("OnPlayerCommandReceived") != -1;
	zcmd_g_HasOPCE = funcidx("OnPlayerCommandPerformed") != -1;
    return CallLocalFunction("zcmd_OnFilterScriptInit", "");
}

#if defined _ALS_OnFilterScriptInit
    #undef OnFilterScriptInit
#else
    #define _ALS_OnFilterScriptInit
#endif
#define OnFilterScriptInit zcmd_OnFilterScriptInit
forward zcmd_OnFilterScriptInit();

#else /*not a filterscript*/

public OnGameModeInit()
{
	zcmd_g_HasOPCS = funcidx("OnPlayerCommandReceived") != -1;
	zcmd_g_HasOPCE = funcidx("OnPlayerCommandPerformed") != -1;
	if (funcidx("zcmd_OnGameModeInit") != -1)
	{
		return CallLocalFunction("zcmd_OnGameModeInit", "");
	}	
	return 1;
}

#if defined _ALS_OnGameModeInit
    #undef OnGameModeInit
#else
    #define _ALS_OnGameModeInit
#endif
#define OnGameModeInit zcmd_OnGameModeInit
forward zcmd_OnGameModeInit();

#endif /*if defined FILTERSCRIPT*/

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (zcmd_g_HasOPCS && !CallLocalFunction("OnPlayerCommandReceived", "is", playerid, cmdtext))
    {
        return 1;
    }
    new
        pos,
        funcname[MAX_FUNC_NAME];
    while (cmdtext[++pos] > ' ') 
	{
		funcname[pos-1] = tolower(cmdtext[pos]); 
	}
	format(funcname, sizeof(funcname), "cmd_%s", funcname);
    while (cmdtext[pos] == ' ') pos++;
	if (!cmdtext[pos])
	{
		if (zcmd_g_HasOPCE)
		{
			return CallLocalFunction("OnPlayerCommandPerformed", "isi", playerid, cmdtext, CallLocalFunction(funcname, "is", playerid, "\1"));
		}
		return CallLocalFunction(funcname, "is", playerid, "\1");	
	}
	if (zcmd_g_HasOPCE)
	{
		return CallLocalFunction("OnPlayerCommandPerformed", "isi", playerid, cmdtext, CallLocalFunction(funcname, "is", playerid, cmdtext[pos]));
	}
	return CallLocalFunction(funcname, "is", playerid, cmdtext[pos]);
}

#if defined _ALS_OnPlayerCommandText
    #undef OnPlayerCommandText
#else
    #define _ALS_OnPlayerCommandText
#endif
#define OnPlayerCommandText zcmd_OnPlayerCommandText
forward zcmd_OnPlayerCommandText(playerid, cmdtext[]);

oricum bafta

Eu sunt nimeni. Dar prefer sa fiu un nimeni inconjurat de prieteni adevarati, decat un om faimos inconjurat de falsi.

Nu sunt un scripter perfect, nu sunt nici macar pe aproape, insa in in ciuda acestui fapt incerc sa invat sa le fac pe toate.

Link to comment
Share on other sites

  • 8 months later...

Join the conversation

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

Guest
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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.