Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Recommended Posts

Posted

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;
}

 

 

Posted
Acum 11 ore, Two a spus:

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)

 

SendClientMessage(pl, COLOR_WHITE, tmpstring);//era playerid in loc de pl
Posted
Acum 4 ore, valivaly96 a spus:

SendClientMessage(pl, COLOR_WHITE, tmpstring);//era playerid in loc de pl

Multumesc mult ! T/C

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.