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(playeridCOLOR_GREY"You're not logged in.");
        return 
1;
    }
    if(
isnull(params)) return SendClientMessageEx(playeridCOLOR_WHITE"USAGE: /b [local ooc chat]");
    new 
string[128];
    
    if(
strlen(params) > MAXLEN)
    {
        new 
pos MAXLEN;
        if(
pos MAXLEN-1pos MAXLEN;
        
format(stringsizeof(string), "(( %s (%d): %.*s ... ))"GetPlayerNameEx(playerid), playeridposparams);
        
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
        
format(stringsizeof(string), "(( %s (%d): ... %s ))",GetPlayerNameEx(playerid), playeridparams[pos]);
        
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    }
    else if(
aDuty[playerid] == 1)
    {
        
format(stringsizeof(string), "(( %s {FFFFFF}(%d): %s ))"GetPlayerNameEx(playerid), playeridparams);
        
ProxDetector(20.0playeridstring,COLOR_GREEN,COLOR_GREEN,COLOR_GREEN,COLOR_GREEN,COLOR_GREEN);
    }
    else if(
PlayerInfo[playerid][pMasked] == 1)
    {
        
format(stringsizeof(string), "(( Stranger:  %s ))"params);
        
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    }
    else
    {
        
format(stringsizeof(string), "(( %s (%d): %s ))"GetPlayerNameEx(playerid), playeridparams);
        
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    }
    return 
1;