Server SHutdown
#4

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;

Reply


Messages In This Thread
Server SHutdown - by FaZeRs - 16.01.2015, 17:06
Re: Server SHutdown - by xVIP3Rx - 16.01.2015, 17:17
Re: Server SHutdown - by CalvinC - 16.01.2015, 17:27
Re: Server SHutdown - by FaZeRs - 16.01.2015, 19:53

Forum Jump:


Users browsing this thread: 2 Guest(s)