[AJUDA] Comando /ajustar
#4

Quote:
Originally Posted by Matheus_Ecko
Посмотреть сообщение
ajuda ai pow
tenta:

pawn Код:
if(strcmp(cmd, "/ajustar", true) == 0)
    {
        new id[128], stemp[128];
        if(IsPlayerConnected(playerid))
        {
            if(IsACop(playerid))
            {
                if(OnDuty[playerid] != 1) return SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo Bateu o cartгo!");
                if(!PlayerToPoint(12.0, playerid, 268.3327,77.8972,1001.0391) && !PlayerToPoint(12.0, playerid, 1545.4073,-1607.9791,13.3828) && !PlayerToPoint(12.0, playerid, 324.3141,-1496.9177,24.9219) && !PlayerToPoint(12.0, playerid, 920.5212,-1184.8267,16.9766) &&  !PlayerToPoint(12.0, playerid, 221.1459,115.3492,999.0156) && !PlayerToPoint(12.0, playerid, 193.9101,179.2799,1003.0234) && !PlayerToPoint(12.0, playerid, 1545.7220,-1609.4769,13.3828)
                && !PlayerToPoint(12.0, playerid, 1019.6051,-317.6436,73.9922) && !PlayerToPoint(12.0, playerid, 195.5733,158.4008,1003.0234)
                && !PlayerToPoint(12.0, playerid, -1298.8188,490.5014,11.1953) && !PlayerToPoint(12.0, playerid, 264.1557,77.5797,1001.0391) && !PlayerToPoint(12.0, playerid, 1361,175.1075,1003.0234) && !PlayerToPoint(12.0, playerid, 321.8284,315.6733,999.1484) && !PlayerToPoint(12.0, playerid, 709.5662,-568.6655,-6.1966) && !PlayerToPoint(3,playerid,852.7875,-1275.1605,14.3879))
                {// Jail spot
                    SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo estб perto da cela, nгo pode ajustar o tempo do suspeito !");
                    return true;
                }
                stemp = strtok(cmdtext, idx);
                id = strtok(cmdtext, idx);
                if(!strlen(id) || !strlen(stemp)) return SendClientMessage(playerid, COLOR_GRAD2, "USE: /ajustar [id] [tempo (minutos)]");
                giveplayerid = ReturnUser(id);
                new time = strval(stemp);
                if(time < 1 || time > 20) { SendClientMessage(playerid, COLOR_GREY, "   O Tempo nгo pode ser menor que 1 nem maior que 20 !"); return true; }
                new suspect = giveplayerid;
                if(IsPlayerConnected(suspect))
                {
                format(string, sizeof(string), "* Vocк ajustou %s !", giveplayer);
                SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                PlayerInfo[suspect][pJailTime] = time * 60;
                format(string, sizeof(string), "Oficial %s ajustou seu tempo de prisгo para %d Segundos.", PlayerName(playerid),PlayerInfo[suspect][pJailTime]);
                SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                }
            }
            else
                {
                    SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo й um Oficial !");
                    return true;
                }
        }
        return true;
    }
@edit, corrigi outras coisinhas.
Reply


Messages In This Thread
[AJUDA] Comando /ajustar - by Matheus_Ecko - 05.04.2012, 22:02
Re: [AJUDA] Comando /ajustar - by Matheus_Ecko - 05.04.2012, 22:16
Re: [AJUDA] Comando /ajustar - by Matheus_Ecko - 05.04.2012, 23:24
Re: [AJUDA] Comando /ajustar - by steeldark - 06.04.2012, 01:02
Re: [AJUDA] Comando /ajustar - by Don_Speed - 06.04.2012, 01:26

Forum Jump:


Users browsing this thread: 1 Guest(s)