Jump to content

Andr3

Membru
  • Posts

    514
  • Joined

  • Last visited

    Never

Everything posted by Andr3

  1. Andr3

    [MAP]NRG`s

    jupanu , asta este parerea noastra ...poate ca nu ne pricepem asa de mult ca tn .. :tongue:
  2. Cum ti-a luat 5-10 minute , ca eu in 15-20 de secunde maxim terminam .... 0.5/5 . :huh:
  3. E bun pentru inceput , dar nu ma impresioneaza cu nimic .
  4. vad ca-ti place foarte mult CS 1.6 a:p
  5. Andr3

    .

    frumos :blank:
  6. Andr3

    [MAP] O Ceapa

    Cat de tare e ! Doar ca seamana cu ceva mai mare ! Asta e visul femeilor =)))
  7. Cat de tare e versiunea a 2-a si am inteles ca e si cea finala ! :X ZIci ca suntem la "Vrei Sa devi miliardar" ..ar fi tare daca ar exista astfel de script 10+/10
  8. E ceva obisnuit , frumos ,dar imi place cum ai gandit ! Ai facut box-uri frumoase ! 5/5
  9. E foarte marfa , beton si alte materiale text draw-ul
  10. Imi place , pentru inceput e bine !? La inceput eu am facut o panarama de mapa , in comparatie cu asta nu se comapara ! 4/5 :)
  11. are dreptate ! nu avem de unde sa stim daca ai vazut tu asta , poate era asemanatoare :|
  12. Daca este facut de tine , ai facut o buna treaba , daca nu "lasa-te"
  13. Andr3

    [FS]Plaja

    Edytzu , pune poze sa te credem ca e facut de tine ! Nu te acuz din prima pana nu vad ! Dar ai facut spam ! Acum ai 12 posturi doar din topicul asta + "reply" la el !
  14. mersi , mersi ! Deja lucrez la versiunea a 2-a ! Il trec in zcmd si YDB (include creat de Roach, cu niste chestii din y_ini )
  15. Acccount System V 1.1 FINAL Informatii :Acest filterscript a fost creat cu ajutorul lui Y_Less care a facut y_ini,Roach pt. YDB si a lui Zex pt. Zcmd ! Cu acest script , banii si scorul jucatorilor se vor salva ! Last Release: Account System v.1.0 Curent Release: Account System v. 1.1(switch to Zcmd & Y_INI ) [glow=red,2,300]Data crearii[/glow] : 25.04.2011 - 27.04.2011 /*------------------------------- Y_Less - y_ini --------------------------------- JoKeR - Script --------------------------------- www.sa-mp.ro - Tutorials www.sa-mp.com- Tutorials --------------------------------*/ #include <a_samp> #include < zcmd > #include < YDB > #include < YSI\y_ini > #define DIRECTORY "Accounts/%s.ini" //Colors// #define COLOR_SYSTEM (0xEFEFF7AA) #define green (0x33FF33AA) #define blue (0x00FFFFAA) forward Pass( playerid, name[ ], value[ ] ); forward LoadpUser( playerid, name[ ], value[ ] ); public OnFilterScriptInit( ) { print( "\n--------------------------------------" ); print( "Account System " ); print( "--------------------------------------\n" ); return ( 1 ); } public OnPlayerRequestSpawn( playerid ) { if( INI_Exist ( pName( playerid ) ) ) { if( GetPVarInt( playerid, "pLog" ) == 0 ) { SendClientMessage( playerid, green, "You have already registered, use /login to log into your account. "); return ( 0 ); } } return ( 1 ); } public OnPlayerDisconnect( playerid ) { if( GetPVarInt( playerid, "pLog" ) == 1 ) { new file[ 256 ]; format( file, sizeof file, DIRECTORY, pName( playerid ) ); new INI:PlayerAcc = INI_Open( file ); INI_WriteInt( PlayerAcc, "Money", GetPlayerMoney( playerid ) ); INI_WriteInt( PlayerAcc, "Score", GetPlayerScore( playerid ) ); INI_Close( PlayerAcc ); SetPVarInt( playerid, "pLog", 0 ); } return ( 1 ); } public OnPlayerConnect( playerid ) { if( GetPVarInt( playerid, "pLog" ) == 0 ) { if( INI_Exist ( pName( playerid ) ) ) { SystemMsg( playerid, "You have already registered, please /login [password] to login." ); } else SystemMsg( playerid, "You do not have an account, use /register [password] to register then /login [password] to login." ); } return ( 1 ); } stock SystemMsg( playerid, msg[ ] ) { if( ( IsPlayerConnected ( playerid ) ) && ( strlen ( msg ) > 0 ) ) SendClientMessage( playerid, COLOR_SYSTEM, msg ); return ( 1 ); } stock pName( playerid ) { new name[ MAX_PLAYER_NAME ]; GetPlayerName( playerid, name, sizeof name ); return name; } CMD:register( playerid, params[ ] ) { new file[ 256 ]; format( file, sizeof file, DIRECTORY, pName( playerid ) ); new INI:PlayerAcc = INI_Open( file ); if( GetPVarInt( playerid, "pLog" ) == 1 ) return SystemMsg( playerid, "You have already had an account." ); if( INI_Exist( pName( playerid ) ) ) return SystemMsg( playerid, "You have already created an account, /login [password] to login." ); if( strlen ( params ) == 0 ) return SystemMsg( playerid, "Usage: /register [password]" ); SystemMsg( playerid, "You have successfully created your account, now use /login [password] to login." ); INI_WriteString( PlayerAcc, "Name", pName( playerid ) ); INI_WriteString( PlayerAcc, "Password", params ); INI_WriteInt( PlayerAcc, "Money", 0 ); INI_WriteInt( PlayerAcc, "Score", 0 ); INI_Close( PlayerAcc ); return ( 1 ); } CMD:login( playerid, params[ ] ) { new file[ 256 ], Passw[ 500 ]; format( file, sizeof file, DIRECTORY, pName( playerid ) ); INI_ParseFile(file, "Pass", false, true, playerid); GetPVarString( playerid, "pPass", Passw, sizeof Passw ); if( GetPVarInt( playerid, "pLog" ) == 1 ) return SystemMsg( playerid, "You have already logined." ); if( !INI_Exist ( pName( playerid ) ) ) return SystemMsg( playerid, "You do not have an account, please /register [password]" ); if( isnull ( params ) ) return SystemMsg( playerid, "Usage: /login [password]" ); if( strcmp ( Passw, params, false ) == 0 ) { SetPlayerScore( playerid, GetPVarInt( playerid, "pScore" ) ); ResetPlayerMoney( playerid ); GivePlayerMoney( playerid, GetPVarInt( playerid, "pCash" ) ); SetPVarInt( playerid, "pLog", 1 ); SystemMsg( playerid, "You have successfully logined." ); }else SystemMsg( playerid, "Wrong password or nickname!" ); return ( 1 ); } public Pass( playerid, name[ ], value[ ] ) { if( !strcmp ( name, "Password" ) ) { SetPVarString( playerid, "pPass", value ); } } public LoadpUser( playerid, name[ ], value[ ] ) { if( !strcmp ( name, "Money" ) ) { SetPVarInt( playerid, "pCash", strval( value ) ); } if( !strcmp ( name, "Score" ) ) { SetPVarInt( playerid, "pScore", strval( value ) ); } } /*----------------------------------------- Thanks for use my Register & Login Script ------------------------------------------*/ Amx.+Pwn./ScriptFiles/Include : Download Daca aveti probleme cu bug-urile lasa-ti un reply ! Pentru a se salva banii si scorul creati un folder in scriptfiles (pentru cei care nu stiu )
×
×
  • 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.