[Ajuda] Comandos Fixos Para Orgs
#1

ae galera eu tenho o comando
pawn Код:
if (strcmp("/patio1", cmdtext, true, 10) == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid,10.0,2950.674,-1713.601,10.902))
        {
            MoveObject(Patio1,2950.681,-1713.505,4.227,3.0);
            SetTimerEx("CloseGate", 5000, false, "i", Patio1);
            SendClientMessage(playerid, COLOR_YELLOW3, "[INFO] O 1є Portгo do Pбtio Fecharб em 5 Segundos !");
            return 1;
        }
    }
e queria saber se vcs me ajuda pra colocar so para o policial usar ela

pawn Код:
enum pPolicial
alguem me ajudaaaa
Reply
#2

tenta

pawn Код:
if (strcmp("/patio1", cmdtext, true, 7) == 0){
    if (pPolicial[playerid])return SendClientMessage(playerid, -1, "Vocк nгo й um policial");
    if(IsPlayerInRangeOfPoint(playerid,10.0,2950.674,-1713.601,10.902)){
            MoveObject(Patio1,2950.681,-1713.505,4.227,3.0);
            SetTimerEx("CloseGate", 5000, false, "i", Patio1);
            SendClientMessage(playerid, COLOR_YELLOW3, "[INFO] O 1є Portгo do Pбtio Fecharб em 5 Segundos !");
    }
    return true;
}
edit
esqueзa o cуdigo acima ta errado , falta o uma coisa ae , poste sua ENUM COMPLETA e a variavel de info
Reply
#3

pawn Код:
enum pInfo
{
    pAdmin,
    pPolicial,
    pTrafico,
    pPresoLS,
    pReporterLS,
    pVip,
    pTorcida
Reply
#4

Quote:
Originally Posted by Q.I
Посмотреть сообщение
tenta

pawn Код:
if (strcmp("/patio1", cmdtext, true, 7) == 0){
    if (pPolicial[playerid])return SendClientMessage(playerid, -1, "Vocк nгo й um policial");
    if(IsPlayerInRangeOfPoint(playerid,10.0,2950.674,-1713.601,10.902)){
            MoveObject(Patio1,2950.681,-1713.505,4.227,3.0);
            SetTimerEx("CloseGate", 5000, false, "i", Patio1);
            SendClientMessage(playerid, COLOR_YELLOW3, "[INFO] O 1є Portгo do Pбtio Fecharб em 5 Segundos !");
    }
    return true;
}
edit
esqueзa o cуdigo acima ta errado , falta o uma coisa ae , poste sua ENUM COMPLETA e a variavel de info
pawn Код:
if (!pPolicial[playerid]) return SendClientMessage(playerid, -1, "Vocк nгo й um policial");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)