11.12.2010, 22:50
Hello everyone =D
Since I installed version 0.3C my server crashes. When speaking with the local channel, the rcon crash.
In fact after (about 10 minutes), when I say locally "with the T" rcon plant directly to the nearest second.
Help me please.
Thank you,
Here is my OnPlayerText:
Since I installed version 0.3C my server crashes. When speaking with the local channel, the rcon crash.
In fact after (about 10 minutes), when I say locally "with the T" rcon plant directly to the nearest second.
Help me please.
Thank you,
Here is my OnPlayerText:
Код:
if (PlayerInfo[playerid][pChatMode] == 0) // By Ibo =D { if(gPlayerLogged[playerid] == 0) { return 0; } if(PlayerInfo[playerid][pMuted] == 1) { SendClientMessage(playerid, TEAM_CYAN_COLOR, " Vous ne pouvez pas parlй. Vous кtes silencй"); return 0; } GetPlayerName(playerid, sendername, sizeof(sendername)); new playercar = GetPlayerVehicleID(playerid); new y1,m1,d1; new h1,mi1,s1; getdate(y1,m1,d1); gettime(h1,mi1,s1); if(!IsPlayerInAnyVehicle(playerid)) { if(PlayerInfo[playerid][pAdminDuty] == 1) { format(string, sizeof(string), "Admin dit: %s", text); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); OnePlayAnim(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0); format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Local Admin): %s",d1,m1,y1,h1,mi1,s1, sendername, text); ChatLog(string); } if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 1) { format(string, sizeof(string), "Inconnu dit: %s", text); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); OnePlayAnim(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0); format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Local Masked): %s",d1,m1,y1,h1,mi1,s1, sendername, text); ApplyAnimation(playerid,"ped","IDLE_chat",4.1,0,1,1,1,1); ChatLog(string); } if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 0) { format(string, sizeof(string), "%s dit: %s", sendername, text); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); OnePlayAnim(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0); format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Local): %s",d1,m1,y1,h1,mi1,s1, sendername, text); ApplyAnimation(playerid,"ped","IDLE_chat",4.1,0,1,1,1,1); ChatLog(string); } } else { if(IsModelAPlane(playercar) || IsModelABike(playercar) || IsModelAHeli(playercar) || IsModelABoat(playercar) || IsModelASpecial(playercar)) { if(PlayerInfo[playerid][pAdminDuty] == 1) { format(string, sizeof(string), "Admin dit: %s", text); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); OnePlayAnim(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0); format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Admin Local): %s",d1,m1,y1,h1,mi1,s1, sendername, text); ChatLog(string); } if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 1) { format(string, sizeof(string), "Inconnu dit: %s", text); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Masked Local): %s",d1,m1,y1,h1,mi1,s1, sendername, text); OnePlayAnim(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0); ChatLog(string); } if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 0) { format(string, sizeof(string), "%s dit: %s", sendername, text); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Local): %s",d1,m1,y1,h1,mi1,s1, sendername, text); OnePlayAnim(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0); ChatLog(string); } } else { if(VehicleWindows[GetPlayerVehicleID(playerid)] == 0) { if(PlayerInfo[playerid][pAdminDuty] == 1) { format(string, sizeof(string), "(Fкnetre fermйe) Admin dit: %s", text); ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Admin Windows Shut): %s",d1,m1,y1,h1,mi1,s1, sendername, text); ChatLog(string); } if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 1) { format(string, sizeof(string), "(Fкnetre fermйe) Inconnu dit: %s", text); ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Masked Windows Shut): %s",d1,m1,y1,h1,mi1,s1, sendername, text); ChatLog(string); } if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 0) { format(string, sizeof(string), "(Fкnetre fermйe) %s dit: %s", sendername, text); ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Windows Shut): %s",d1,m1,y1,h1,mi1,s1, sendername, text); ChatLog(string); } } else { if(PlayerInfo[playerid][pAdminDuty] == 1) { format(string, sizeof(string), "(Fкnetre ouverte) Admin dit: %s", text); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Admin Windows Open): %s",d1,m1,y1,h1,mi1,s1, sendername, text); ChatLog(string); } if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 1) { format(string, sizeof(string), "(Fкnetre ouverte) Inconnu dit: %s", text); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Masked Windows Open): %s",d1,m1,y1,h1,mi1,s1, sendername, text); ChatLog(string); } if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 0) { format(string, sizeof(string), "(Fкnetre ouverte) %s dit: %s", sendername, text); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Windows Open): %s",d1,m1,y1,h1,mi1,s1, sendername, text); ChatLog(string); } } } } return 1; } else if (PlayerInfo[playerid][pChatMode] == 1) // By Ibo =D { if(gPlayerLogged[playerid] == 0) { return 0; } if(PlayerInfo[playerid][pMuted] == 1) { SendClientMessage(playerid, TEAM_CYAN_COLOR, " Vous ne pouvez pas parlй. Vous кtes silencй"); return 0; } GetPlayerName(playerid, sendername, sizeof(sendername)); new y1,m1,d1; new h1,mi1,s1; getdate(y1,m1,d1); gettime(h1,mi1,s1); if(PlayerInfo[playerid][pAdmin] == 0) { format(string, sizeof(string), "(( %s ))", text); } else { format(string, sizeof(string), "(( %s ))", text); } SendPlayerMessageToAll(playerid, string); format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (OOC): %s",d1,m1,y1,h1,mi1,s1, sendername, text); PublicLog(string); return 0; } return 1;