/b command revamp
#2

PHP Code:
CMD:b(playeridparams[])
{
    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 (
PlayerInfo[playerid][pMask] == 0) {
        
format(stringsizeof(string), "%s: (( %s ))"GetPlayerNameEx(playerid), params);
        
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    }
    else if(
PlayerInfo[i][pAdmin] > 1) {
        
format(stringsizeof(string), "{336633}%s: (( %s ))"GetPlayerNameEx(playerid), params);
        
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    }
    else if (
PlayerInfo[playerid][pMask] == 1) {
        
format(stringsizeof(string), "Stranger: (( %s ))",  params);
        
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
        }
      foreach(
Playeri)
    {
        if(
PlayerInfo[i][pAdmin] > && BigEar[i] == 2)
        {
            new 
szAntiprivacy[128];
            
format(szAntiprivacysizeof(szAntiprivacy), "(BE) %s: %s"GetPlayerNameEx(playerid), params);
            
SendClientMessageEx(iCOLOR_FADE1szAntiprivacy);
        }
    }
    return 
1;

Try that.
Reply


Messages In This Thread
/b command revamp - by DrakeBell - 09.07.2017, 12:15
Re: /b command revamp - by aoky - 09.07.2017, 12:19
Re: /b command revamp - by DrakeBell - 09.07.2017, 15:26
Re: /b command revamp - by DrakeBell - 09.07.2017, 16:41
Re: /b command revamp - by Arthur Kane - 09.07.2017, 16:53
Re: /b command revamp - by aoky - 09.07.2017, 17:23
Re: /b command revamp - by DrakeBell - 09.07.2017, 18:04
Re: /b command revamp - by DrakeBell - 09.07.2017, 18:54
Re: /b command revamp - by DrakeBell - 09.07.2017, 19:03
Re: /b command revamp - by Arthur Kane - 09.07.2017, 19:19
Re: /b command revamp - by aoky - 09.07.2017, 19:29
Re: /b command revamp - by DrakeBell - 09.07.2017, 20:16
Re: /b command revamp - by Arthur Kane - 09.07.2017, 20:23
Re: /b command revamp - by DrakeBell - 09.07.2017, 21:04
Re: /b command revamp - by Arthur Kane - 09.07.2017, 21:09
Re: /b command revamp - by DrakeBell - 11.07.2017, 04:08
Re: /b command revamp - by Arthur Kane - 11.07.2017, 04:29
Re: /b command revamp - by Sew_Sumi - 11.07.2017, 04:37
Re: /b command revamp - by aoky - 11.07.2017, 05:30
Re: /b command revamp - by Sew_Sumi - 11.07.2017, 07:44
Re: /b command revamp - by DrakeBell - 11.07.2017, 08:09
Re: /b command revamp - by Arthur Kane - 11.07.2017, 08:34
Re: /b command revamp - by aoky - 11.07.2017, 15:50
Re: /b command revamp - by Sew_Sumi - 11.07.2017, 18:16
Re: /b command revamp - by DrakeBell - 12.07.2017, 09:48
Re: /b command revamp - by DrakeBell - 16.07.2017, 19:43
Re: /b command revamp - by aoky - 16.07.2017, 19:52
Re: /b command revamp - by DrakeBell - 16.07.2017, 20:13
Re: /b command revamp - by aoky - 16.07.2017, 20:23
Re: /b command revamp - by DrakeBell - 16.07.2017, 21:18
Re: /b command revamp - by Sew_Sumi - 16.07.2017, 21:50
Re: /b command revamp - by Daymen - 16.07.2017, 22:59
Re: /b command revamp - by DrakeBell - 17.07.2017, 05:57
Re: /b command revamp - by Sew_Sumi - 17.07.2017, 06:32
Re: /b command revamp - by DrakeBell - 17.07.2017, 07:00
Re: /b command revamp - by Sew_Sumi - 17.07.2017, 07:31
Re: /b command revamp - by DrakeBell - 17.07.2017, 07:39
Re: /b command revamp - by DrakeBell - 17.07.2017, 11:13
Re: /b command revamp - by aoky - 17.07.2017, 11:21

Forum Jump:


Users browsing this thread: 2 Guest(s)