Jump to content
  • 0

problema newbiechat


crazyzee

Question

Salut am si eu urmatoarea problema , nebie chat este blokat si nici comanda /tognewbie nu o am in gm sa o pot debloka eu ca owner , si ar mai fi si problema la /w as vrea sa fie deblokat inca de cand se conecteaza pe server sa nu trebiasca sa dea fiecare /togwhisper , unii newbie nu stiu .... , mersi frumos celor care ma ajuta !!

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

[pawn]          if(strcmp(cmd, "/disablenewb", true) == 0)

        {

            if(IsPlayerConnected(playerid))

  {

if (PlayerInfo[playerid][pAdmin] >= 1337 && (!nonewbie))

{

nonewbie = 1;

BroadCast(COLOR_GRAD2, "  Newbie chat channel disabled by an {FFFFFF}Admin!");

SendClientMessage(playerid, COLOR_GRAD2, "  Newbie chat channel deactivated !");

}

else if (PlayerInfo[playerid][pAdmin] >= 1337 && (nonewbie))

{

nonewbie = 0;

BroadCast(COLOR_GRAD2, "  Newbie chat channel enabled by an {FFFFFF}Admin!");

SendClientMessage(playerid, COLOR_GRAD2, "  Newbie chat channel activated !");

}

else

{

SendClientMessage(playerid, COLOR_GRAD1, "Nu esti autorizat sa folosesti aceasta comanda!");

}

}

return 1;

        }[/pawn]

Link to comment
Share on other sites

pentru /w trebuie sa ne dai comanda de /w pentru a vedea ce ai tu acolo

if(strcmp(cmd, "/whisper", true) == 0 || strcmp(cmd, "/w", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

        if(gPlayerLogged[playerid] == 0)

        {

            SendClientMessage(playerid, COLOR_GREY, "  You havent logged in yet !");

            return 1;

        }

        if(PlayerInfo[playerid][pLevel] < 2)

        {

        SendClientMessage(playerid, COLOR_LIGHTGREEN, "  You must be level 2 to use this!");

            return 1;

        }

        if(PlayerInfo[playerid][pMuted] == 1)

{

SendClientMessage(playerid, TEAM_CYAN_COLOR, "  You can't speak, you have been silenced !");

return 1;

}

if(PlayerTied[playerid] > 0)

            {

                SendClientMessage(playerid, COLOR_GREY, "  you can`t use this command because you are tied!");

                return 1;

            }

tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/w)isper [playerid/PartOfName] [whisper text]");

return 1;

}

giveplayerid = ReturnUser(tmp);

if (IsPlayerConnected(giveplayerid))

{

    if(giveplayerid != INVALID_PLAYER_ID)

    {

        if(HidePM[giveplayerid] > 0)

        {

            SendClientMessage(playerid, COLOR_GREY, "  That player is blocking Whispers !");

            return 1;

        }

        /*if(AFKCheck[giveplayerid] > 0)

        {

                        SendClientMessage(playerid, COLOR_GREY, "  That player is afk !");

            return 1;

                    }*/

GetPlayerName(playerid, sendername, sizeof(sendername));

GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

if(giveplayerid == playerid)

{

format(string, sizeof(string), "* %s mutters somthing.", sendername);

ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

}

new length = strlen(cmdtext);

while ((idx < length) && (cmdtext[idx] <= ' '))

{

idx++;

}

new offset = idx;

new result[64];

while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))

{

result[idx - offset] = cmdtext[idx];

idx++;

}

result[idx - offset] = EOS;

if(!strlen(result))

{

SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/w)isper [playerid/PartOfName] [whisper text]");

return 1;

}

format(string, sizeof(string), "{80FF80}%s(ID: %d) {FFFFFF}whispers: {80FF80}%s", sendername, playerid, (result));

SendClientMessage(giveplayerid, COLOR_WHITE, string);

format(string, sizeof(string), "Whisper sent to {80FF80}%s(ID: %d) {FFFFFF}%s", giveplayer, giveplayerid, (result));

SendClientMessage(playerid, COLOR_WHITE, string);

SBizzInfo[2][sbTill] += txtcost;

ExtortionSBiz(2, txtcost);

for(new i = 0; i <= MAX_PLAYERS; i++)

{

if(IsPlayerConnected(i))

{

if(BigEar == 1 && i != playerid && i != giveplayerid)

{

format(string, sizeof(string), "[bigEar] {80FF80}%s (ID: %d) {FFFFFF}to {80FF80}%s (ID: %d): {FFFFFF}%s", sendername, playerid, giveplayer, giveplayerid, (result));

SendClientMessage(i, COLOR_WHITE, string);

}

}

}

new y,m,d;

new h,mi,s;

getdate(y,m,d);

gettime(h,mi,s);

format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s(ID: %d) to %s(ID: %d): %s",d,m,y,h,mi,s,sendername, playerid, giveplayer, giveplayerid, (result));

ChatLog(string);

return 1;

}

}

else

{

format(string, sizeof(string), "  %d is not an active player.", giveplayerid);

SendClientMessage(playerid, COLOR_GRAD1, string);

}

}

return 1;

}

Stie cineva ? :-"

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.