[Ajuda] /Batercartao
#2

pawn Код:
if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
        OnPlayerCommandText(playerid,"/entrar");
        OnPlayerCommandText(playerid,"/sair");
        OnPlayerCommandText(playerid,"/beber");
        OnPlayerCommandText(playerid,"/menucop");
        if(PlayerToPoint(3,playerid,229.7267,165.0443,1003.0234) || PlayerToPoint(2, playerid,255.3,77.4,1003.6) || PlayerToPoint(2,playerid,-1616.1294,681.1594,7.1875) || PlayerToPoint(2,playerid,230.1107,165.2237,1003.0234) || PlayerToPoint(2, playerid,240.7396,112.9709,1003.2188) || PlayerToPoint(2, playerid,303.6393,-1526.9138,24.9219)
        || PlayerToPoint(2, playerid,1530.5187,-1702.5320,6.2252) || PlayerToPoint(2, playerid,1661.6528,-1692.3926,20.4526) || PlayerToPoint(2, playerid,313.4667,-166.1404,999.6010) || PlayerToPoint(2, playerid,326.4911,307.0710,999.1484) || PlayerToPoint(2, playerid,-2022.5831,-114.2501,1035.1719) && IsACop(playerid))
        {
            if(OnDuty[playerid]==0)
            {
                format(string, sizeof(string), " O Oficial %s do Governo bateu o cartгo e estб em serviзo", PlayerName(playerid));
                OOCNews(COLOR_LIGHTBLUE,string);
                SetPlayerArmour(playerid, 100);
                SetPlayerHealth(playerid, 100);
                OnDuty[playerid] = 1;
                EmpregoDuty[playerid] = 2;
                Copsronda += 1;
                TogglePlayerControllable(playerid,1);
            }
            else if(OnDuty[playerid]==1)
            {
                format(string, sizeof(string), "O Oficial %s do Governo estб de folga", PlayerName(playerid));
                OOCNews(COLOR_LIGHTBLUE,string);
                OnDuty[playerid] = 0;
                EmpregoDuty[playerid] = 0;
                Copsronda -= 1;
                TogglePlayerControllable(playerid,1);
            }
        }
O problema esta aqui mas como coloco o codigo para ISACOP ?
Reply


Messages In This Thread
/Batercartao - by felipe_mr - 04.10.2014, 04:52
Re: /Batercartao - by felipe_mr - 07.10.2014, 00:18
Re: /Batercartao - by Bruno13 - 07.10.2014, 01:16
Re: /Batercartao - by felipe_mr - 07.10.2014, 01:33
Re: /Batercartao - by felipe_mr - 07.10.2014, 02:20

Forum Jump:


Users browsing this thread: 1 Guest(s)