Jump to content

Sollace

Membru
  • Posts

    19
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Sollace's Achievements

Explorer

Explorer (4/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

-1

Reputation

  1. 10/10 Dar mai ai de lucrat la el..
  2. Nu am inteles nimic:|
  3. Am rezolvat,puteti da T/C
  4. Incearca [pawn]if(strcmp(cmd, "/makemoneybag", true) == 0 || strcmp(cmd, "/moneybag", true) == 0) { if(IsPlayerConnected(playerid)) { if(playerVariables[playerid][pAdminLevel] < 6) { return SendClientMessage(playerid, GREY, " You are not authorized to use this command."); } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, -1, "/makemoneybag [amount]"); new amount = strval(tmp); if(amount < 1) return SendClientMessage(playerid, WHITE, "cannot go below 1."); new Float:X,Float:Y,Float:Z; new location[MAX_ZONE_NAME]; GetPlayerPos(playerid,X,Y,Z); CreateMoney(X, Y, Z, amount); if(!IsPlayerInAnyVehicle(playerid)) { SetPlayerPosEx(playerid, X, Y-2, Z); } SendClientMessage(playerid, GREY1,"* Money bag created."); GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayer2DZone(playerid, location, MAX_ZONE_NAME); format(string, sizeof(string), "WARNING: %s has created a money bag worth $%d in %s (%0.2f, %0.2f, %0.2f).", sendername, amount, location, X, Y, Z); SendClientMessage(playerid, RED, string); format(string, sizeof(string), "{FF6347}%s has hidden a money bag in %s worth $%d!", sendername, location, amount); SendClientMessageToAll(LIGHTRED, string); return 1; } }[/pawn]
  5. Nick: Sollace Problema: Am creat un gamemode,i-am adaugat cateva sisteme,iar acum trebuie sa fac sistemul de admin...Am adaugat niste defin-uri,iar cand dau compile imi da Pawno Compile Library s-a oprit!Stiu ca asta da doar atunci cand sunt 20+ erori. Erori / warnings: Lini/script:[pawn]//=========================================Includ-uri/Defin-uri========================================// #define MODE_NAME "hG Base" #include <YSI\y_ini> #include <a_samp> #include <zcmd> //========================================Defin-uri Importante=============================================// #define DIALOG_REGISTER 1 #define DIALOG_LOGIN 2 #define DIALOG_SUCCESS_1 3 #define DIALOG_SUCCESS_2 4 #define MODE_NAME "hG Base" #define PATH "Users/%s.ini" //=====================================Defin-uri Culori====================================================// #define COL_WHITE "{FFFFFF}" #define COL_RED "{F81414}" #define COL_GREEN "{00FF22}" #define COL_LIGHTBLUE "{00CED1}" native WP_Hash(buffer[],len,const str[]); //====================================Enum-uri===============================================================// enum pInfo { pPass, pCash, pAdmin, pKills, pDeaths, pHelper, pTutorial, pGun1, pGun2, pGun3 } new PlayerInfo[MAX_PLAYERS][pInfo]; new pAdmin[MAX_PLAYERS]; //====================================Forward-uri si Public-uri=================================================================// forward LoadUser_data(playerid,name[],value[]); public LoadUser_data(playerid,name[],value[]) { INI_Int("Password",PlayerInfo[playerid][pPass]); INI_Int("Cash",PlayerInfo[playerid][pCash]); INI_Int("Admin",PlayerInfo[playerid][pAdmin]); INI_Int("Kills",PlayerInfo[playerid][pKills]); INI_Int("Deaths",PlayerInfo[playerid][pDeaths]); INI_Int("Helper",PlayerInfo[playerid][pHelper]); INI_Int("Helper",PlayerInfo[playerid][pHelper]); INI_Int("Tutorial",PlayerInfo[playerid][pTutorial]); INI_Int("Gun1",PlayerInfo[playerid][pGun1]); INI_Int("Gun2",PlayerInfo[playerid][pGun2]); INI_Int("Gun3",PlayerInfo[playerid][pGun3]); return 1; } public OnPlayerConnect(playerid) { if(fexist(UserPath(playerid))) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Scrie-ti parola aici pentru a te LOGA!","Login","Quit"); } else { ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Register",""COL_WHITE"Scrie-ti parola ta aici pentru a de InRegistra!","Register","Quit"); } return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { switch( dialogid ) { case DIALOG_REGISTER: { if (!response) return Kick(playerid); if(response) { if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_WHITE"Registering...",""COL_RED"You have entered an invalid password.\n"COL_WHITE"Type your password below to register a new account.","Register","Quit"); new hPassword[ 129 ] ; WP_Hash( hPassword, sizeof( hPassword ), inputtext ) ; new INI:File = INI_Open(UserPath(playerid)); INI_SetTag(File,"data"); INI_WriteString(File,"Password",hPassword); INI_WriteInt(File,"Cash",0); INI_WriteInt(File,"Admin",0); INI_WriteInt(File,"Kills",0); INI_WriteInt(File,"Deaths",0); INI_WriteInt(File,"Helper",0); INI_WriteInt(File,"Tutorial",0); INI_WriteInt(File,"Gun1",0); INI_WriteInt(File,"Gun2",0); INI_WriteInt(File,"Gun3",0); INI_Close(File); SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0); SpawnPlayer(playerid); ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_GREEN"Te-ai inregistrat cu SUCCES pe serverul hGaming RPG!","Ok",""); } } case DIALOG_LOGIN: { if ( !response ) return Kick ( playerid ); if( response ) { new hPassword[ 129 ] ; WP_Hash( hPassword, sizeof( hPassword ), inputtext ) ; if(!strcmp(hPassword, PlayerInfo[ playerid ][ pPass ], false ) ) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]); ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_GREEN"Te-ai logat cu SUCCES pe serverul hGaming RPG! ","Ok",""); } else { ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"Ai introdus o parola gresita!\n"COL_WHITE"Scrie parola ta in casuta de mai jos pentru a te LOGA!","Login","Quit"); } return 1; } } } return 1; } public OnPlayerDisconnect(playerid, reason) { new INI:File = INI_Open(UserPath(playerid)); INI_SetTag(File,"data"); INI_WriteInt(File,"Cash",GetPlayerMoney(playerid)); INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]); INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]); INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]); INI_WriteInt(File,"Helper",PlayerInfo[playerid][pHelper]); INI_WriteInt(File,"Tutorial",PlayerInfo[playerid][pTutorial]); INI_WriteInt(File,"Gun1",PlayerInfo[playerid][pGun1]); INI_WriteInt(File,"Gun2",PlayerInfo[playerid][pGun2]); INI_WriteInt(File,"Gun3",PlayerInfo[playerid][pGun3]); INI_Close(File); return 1; } public OnGameModeInit() { SetGameModeText( "hGaming Base" ) ; } //====================================Stock-uri=========================================================================================// stock UserPath(playerid) { new string[128],playername[MAX_PLAYER_NAME]; GetPlayerName(playerid,playername,sizeof(playername)); format(string,sizeof(string),PATH,playername); return string; } //===================================Comenzi====================================================================================================// CMD:makeadmin(playerid,params[]) { if(IsPlayerAdmin(playerid)) return { if(sscanf(params,"ui",ID,admin)) return SendClientMessage(playerid,COLOR_RED,"Foloseste /makeadmin [iD] [level]."); else if(!IsPlayerConnected(ID)) return SendClientMessage(playerid,COLOR_RED,"Playerul nu este conectat."); else if(admin > 6) return SendClientMessage(playerid,COLOR_RED,"Levelul maxim este 6."); else { new str[70],aname[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME];new admin; PlayerInfo[playerid][pAdmin] = admin; GetPlayerName(playerid,aname,sizeof(aname)); GetPlayerName(ID,name,sizeof(name)); format(str,sizeof str,"I-ai lui %s admin level %i.",name,admin); SendClientMessage(playerid,COLOR_RED,str); format(str,sizeof str,"%s ti-a dat admin level %i.",aname,admin); SendClientMessage(ID,COLOR_RED,str); } }else return SendClientMessage(playerid,COLOR_RED,"Trebuie sa fi logat cu RCON."); return 1; }[/pawn] Ai incercat sa rezolvi singur ?:Da.....
  6. Cine se ofera sa ma ajute sa ii bag sistem de admini?))))(Am incercat eu sa ii bag dar imi da 20+ erori:]])
  7. Titlul:hGaming Base Descriere: Acesta este un sistem de Register/Login Pentru serverele de RPG/GF! Poze: http://imgur.com/6QT06ja,8roubP8 Link Download: Download aici PS:Sa nu va vad cu post-uri de genul "ai luat de alt undeva" Daca v-am ajutat apasati pe +1 Am adaugat versiunea 2! News:Added Admin SyStem :Added Helper System(Bug-uit)Rezolv in V3 Download V2
  8. Sollace

    Ajutor YSI

    1.Am rezolvat,fara include 2.Am bagat totul pe WhirlPool
  9. Nick:Sollace Problema:Am inceput sa fac un gamemode de la 0 si am primit urmatoarea eroare Erori / warnings:[pawn]E:\samp03\pawno\include\YSI\y_users/ini.inc(1091) : fatal error 111: user error: Whirlpool (or other) hash not found.[/pawn] Lini/script: Ai incercat sa rezolvi singur ?:Da....
  10. Bai,ai uitat cu cine vorbesti,mai tii minte pe SSR cand ai vrut sa ma ajuti la scripting,mi-ai cerut GM Cumparat de la GameR,ti-am dat versiunea de pe net,si ti-am zis sa bagi ceva,ai zis ca nu ai timp,nu stii pic de scripting,Nobule!
  11. Comanda "/Acreatecar" Este Acum la admin 1338!
×
×
  • 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.