SA-MP Forums Archive
Server SHutdown - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Server SHutdown (/showthread.php?tid=558294)



Server SHutdown - FaZeRs - 16.01.2015

Someone just type something on /b

On console it shows like http://www.bildites.lv/images/ascx8vpo7sm5yzzdzdk7.png and server shutdowns


Re: Server SHutdown - xVIP3Rx - 16.01.2015

Use Crash Detect plugin and try to type that again.


Re: Server SHutdown - CalvinC - 16.01.2015

Can you show your /b command?


Re: Server SHutdown - FaZeRs - 16.01.2015

PHP код:
CMD:b(playerid,params[])
{
    if(
gPlayerLogged{playerid} == 0)
    {
        
SendClientMessageEx(playerid, COLOR_GREY, "You're not logged in.");
        return 
1;
    }
    if(
isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /b [local ooc chat]");
    new 
string[128];
    
    if(
strlen(params) > MAXLEN)
    {
        new 
pos = MAXLEN;
        if(
pos < MAXLEN-1) pos = MAXLEN;
        
format(string, sizeof(string), "(( %s (%d): %.*s ... ))", GetPlayerNameEx(playerid), playerid, pos, params);
        
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
        
format(string, sizeof(string), "(( %s (%d): ... %s ))",GetPlayerNameEx(playerid), playerid, params[pos]);
        
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    }
    else if(
aDuty[playerid] == 1)
    {
        
format(string, sizeof(string), "(( %s {FFFFFF}(%d): %s ))", GetPlayerNameEx(playerid), playerid, params);
        
ProxDetector(20.0, playerid, string,COLOR_GREEN,COLOR_GREEN,COLOR_GREEN,COLOR_GREEN,COLOR_GREEN);
    }
    else if(
PlayerInfo[playerid][pMasked] == 1)
    {
        
format(string, sizeof(string), "(( Stranger:  %s ))", params);
        
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    }
    else
    {
        
format(string, sizeof(string), "(( %s (%d): %s ))", GetPlayerNameEx(playerid), playerid, params);
        
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    }
    return 
1;
}