Jump to content

Problema chat clan.


Two

Recommended Posts

Salut.

Cand scriu ceva pe /c, imi apare scris de 2 ori, iar celorlalti membri nu le apare.

Are cineva vreo alta idee de creeare pentru /c ?      (folosesc gamemode gen bottles)

Citat

CMD:c(playerid, params[]) {
    if(pInfo[playerid][pMute] > 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "You cannot speak, you have been muted.");
    if(pInfo[playerid][pClan] == -1) return SendClientMessage(playerid, COLOR_DARKGRAY, "You're not part of a clan.");
    new text[128], playerclan = pInfo[playerid][pClan], tmpstring[128 + 50];
    if(sscanf(params, "s[128]", text)) return SendSyntaxMessage(playerid, "/c [clan chat]");
    switch(pInfo[playerid][pCRank]) {
        case 0: format(tmpstring, 15, "None");
        case 1: format(tmpstring, 128 + 50, "{%s}(%d) %s %s: %s", Clan[playerclan][Color], pInfo[playerid][pCRank], Clan[playerclan][Rank1], GetName(playerid), text);
        case 2: format(tmpstring, 128 + 50, "{%s}(%d) %s %s: %s", Clan[playerclan][Color], pInfo[playerid][pCRank], Clan[playerclan][Rank2], GetName(playerid), text);
        case 3: format(tmpstring, 128 + 50, "{%s}(%d) %s %s: %s", Clan[playerclan][Color], pInfo[playerid][pCRank], Clan[playerclan][Rank3], GetName(playerid), text);
        case 4: format(tmpstring, 128 + 50, "{%s}(%d) %s %s: %s", Clan[playerclan][Color], pInfo[playerid][pCRank], Clan[playerclan][Rank4], GetName(playerid), text);
        case 5: format(tmpstring, 128 + 50, "{%s}(%d) %s %s: %s", Clan[playerclan][Color], pInfo[playerid][pCRank], Clan[playerclan][Rank5], GetName(playerid), text);
        case 6: format(tmpstring, 128 + 50, "{%s}(%d) %s %s: %s", Clan[playerclan][Color], pInfo[playerid][pCRank], Clan[playerclan][Rank6], GetName(playerid), text);
        case 7: format(tmpstring, 128 + 50, "{%s}(%d) %s %s: %s", Clan[playerclan][Color], pInfo[playerid][pCRank], Clan[playerclan][Rank7], GetName(playerid), text);
    }
    foreach(new pl : Player) {
        if(pInfo[pl][pClan] == playerclan) SendClientMessage(playerid, COLOR_WHITE, tmpstring);
    }
    return 1;
}

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.