07.03.2013, 01:39
uhm well yeah when I try to start my server I get that "Unknown" set as GM text in the Sa-mp.. And I cannot connect.
Here you go to see the log
Script
Server.cfg
Here you go to see the log
Код:
---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3x, ©2005-2013 SA-MP Team [04:00:11] [04:00:11] Server Plugins [04:00:11] -------------- [04:00:11] Loading plugin: sscanf [04:00:11] [04:00:11] =============================== [04:00:11] sscanf plugin loaded. [04:00:11] Version: 2.8.1 [04:00:11] © 2012 Alex "******" Cole [04:00:11] =============================== [04:00:11] Loaded. [04:00:11] Loaded 1 plugins. [04:00:11] [04:00:11] Filterscripts [04:00:11] --------------- [04:00:11] Loading filterscript 'attachments.amx'... [04:00:11] Loading filterscript 'skinchanger.amx'... [04:00:11] --Admin Player Skin Changer Loaded [04:00:11] Loading filterscript 'vspawner.amx'... [04:00:11] --Admin Vehicle Spawner Loaded [04:00:11] Loaded 3 filterscripts. [04:00:11] [04:00:11] [04:00:11] [04:00:11] ======================================= [04:00:11] | | [04:00:11] | YSI version 1.06.0002 | [04:00:11] | By Alex "******" Cole | [04:00:11] | | [04:00:11] ======================================= [04:00:11] [04:00:11] [04:00:11] [04:00:11] Number of vehicle models: 0
Код:
//------------------------------------------------------------------[ Includes ] #include <a_samp> #include <zcmd> #include <sscanf2> #include <YSI\y_ini> //-------------------------------------------------------------[ Server Limits ] #define MaxVehicles MAX_VEHICLES #define MaxObjects MAX_OBJECTS //--------------------------------------------------------------------[ Colors ] #define Black "{000000}" #define White "{FFFFFF}" #define Grey "{BFBFBF}" #define Red "{FF0000}" #define Orange "{FFA500}" #define Yellow "{FFFF00}" #define Green "{008000}" #define Blue "{0000FF}" #define Purple "{800080}" #define Teal "{008080}" //--------------------------------------------------------------[ Milliseconds ] #define Year 31536000000 // Day x 365 #define Month 2592000000 // Day x 30 #define Week 604800000 // Day x 7 #define Day 86400000 // Hour x 24 #define Hour 3600000 // Minute x 60 #define Minute 60000 // Second x 60 #define Second 1000 // Millisecond x 1000 //-----------------------------------------------------------------[ Dialog Defines ] #define DIALOG_REGISTER 1 #define DIALOG_LOGIN 2 #define DIALOG_SUCCESS_1 3 #define DIALOG_SUCCESS_2 4 //-----------------------------------------------------------------[ Custom Defines ] #define PATH "/Users/%s.ini" //-----------------------------------------------------------------[ Enums ] enum pInfo { pPass, pCash, pAdmin, pKills, pDeaths } new PlayerInfo[MAX_PLAYERS][pInfo]; main() { } //-----------------------------------------------------------------[ Stocks ] stock UserPath(playerid) { new string[128],playername[MAX_PLAYER_NAME]; GetPlayerName(playerid,playername,sizeof(playername)); format(string,sizeof(string),PATH,playername); return string; } stock udb_hash(buf[]) { new length=strlen(buf); new s1 = 1; new s2 = 0; new n; for (n=0; n<length; n++) { s1 = (s1 + buf[n]) % 65521; s2 = (s2 + s1) % 65521; } return (s2 << 16) + s1; } //-----------------------------------------------------------------[ Forwards ] 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]); return 1; } public OnGameModeInit() { return true; } public OnGameModeExit() { return true; } public OnPlayerConnect(playerid) { new name[MAX_PLAYER_NAME], pos = strfind(name, "_"); GetPlayerName(playerid, name, MAX_PLAYER_NAME); if(pos == -1 || !(name[0] >= 'A' && name[0] <= 'Z' && pos+1 < strlen(name) && name[pos+1] >= 'A' && name[pos+1] <= 'Z')) { SendClientMessage(playerid, -1, "Use RP nick! Example: Carl_Johnson, Stabker_Steepson"); Kick(playerid); return 1; } if(fexist(UserPath(playerid))) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Login", "Type your password below to login.","Login","Quit"); } else { ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Registering...", "Type your password below to register a new account.","Register","Quit"); } return true; } 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_Close(File); return true; } public OnPlayerRequestClass(playerid, classid) { return true; } public OnPlayerRequestSpawn(playerid) { return true; } public OnPlayerSpawn(playerid) { return true; } public OnPlayerDeath(playerid, killerid, reason) { PlayerInfo[killerid][pKills]++; PlayerInfo[playerid][pDeaths]++; return true; } public OnVehicleSpawn(vehicleid) { return true; } public OnVehicleDeath(vehicleid, killerid) { return true; } public OnPlayerText(playerid, text[]) { return true; } public OnPlayerCommandText(playerid, cmdtext[]) { OnPlayerText(playerid, cmdtext); return true; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return true; } public OnPlayerExitVehicle(playerid, vehicleid) { return true; } public OnPlayerStateChange(playerid, newstate, oldstate) { return true; } public OnPlayerEnterCheckpoint(playerid) { return true; } public OnPlayerLeaveCheckpoint(playerid) { return true; } public OnPlayerEnterRaceCheckpoint(playerid) { return true; } public OnPlayerLeaveRaceCheckpoint(playerid) { return true; } public OnRconCommand(cmd[]) { return true; } public OnObjectMoved(objectid) { return true; } public OnPlayerObjectMoved(playerid, objectid) { return true; } public OnPlayerPickUpPickup(playerid, pickupid) { return true; } public OnVehicleMod(playerid, vehicleid, componentid) { return true; } public OnEnterExitModShop(playerid, enterexit, interiorid) { return true; } public OnVehiclePaintjob(playerid, vehicleid, paintjobid) { return true; } public OnVehicleRespray(playerid, vehicleid, color1, color2) { return true; } public OnVehicleDamageStatusUpdate(vehicleid, playerid) { return true; } public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat) { return true; } public OnPlayerSelectedMenuRow(playerid, row) { return true; } public OnPlayerExitedMenu(playerid) { return true; } public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) { return true; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { return true; } public OnRconLoginAttempt(ip[], password[], success ) { return true; } public OnPlayerUpdate(playerid) { return true; } public OnPlayerStreamIn(playerid, forplayerid) { return true; } public OnPlayerStreamOut(playerid, forplayerid) { return true; } public OnVehicleStreamIn(vehicleid, forplayerid) { return true; } public OnVehicleStreamOut(vehicleid, forplayerid) { return true; } 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, "Registering...", "You have entered an invalid password.\nType your password below to register a new account.","Register","Quit"); new INI:File = INI_Open(UserPath(playerid)); INI_SetTag(File,"data"); INI_WriteInt(File,"Password",udb_hash(inputtext)); INI_WriteInt(File,"Cash",0); INI_WriteInt(File,"Admin",0); INI_WriteInt(File,"Kills",0); INI_WriteInt(File,"Deaths",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,"Success!","Great! Your Y_INI system works perfectly. Relog to save your stats!","Ok",""); } } case DIALOG_LOGIN: { if ( !response ) return Kick ( playerid ); if( response ) { if(udb_hash(inputtext) == PlayerInfo[playerid][pPass]) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]); ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,"Success!","You have successfully logged in!","Ok",""); } else { ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login","You have entered an incorrect password.\nType your password below to login.","Login","Quit"); } return 1; } } } return 1; } public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid) { return true; } public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid) { return true; } public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) { return true; } public OnPlayerClickTextDraw(playerid, Text:clickedid) { return true; } public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) { return true; } public OnPlayerClickPlayer(playerid, clickedplayerid, source) { return true; } public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ ) { return true; } public OnPlayerEditAttachedObject(playerid, response, index, modelid, boneid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ ) { return true; } public OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ) { return true; }
Код:
echo Executing Server Config... lanmode 0 rcon_password lookatme maxplayers 50 port 7777 hostname SA-MP 0.3 Server gamemode0 RPserver 1 filterscripts attachments skinchanger vspawner announce 0 query 1 chatlogging 1 weburl www.sa-mp.com onfoot_rate 40 incar_rate 40 weapon_rate 40 stream_distance 300.0 stream_rate 1000 maxnpc 0 plugins sscanf logtimeformat [%H:%M:%S]