serbansubs
-
Posts
33 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Posts posted by serbansubs
-
-
Am in schimb "SetPlayerAttachedObject"
[pawn]SetPlayerAttachedObject(playerid, sloto, objecto, boneo, oox, ooy, ooz, oorx, oory, oorz, size, size, size);
[/pawn]
daca nu ma insel aici este
[pawn]case CLOTHING_WEAPON:
{
if(IsPlayerAttachedObjectSlotUsed(playerid,MAX_PLAYERCLOTHING)) return false;
return SetPlayerAttachedObject(playerid,MAX_PLAYERCLOTHING,objectid,bone,offsetx,offsety,offsetz2,offsetrx,offsetry,offsetrz,sizex,sizey,sizez);
}
case CLOTHING_PHONE:
{
if(IsPlayerAttachedObjectSlotUsed(playerid,(MAX_PLAYERCLOTHING + 1))) return false;
return SetPlayerAttachedObject(playerid,(MAX_PLAYERCLOTHING + 1),objectid,bone,offsetx,offsety,offsetz2,offsetrx,offsetry,offsetrz,sizex,sizey,sizez);
}
case CLOTHING_HIDEWEAPON:
{
if(IsPlayerAttachedObjectSlotUsed(playerid,(MAX_PLAYERCLOTHING + 2))) return false;
return SetPlayerAttachedObject(playerid,(MAX_PLAYERCLOTHING + 2),objectid,bone,offsetx,offsety,offsetz2,offsetrx,offsetry,offsetrz,sizex,sizey,sizez);
}
case CLOTHING_MISC:
{
if(IsPlayerAttachedObjectSlotUsed(playerid,(MAX_PLAYERCLOTHING + 3))) return false;
return SetPlayerAttachedObject(playerid,(MAX_PLAYERCLOTHING + 3),objectid,bone,offsetx,offsety,offsetz2,offsetrx,offsetry,offsetrz,sizex,sizey,sizez);
}
case CLOTHING_HIDEWEAPONTWO:
{
if(IsPlayerAttachedObjectSlotUsed(playerid,(MAX_PLAYERCLOTHING + 4))) return false;
return SetPlayerAttachedObject(playerid,(MAX_PLAYERCLOTHING + 4),objectid,bone,offsetx,offsety,offsetz2,offsetrx,offsetry,offsetrz,sizex,sizey,sizez);
}
}
return false;
}[/pawn]
-
[pawn]echo Executing Server Config...
lanmode 0
rcon_password *******
maxplayers 50
port 7777
hostname test
gamemode0 rp 1
filterscripts
announce 0
query 1
chatlogging 0
weburl www.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
plugins audio.dll crashdetect.dll mysql.dll regex.dll Whirlpool.dll
mapname Palomino Creek[/pawn]
-
N-am decat la job-ul de garbage.
-
N-am nici un filterscript.
-
Nick:serbansubs
Problema: nu e un bug. Cand am arma in mana e ok, dar cand o scrolez inapoi, arma respectiva mi se pune ca objectatachament. Daca-mi puteti spune ce sa scot modifc.
Erori / warnings:-
Lini/script: Nu stiu care linii sa le postez
Ai incercat sa rezolvi singur ?:da
-
[pawn]14:40:26] [debug] Run time error 4: "Array index out of bounds"
[14:40:26] [debug] Accessing element at index 2856 past array upper bound 499
[14:40:26] [debug] AMX backtrace:
[14:40:26] [debug] #0 002681e0 in public cmd_gateopen (playerid=25, params[]=@0x012506a8 "") at ../gamemodes/OnCommand.pwn:10359
[14:40:26] [debug] #1 native CallLocalFunction () [00472ad0] from samp-server.exe
[14:40:26] [debug] #2 0000ef2c in public OnPlayerCommandText (playerid=25, cmdtext[]=@0x01250680 "/gateopen") at C:\Users\Serban-PC\Desktop\things\pawno\include\zcmd.inc:102
[14:40:39] [debug] Run time error 4: "Array index out of bounds"
[14:40:39] [debug] Accessing element at index 2856 past array upper bound 499
[14:40:39] [debug] AMX backtrace:
[14:40:39] [debug] #0 002681e0 in public cmd_gateopen (playerid=25, params[]=@0x012506a8 "") at ../gamemodes/OnCommand.pwn:10359
[14:40:39] [debug] #1 native CallLocalFunction () [00472ad0] from samp-server.exe
[14:40:39] [debug] #2 0000ef2c in public OnPlayerCommandText (playerid=25, cmdtext[]=@0x01250680 "/gateopen") at C:\Users\Serban-PC\Desktop\things\pawno\include\zcmd.inc:102
[14:43:00] Incoming connection: 79.119.##3486[/pawn]
Eroarea noua primita in server log poate poate.
-
Nu ?tiu de ce dar presimt ca solu?ia e una banal?, ceva ce am uitat sa fac, ca sta chiar in fata mea ).
-
Wops, gresala mea.
Da, habar n-am. Sa nu mearg? de la o versiune la alta.. n-am mai p??it :)
-
Same shit
-
Wops, ce gresala de amator, lasa-ma sa incerc si revin cu edit.
-
Problema vine de la clientul 0.3z. Am incercat pe 0.3x si merge.
-
Daca imi aduc bine aminte,chestia asta cu "server close" dupa introducerea parolei e ceva legat de ban.
In onconnect eu am ceva legat de ban si ceva legat de "dns". In scriptfiles am "dns.ini" in care e notat "localhost"
In onconnect am kick aici
[pawn]if(IsPlayerNPC(playerid)) return 1;
new string[128], user[128], day, month, year, hour, minute, second;
new num = GetMaxIPs(playerid);
if(num >= 2 && !IsPlayerNPC(playerid)) return Kick(playerid);
OnConnectInit(playerid);[/pawn]
Aici
[pawn]SendClientMessage(playerid, COLOR_LIGHTRED, "Your name is not acceptable please use the format: Firstname_Lastname.");
KickEx(playerid);
return 1;[/pawn] ASTA IESE DIN DISCUTIE
si mai am AICI
[pawn]if(DOF2_GetInt(user, "TempDay") < 10) format(string, sizeof(string),"You are temporarily banned until %s-0%d-%d.", mtext, DOF2_GetInt(user, "TempDay"), DOF2_GetInt(user, "TempYear"));
else format(string, sizeof(string),"You are temporarily banned until %s-%d-%d.", mtext, DOF2_GetInt(user, "TempDay"), DOF2_GetInt(user, "TempYear"));
SendClientMessage(playerid, COLOR_LIGHTRED, string);
return Kick(playerid);[/pawn]
La ultima m-am gandit ca server-ul ar putea sa ma vada ca si banat. Nu stiu ,poate am spus o prostie. Tin sa precizez ca am curatat banlog si samp.ban
-
Se pare ca chiar nu mi-e dat sa joc sa-mp.
Multumesc frumos pentru ajutor.
-
Nu e de la client,am incercat pe un server care ruleaza acelasi gamemode.
Acolo merge.
-
Deja chiar incepe sa fie foarte enervant. Ok, inteleg,bug,erori chestii,dar chiar asa sa nu-ti zica nici unde-i eroarea?
E posibil sa fie de la clientul meu de sa-mp?
-
Warning rezolvat, problmea persista.
-
Am inlocuit streamer-ul. Warning-ul nu mai e.
E curios pentru ca pe 0.3X mergea perfect.
-
Din pacate vad la fel si eu,dar situatia e aceiasi.
-
Streamer-ul e ultimul,am rezolvat warning-ul.
Da,crashdetect-ul e ultima versiune de asemenea.
-
Am modificat dar problema persista.
-
[pawn]SA-MP Dedicated Server
----------------------
v0.3z, ©2005-2014 SA-MP Team
[05:47:07] filterscripts = "" (string)
[05:47:07]
[05:47:07] Server Plugins
[05:47:07] --------------
[05:47:07] Loading plugin: dns
[05:47:07]
*** DNS Plugin v2.4 by Incognito loaded ***
[05:47:07] Loaded.
[05:47:07] Loading plugin: streamer
[05:47:07]
*** Streamer Plugin v2.6.1 by Incognito loaded ***
[05:47:07] Loaded.
[05:47:07] Loading plugin: sscanf
[05:47:07]
[05:47:07] ===============================
[05:47:07] sscanf plugin loaded.
[05:47:07] Version: 2.8.1
[05:47:07] © 2012 Alex "Y_Less" Cole
[05:47:07] ===============================
[05:47:07] Loaded.
[05:47:07] Loading plugin: crashdetect
[05:47:07] CrashDetect v4.13.1 is OK.
[05:47:07] Loaded.
[05:47:07] Loaded 4 plugins.
[05:47:07]
[05:47:07] Ban list
[05:47:07] --------
[05:47:07] Loaded: samp.ban
[05:47:07]
[05:47:07]
[05:47:07] Filterscripts
[05:47:07] ---------------
[05:47:07] Loaded 0 filterscripts.
[05:47:07] Bots loading, beginning...
[05:47:07] Loading Bot Number 1
[05:47:07] | Explicit Roleplay 9.6 |
[05:47:07] Number of vehicle models: 39
[05:47:09] Loading Bot Number 2
[05:47:11] Loading Bot Number 3
[05:47:11] Incoming connection: 127.0.0.1:54323
[05:47:12] [npc:join] Trainbot has joined the server (0:127.0.0.1)
[05:47:13] Loading Bot Number 4
[05:47:13] Incoming connection: 127.0.0.1:54328
[05:47:14] [npc:join] Boxer has joined the server (1:127.0.0.1)
[05:47:15] Loading Bot Number 5
[05:47:16] Incoming connection: 127.0.0.1:54329
[05:47:16] [npc:join] 247Bot1 has joined the server (2:127.0.0.1)
[05:47:18] Loading Bot Number 6
[05:47:18] Incoming connection: 127.0.0.1:54331
[05:47:18] [npc:join] 247Bot2 has joined the server (3:127.0.0.1)
[05:47:20] Loading Bot Number 7
[05:47:20] Incoming connection: 127.0.0.1:54333
[05:47:20] [npc:join] 247Bot3 has joined the server (4:127.0.0.1)
[05:47:22] Loading Bot Number 8
[05:47:22] Incoming connection: 127.0.0.1:54334
[05:47:22] [npc:join] 247Bot4 has joined the server (5:127.0.0.1)
[05:47:24] Loading Bot Number 9
[05:47:24] Incoming connection: 127.0.0.1:54336
[05:47:24] [npc:join] 247Bot5 has joined the server (6:127.0.0.1)
[05:47:26] Loading Bot Number 10
[05:47:26] Incoming connection: 127.0.0.1:54338
[05:47:26] [npc:join] GunShop1 has joined the server (7:127.0.0.1)
[05:47:28] Loading Bot Number 11
[05:47:28] Incoming connection: 127.0.0.1:54354
[05:47:28] [npc:join] GunShop2 has joined the server (8:127.0.0.1)
[05:47:30] Loading Bot Number 12
[05:47:30] Incoming connection: 127.0.0.1:54355
[05:47:30] [npc:join] BurgerShot1 has joined the server (9:127.0.0.1)
[05:47:32] Loading Bot Number 13
[05:47:32] Incoming connection: 127.0.0.1:54359
[05:47:32] [npc:join] BurgerShot2 has joined the server (10:127.0.0.1)
[05:47:34] Loading Bot Number 14
[05:47:34] Incoming connection: 127.0.0.1:54362
[05:47:35] [npc:join] Clucken1 has joined the server (11:127.0.0.1)
[05:47:36] Loading Bot Number 15
[05:47:36] Incoming connection: 127.0.0.1:54363
[05:47:37] [npc:join] Clucken2 has joined the server (12:127.0.0.1)
[05:47:38] Loading Bot Number 16
[05:47:38] Incoming connection: 127.0.0.1:54364
[05:47:39] [npc:join] Clucken3 has joined the server (13:127.0.0.1)
[05:47:41] Loading Bot Number 16
[05:47:41] Incoming connection: 127.0.0.1:54365
[05:47:41] [npc:join] BusDriver2 has joined the server (14:127.0.0.1)
[05:47:43] Loading Bot Number 17
[05:47:43] Incoming connection: 127.0.0.1:54369
[05:47:43] [npc:join] HosBot1 has joined the server (15:127.0.0.1)
[05:47:45] Loading Bot Number 18
[05:47:45] Incoming connection: 127.0.0.1:54370
[05:47:45] [npc:join] HosBot2 has joined the server (16:127.0.0.1)
[05:47:47] Loading Bot Number 19
[05:47:47] Incoming connection: 127.0.0.1:54371
[05:47:47] [npc:join] stripper1 has joined the server (17:127.0.0.1)
[05:47:49] Loading Bot Number 20
[05:47:49] Incoming connection: 127.0.0.1:54372
[05:47:49] [npc:join] stripper2 has joined the server (18:127.0.0.1)
[05:47:51] Loading Bot Number 21
[05:47:51] Incoming connection: 127.0.0.1:54373
[05:47:51] [npc:join] bankbot has joined the server (19:127.0.0.1)
[05:47:53] Loading Bot
[05:47:53] Incoming connection: 127.0.0.1:54374
[05:47:53] [npc:join] PizzaBot has joined the server (20:127.0.0.1)
[05:47:55] Loading Bot
[05:47:55] Incoming connection: 127.0.0.1:54375
[05:47:55] [npc:join] 247Bot6 has joined the server (21:127.0.0.1)
[05:47:57] Loading Bot
[05:47:57] Incoming connection: 127.0.0.1:54379
[05:47:58] [npc:join] 247Bot7 has joined the server (22:127.0.0.1)
[05:47:59] Loading Bot
[05:47:59] Incoming connection: 127.0.0.1:54381
[05:48:00] [npc:join] 247Bot8 has joined the server (23:127.0.0.1)
[05:48:01] Loading Bot
[05:48:01] Bots loading, ended.
[05:48:01] Incoming connection: 127.0.0.1:54385
[05:48:02] [npc:join] airplanebot has joined the server (24:127.0.0.1)
[05:48:34] Incoming connection: 127.0.0.1:54399
[05:48:35] [join] Tom_Beron has joined the server (25:127.0.0.1)
[05:48:57] [part] Tom_Beron has left the server (25:2)
[/pawn]
[pawn]public OnConnectInit(playerid)
{
RemovePlayerAttachedObject(playerid,0), RemovePlayerAttachedObject(playerid,1);
RemovePlayerAttachedObject(playerid,2), RemovePlayerAttachedObject(playerid,3);
RemovePlayerAttachedObject(playerid,4), RemovePlayerAttachedObject(playerid,5);
RemovePlayerAttachedObject(playerid,6), RemovePlayerAttachedObject(playerid,7);
RemovePlayerAttachedObject(playerid,8), RemovePlayerAttachedObject(playerid,9);
SetPVarInt(playerid, "Cash", 0);
SetPVarInt(playerid, "Bank", 0);
SetPVarInt(playerid, "RentKey", 2005);
SetPVarInt(playerid, "HouseKey", 1000);
SetPVarInt(playerid, "BizzKey", 1000);
SetPVarInt(playerid, "HouseEnter", 1000);
SetPVarInt(playerid, "BizzEnter", 1000);
SetPVarInt(playerid, "IntEnter", 1000);
SetPVarInt(playerid, "CarKey1", SCRIPT_CARS);
SetPVarInt(playerid, "CarKey2", SCRIPT_CARS);
SetPVarInt(playerid, "CarKey3", SCRIPT_CARS);
PlayerInfo[playerid][pSpeedDelay]=0;
PlayerInfo[playerid][pWeapon][0] = 0;
PlayerInfo[playerid][pWeapon][1] = 0;
PlayerInfo[playerid][pWeapon][2] = 0;
PlayerInfo[playerid][pWeapon][3] = 0;
PlayerInfo[playerid][pWeapon][4] = 0;
PlayerInfo[playerid][pWeapon][5] = 0;
PlayerInfo[playerid][pWeapon][6] = 0;
PlayerInfo[playerid][pWeapon][7] = 0;
PlayerInfo[playerid][pWeapon][8] = 0;
PlayerInfo[playerid][pWeapon][9] = 0;
PlayerInfo[playerid][pWeapon][10] = 0;
PlayerInfo[playerid][pWeapon][11] = 0;
PlayerInfo[playerid][pWeapon][12] = 0;
PlayerInfo[playerid][pAmmo][0] = 0;
PlayerInfo[playerid][pAmmo][1] = 0;
PlayerInfo[playerid][pAmmo][2] = 0;
PlayerInfo[playerid][pAmmo][3] = 0;
PlayerInfo[playerid][pAmmo][4] = 0;
PlayerInfo[playerid][pAmmo][5] = 0;
PlayerInfo[playerid][pAmmo][6] = 0;
PlayerInfo[playerid][pAmmo][7] = 0;
PlayerInfo[playerid][pAmmo][8] = 0;
PlayerInfo[playerid][pAmmo][9] = 0;
PlayerInfo[playerid][pAmmo][10] = 0;
PlayerInfo[playerid][pAmmo][11] = 0;
PlayerInfo[playerid][pAmmo][12] = 0;
SetPVarInt(playerid, "HouseEnter", 1000);
SetPVarInt(playerid, "BizzEnter", 1000);
SetPVarInt(playerid, "Checkpoint", CHECKPOINT_NONE);
SetPVarInt(playerid, "Bot", 501);
new randmask = 1000 + random(9999999);
SetPVarInt(playerid, "MaskID", randmask);
SetPVarInt(playerid, "Mobile", 501);
new randphone = 1000 + random(9999999);
SetPVarInt(playerid, "PhoneNum", randphone);
SetPVarInt(playerid, "RefillOffer", 501);
SetPVarInt(playerid, "RepairOffer", 501);
SetPVarInt(playerid, "Drag", 501);
for(new i = 0; i < 300; i++) { PlayerInfo[playerid][pBlockPM] = 0; }
SetPVarInt(playerid, "ShakeOffer", 501);
SetPVarInt(playerid, "DragOffer", 501);
SetPVarInt(playerid, "TrunkOffer", 501);
SetPVarInt(playerid, "LiveOffer", 501);
SetPVarInt(playerid, "InviteOffer", 501);
SetPVarInt(playerid, "VehicleOffer", 501);
SetPVarInt(playerid, "BlindOffer", 501);
SetPVarInt(playerid, "HouseOffer", 501);
strmid(PlayerInfo[playerid][pAdmName], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pAccent], "None", 0, strlen("None"), 255);
for(new i = 0; i < 5; i++)
{
PlayerInfo[playerid][pTicket] = 0;
strmid(TicketReason[playerid], "None", 0, strlen("None"), 255);
}
strmid(PlayerInfo[playerid][pPMMsg], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pTaunt], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pNote1], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pNote2], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pNote3], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pNote4], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pNote5], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pJailReason], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pWarning], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pOOC], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pMetagame], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pRevenge], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pRoleplay], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pPowergame], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pQuest1], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pQuest2], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pQuest3], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pQuest4], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pQuest5], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pWarrant], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pCellname], "None", 0, strlen("None"), 255);
PlayerInfo[playerid][pLiveOffer][0]=0;
PlayerInfo[playerid][pLiveOffer][1]=0;
PlayerInfo[playerid][pJobTime]=0;
ResetPlayerWeaponsEx(playerid);
SetPVarInt(playerid, "CameraPos", 6);
SetPVarInt(playerid, "CameraDelay", 1);
TextDrawHideForPlayer(playerid, FadeDraw[playerid]);
TextDrawHideForPlayer(playerid, HitMark);
TextDrawHideForPlayer(playerid, ScreenBar1);
TextDrawHideForPlayer(playerid, ScreenBar2);
StopAudioStreamForPlayerEx(playerid);
return 1;
}[/pawn]
[pawn]C:\Users\Serban-PC\Desktop\things\pawno\include\streamer.inc(462) : warning 235: public function lacks forward declaration (symbol "OnPlayerWeaponShot")
../gamemodes/OnGameMode.pwn(11591) : warning 204: symbol is assigned a value that is never used: "amount"
../gamemodes/OnCommand.pwn(24145) : warning 204: symbol is assigned a value that is never used: "devtext"
../gamemodes/OnCommand.pwn(24145) : warning 204: symbol is assigned a value that is never used: "sendername"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 22568 bytes
Code size: 4540644 bytes
Data size: 19202652 bytes
Stack/heap size: 262144 bytes; estimated max. usage: unknown, due to recursion
Total requirements:24028008 bytes
4 Warnings.
[/pawn]
-
Te anunt ca l-am respectt
Imi era mai de ajutor sa-mi fi dat un raspuns in loc sa comentezi total off topic ;)
-
Problema: De fiecare data cand doresc sa creez un cont nou,dupa introducerea parolei primesc urmatoarea eroare (video). Tin sa mentionez ca eroarea este de la introducerea 0.3Z
Erori / warnings:"Server Close connection" Server log
[pawn]13:32:45] Incoming connection: 127.0.0.1:49160
[13:32:46] [join] Yest_Tes has joined the server (10:127.0.0.1)
[13:32:46] [debug] Run time error 4: "Array index out of bounds"
[13:32:46] [debug] Accessing element at index 300 past array upper bound 299
[13:32:46] [debug] AMX backtrace:
[13:32:46] [debug] #0 0000de88 in ?? () from PR-RP.amx
[13:32:46] [debug] #1 0000f200 in ?? () from PR-RP.amx
[13:32:46] [debug] #2 0000bcd0 in ?? () from PR-RP.amx
[13:32:46] [debug] #3 0000618c in public Itter_OnPlayerConnect () from PR-RP.amx
[13:32:46] [debug] #4 native CallLocalFunction () [00472ad0] from samp-server.exe
[13:32:46] [debug] #5 00005870 in public OnPlayerConnect () from PR-RP.amx
[/pawn]
Lini/script:
public OnPlayerConnect(playerid) { if(IsPlayerNPC(playerid)) return 1; new string[128], user[128], day, month, year, hour, minute, second; new num = GetMaxIPs(playerid); if(num >= 2 && !IsPlayerNPC(playerid)) return Kick(playerid); OnConnectInit(playerid); //furn system gHeaderTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW; gBackgroundTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW; gCurrentPageTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW; gNextButtonTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW; gPrevButtonTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW; for(new x=0; x < SELECTION_ITEMS; x++) { gSelectionFurns[playerid][x] = PlayerText:INVALID_TEXT_DRAW; } gFurnAt[playerid] = 0; if(!NameIsRP(PlayerName(playerid))) { SendClientMessage(playerid, COLOR_LIGHTRED, "Your name is not acceptable please use the format: Firstname_Lastname."); KickEx(playerid); return 1; } GetPlayerHost(playerid); // Gets the DNS Data SetPlayerColor(playerid,COLOR_GREY); format(string, sizeof(string),"%s (%d) connected to the server.", PlayerName(playerid), playerid); if(GetPVarInt(playerid, "Admin") > 0 || GetPVarInt(playerid, "Helper") > 0 || GetPVarInt(playerid, "RegTeam") > 0) { LoginLog(string); } foreach (Player,i) { if(GetPVarInt(i, "CntNames") == 1) { SendClientMessage(i,COLOR_WHITE,string); } } ResetPlayerWeapons(playerid); CheckIP(playerid); gettime(hour,minute,second), FixHour(hour), hour = shifthour, getdate(year,month,day); format(user, sizeof(user), "users/%s.ini", PlayerName(playerid)); if(DOF2_FileExists(user) && DOF2_GetInt(user, "Banned") == 1) { if(DOF2_GetInt(user, "TempYear") > 0 && DOF2_GetInt(user, "TempMonth") > 0 && DOF2_GetInt(user, "TempDay") > 0) { new proceed = 0; if(year > DOF2_GetInt(user, "TempYear")) // If the year is over your tempban year. { DOF2_SetInt(user, "Banned", 0); DOF2_SetInt(user, "TempYear", 0); DOF2_SetInt(user, "TempMonth", 0); DOF2_SetInt(user, "TempDay", 0); DOF2_WriteFile(); format(string, sizeof(string),"unbanip %s", DOF2_GetString(user, "IP")); SendRconCommand(string); SendRconCommand("reloadbans"); format(string, sizeof(string),"AdmWarn: %s was un-temp banned from Project-Bot.", PlayerName(playerid)); SendAdminMessage(COLOR_YELLOW,string); proceed=1; } if(month > DOF2_GetInt(user, "TempMonth")) // If the month is over your tempban month. { DOF2_SetInt(user, "Banned", 0); DOF2_SetInt(user, "TempYear", 0); DOF2_SetInt(user, "TempMonth", 0); DOF2_SetInt(user, "TempDay", 0); DOF2_WriteFile(); format(string, sizeof(string),"unbanip %s", DOF2_GetString(user, "IP")); SendRconCommand(string); SendRconCommand("reloadbans"); format(string, sizeof(string),"AdmWarn: %s was un-temp banned from Project-Bot.", PlayerName(playerid)); SendAdminMessage(COLOR_YELLOW,string); proceed=1; } if(month >= DOF2_GetInt(user, "TempMonth") && day >= DOF2_GetInt(user, "TempDay")) // If the day is your tempban undue day or above. { DOF2_SetInt(user, "Banned", 0); DOF2_SetInt(user, "TempYear", 0); DOF2_SetInt(user, "TempMonth", 0); DOF2_SetInt(user, "TempDay", 0); DOF2_WriteFile(); format(string, sizeof(string),"unbanip %s", DOF2_GetString(user, "IP")); SendRconCommand(string); SendRconCommand("reloadbans"); format(string, sizeof(string),"AdmWarn: %s was un-temp banned from Project-Bot.", PlayerName(playerid)); SendAdminMessage(COLOR_YELLOW,string); proceed=1; } if(proceed == 0) { new mtext[50]; switch(DOF2_GetInt(user, "TempMonth")) { case 1: mtext = "January"; case 2: mtext = "February"; case 3: mtext = "March"; case 4: mtext = "April"; case 5: mtext = "May"; case 6: mtext = "June"; case 7: mtext = "July"; case 8: mtext = "August"; case 9: mtext = "September"; case 10: mtext = "October"; case 11: mtext = "November"; case 12: mtext = "December"; } if(DOF2_GetInt(user, "TempDay") < 10) format(string, sizeof(string),"You are temporarily banned until %s-0%d-%d.", mtext, DOF2_GetInt(user, "TempDay"), DOF2_GetInt(user, "TempYear")); else format(string, sizeof(string),"You are temporarily banned until %s-%d-%d.", mtext, DOF2_GetInt(user, "TempDay"), DOF2_GetInt(user, "TempYear")); SendClientMessage(playerid, COLOR_LIGHTRED, string); return Kick(playerid); } } } return 1; }
Ai incercat sa rezolvi singur ?: De obicei imi rezolv singur probleme,am apelat la sa-mp.ro cand nu mai am alte ideei.
-
Daca ai zilele astea cateva minute libere lasa-mi te rog o adresa de skype/yahoo.
Rezolvarea o voi posta dupa in acest thread,daca alti playeri o sa intampine aceiasi problema.
remove object
in Arhivă probleme
Posted
Exact cum ziceam, am rezolvat ) am pus ca si comment urmatoarele linii :
[pawn]//case CLOTHING_WEAPON:
//{
//if(IsPlayerAttachedObjectSlotUsed(playerid,MAX_PLAYERCLOTHING)) return false;
//return SetPlayerAttachedObject(playerid,MAX_PLAYERCLOTHING,objectid,bone,offsetx,offsety,offsetz2,offsetrx,offsetry,offsetrz,sizex,sizey,sizez);
//}[/pawn]
[pawn]//case CLOTHING_HIDEWEAPON:
//{
//if(IsPlayerAttachedObjectSlotUsed(playerid,(MAX_PLAYERCLOTHING + 2))) return false;
//return SetPlayerAttachedObject(playerid,(MAX_PLAYERCLOTHING + 2),objectid,bone,offsetx,offsety,offsetz2,offsetrx,offsetry,offsetrz,sizex,sizey,sizez);
//}[/pawn]
[pawn]//case CLOTHING_HIDEWEAPONTWO:
//{
//if(IsPlayerAttachedObjectSlotUsed(playerid,(MAX_PLAYERCLOTHING + 4))) return false;
//return SetPlayerAttachedObject(playerid,(MAX_PLAYERCLOTHING + 4),objectid,bone,offsetx,offsety,offsetz2,offsetrx,offsetry,offsetrz,sizex,sizey,sizez);
// }[/pawn]