[Duvida] Como liberar /gov para outras org
#9

Nгo sei se vai funcionar, mas tentei te ajudar.

CMD:

pawn Код:
if(strcmp(cmd, "/governo", true) == 0 || strcmp(cmd, "/gov", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    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, "USO: (/gov)erno [texto]");
        return 1;
    }
    SendClientMessageToAll(COLOR_WHITE, "|___________ Notнcias governamentais ___________|");
    for(new luplay=0;luplay<6;luplay++){
        if(strfind(result, IP[luplay], true) != -1){result = "PКGO EM FRБGRANTE!!!Jogador tentando divulgar algum IP.";}}
        if(PlayerInfo[playerid][pMember] == 7 && PlayerInfo[playerid][pRank] < 4)
        {
            format(string, sizeof(string), "Polнtico %s: %s", sendername, result);
            SendClientMessageToAll(COLOR_DBLUE, string);
        }
        else if(PlayerInfo[playerid][pMember] == 21 && PlayerInfo[playerid][pRank] < 4)
        {
            format(string, sizeof(string), "Oficial B.O.P.E %s: %s", sendername, result);
            SendClientMessageToAll(COLOR_DBLUE, string);
        }
        else if(PlayerInfo[playerid][pMember] == 14 && PlayerInfo[playerid][pRank] < 4)
        {
            format(string, sizeof(string), "Oficial Policia Rodoviaria %s: %s", sendername, result);
            SendClientMessageToAll(COLOR_DBLUE, string);
        }
        else if(PlayerInfo[playerid][pMember] == 3 && PlayerInfo[playerid][pRank] < 4)
        {
            format(string, sizeof(string), "Forзas Armadas %s: %s", sendername, result);
            SendClientMessageToAll(COLOR_DBLUE, string);
        }
        else if(PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] < 4)
        {
            format(string, sizeof(string), "Bombeiros %s: %s", sendername, result);
            SendClientMessageToAll(COLOR_DBLUE, string);
        }
        else if(PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pRank] < 4)
        {
            format(string, sizeof(string), "Oficial %s: %s", sendername, result);
            SendClientMessageToAll(COLOR_DBLUE, string);
        }else{
            SendClientMessage(playerid, COLOR_GREY, "Vocк precisar ter cargo maior ou igual а 4 !");
        }
    return 1;
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)