[Ajuda] Outros Locais para roubo
#1

Galera to so com 1 lugar pra roubar que й na prefeitura sera que alguem sabe criar mais alguns lugar pra roubar vo postar meu /robar aki Por que nao ta dando pra criar aki se alguem poder ajudar eu agradeзo
Код HTML:
if(strcmp(cmd, "/roubar", true) == 0)// totalmente livre pra qualquer um
	{   if(IsACop(playerid)){
          SendClientMessage(playerid,0xFFFFFFF6,"Policiais nгo podem roubar");
          return true;
}


		if(IsPlayerConnected(playerid))
		{
			if(PlayerToPoint(1.0,playerid, 354.9906,172.3177,1008.3794))
			{
			    if(JaEstaRoubando[playerid] == 1)
			    {
			        SendClientMessage(playerid, COLOR_GRAD1, "Vocк ja estб roubando!");
			        return true;
				}
			    if(storeexit[playerid] == 1717)// Pref LS (Commerce)
			    {
			    	if(TemGenteRoubandoLS == 1)
			    	{
			        	SendClientMessage(playerid, COLOR_GRAD1, "Alguem ja roubou este local recentemente");
			        	return true;
					}
            		SetTimer("RouboPrefLS", 400000, 0);
 				    SetPlayerPos(playerid, 354.9906,172.3177,1008.3794);
				    SetPlayerFacingAngle(playerid, 93.9411);
            		JaEstaRoubando[playerid] = 1;
            		ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
            		SetTimerEx("AnimRoubo", 500, 0, "i", playerid);
        			temporoubo[playerid] = SetTimerEx("RouboPref", 60000, 0, "i", playerid);
        			TemGenteRoubandoLS = 1;
        			format(string, sizeof(string), "[ROUBO] %s (ID: %d) estб tentando roubar o cofre da prefeitura de (Commerce - LS)!", PlayerName(playerid), playerid);
        			SendClientMessageToAll(COLOR_DBLUE, string);
        			SendClientMessage(playerid, COLOR_YELLOW, "Espere 1 minuto para roubar. USE: /parar para cancelar!");
        			SetPlayerCriminal(playerid,255,"tentativa de roubo");
        			ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
        			return true;
				}
				if(storeexit[playerid] == 1718)//pref SF (Country Club)
				{
				   	if(TemGenteRoubandoSF == 1)
			    	{
			        	SendClientMessage(playerid, COLOR_GRAD1, "Alguem ja roubou este local recentemente");
			        	return true;
					}
					SetTimer("RouboPrefSF", 400000, 0);
 				    SetPlayerPos(playerid, 354.9906,172.3177,1008.3794);
				    SetPlayerFacingAngle(playerid, 93.9411);
            		ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
            		SetTimerEx("AnimRoubo", 500, 0, "i", playerid);
        			temporoubo[playerid] = SetTimerEx("RouboPref", 60000, 0, "i", playerid);
        			TemGenteRoubandoSF = 1;
        			JaEstaRoubando[playerid] = 1;
         			format(string, sizeof(string), "[ROUBO] %s (ID: %d) estб tentando roubar o cofre da prefeitura de (Country Club - SF)!", PlayerName(playerid), playerid);
        			SendClientMessageToAll(COLOR_DBLUE, string);
        			SendClientMessage(playerid, COLOR_YELLOW, "Espere 1 minuto para roubar. USE: /parar para cancelar!");
        			SetPlayerCriminal(playerid,255,"tentativa de roubo");
        			ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
        			return true;
				}
				if(storeexit[playerid] == 1719)//pref SF (Downtown)
				{
				   	if(TemGenteRoubandoSF2 == 1)
			    	{
			        	SendClientMessage(playerid, COLOR_GRAD1, "Alguem ja roubou este local recentemente");
			        	return true;
					}
					SetTimer("RouboPrefSF2", 400000, 0);
 				    SetPlayerPos(playerid, 354.9906,172.3177,1008.3794);
				    SetPlayerFacingAngle(playerid, 93.9411);
            		ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
            		SetTimerEx("AnimRoubo", 500, 0, "i", playerid);
        			temporoubo[playerid] = SetTimerEx("RouboPref", 60000, 0, "i", playerid);
        			TemGenteRoubandoSF2 = 1;
        			JaEstaRoubando[playerid] = 1;
         			format(string, sizeof(string), "[ROUBO] %s (ID: %d) estб tentando roubar o cofre da prefeitura de (Downtown - SF)!", PlayerName(playerid), playerid);
        			SendClientMessageToAll(COLOR_DBLUE, string);
        			SendClientMessage(playerid, COLOR_YELLOW, "Espere 1 minuto para roubar. USE: /parar para cancelar!");
        			SetPlayerCriminal(playerid,255,"tentativa de roubo");
        			ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
        			return true;
				}
				else// Pref LS (East Beach)
				{
				   	if(TemGenteRoubandoLS2 == 1)
			    	{
			        	SendClientMessage(playerid, COLOR_GRAD1, "Alguem ja roubou este local recentemente");
			        	return true;
					}
				    SetTimer("RouboPrefLS2", 400000, 0);
				    SetPlayerPos(playerid, 354.9906,172.3177,1008.3794);
				    SetPlayerFacingAngle(playerid, 93.9411);
            		ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
            		SetTimerEx("AnimRoubo", 500, 0, "i", playerid);
        			temporoubo[playerid] = SetTimerEx("RouboPref", 60000, 0, "i", playerid);
        			TemGenteRoubandoLS2 = 1;
        			JaEstaRoubando[playerid] = 1;
           			format(string, sizeof(string), "[ROUBO] %s (ID: %d) estб tentando roubar o cofre da prefeitura de (East Beach - LS)!", PlayerName(playerid), playerid);
        			SendClientMessageToAll(COLOR_DBLUE, string);
        			SendClientMessage(playerid, COLOR_YELLOW, "Espere 1 minuto para roubar. USE: /parar para cancelar!");
        			SetPlayerCriminal(playerid,255,"tentativa de roubo");
        			ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
        			return true;
				}
			}
			else
			{
			    SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo estб perto suficiente do cofre da prefeitura!");
			    return true;
			}
		}
	}
Reply
#2

Nгo entendi muito bem mas vou tentar ajudar...

Primeiro cata a coordenada dentro do proprio GTA/SAMP usando /save [comentario] de onde vocк quer, apуs cai dentro usando como base o comando acima
Reply
#3

Vocк terб que copiar e colar todo esse processo aqui, mas terб que adaptб-lo ao seu gosto. Melhor, adaptб-lo por conta do outro local
pawn Код:
if(PlayerToPoint(1.0,playerid, 354.9906,172.3177,1008.3794))
            {
                if(JaEstaRoubando[playerid] == 1)
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "Vocк ja estб roubando!");
                    return true;
                }
                if(storeexit[playerid] == 1717)// Pref LS (Commerce)
                {
                    if(TemGenteRoubandoLS == 1)
                    {
                        SendClientMessage(playerid, COLOR_GRAD1, "Alguem ja roubou este local recentemente");
                        return true;
                    }
                    SetTimer("RouboPrefLS", 400000, 0);
                    SetPlayerPos(playerid, 354.9906,172.3177,1008.3794);
                    SetPlayerFacingAngle(playerid, 93.9411);
                    JaEstaRoubando[playerid] = 1;
                    ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
                    SetTimerEx("AnimRoubo", 500, 0, "i", playerid);
                    temporoubo[playerid] = SetTimerEx("RouboPref", 60000, 0, "i", playerid);
                    TemGenteRoubandoLS = 1;
                    format(string, sizeof(string), "[ROUBO] %s (ID: %d) estб tentando roubar o cofre da prefeitura de (Commerce - LS)!", PlayerName(playerid), playerid);
                    SendClientMessageToAll(COLOR_DBLUE, string);
                    SendClientMessage(playerid, COLOR_YELLOW, "Espere 1 minuto para roubar. USE: /parar para cancelar!");
                    SetPlayerCriminal(playerid,255,"tentativa de roubo");
                    ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
                    return true;
                }
                if(storeexit[playerid] == 1718)//pref SF (Country Club)
                {
                    if(TemGenteRoubandoSF == 1)
                    {
                        SendClientMessage(playerid, COLOR_GRAD1, "Alguem ja roubou este local recentemente");
                        return true;
                    }
                    SetTimer("RouboPrefSF", 400000, 0);
                    SetPlayerPos(playerid, 354.9906,172.3177,1008.3794);
                    SetPlayerFacingAngle(playerid, 93.9411);
                    ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
                    SetTimerEx("AnimRoubo", 500, 0, "i", playerid);
                    temporoubo[playerid] = SetTimerEx("RouboPref", 60000, 0, "i", playerid);
                    TemGenteRoubandoSF = 1;
                    JaEstaRoubando[playerid] = 1;
                    format(string, sizeof(string), "[ROUBO] %s (ID: %d) estб tentando roubar o cofre da prefeitura de (Country Club - SF)!", PlayerName(playerid), playerid);
                    SendClientMessageToAll(COLOR_DBLUE, string);
                    SendClientMessage(playerid, COLOR_YELLOW, "Espere 1 minuto para roubar. USE: /parar para cancelar!");
                    SetPlayerCriminal(playerid,255,"tentativa de roubo");
                    ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
                    return true;
                }
                if(storeexit[playerid] == 1719)//pref SF (Downtown)
                {
                    if(TemGenteRoubandoSF2 == 1)
                    {
                        SendClientMessage(playerid, COLOR_GRAD1, "Alguem ja roubou este local recentemente");
                        return true;
                    }
                    SetTimer("RouboPrefSF2", 400000, 0);
                    SetPlayerPos(playerid, 354.9906,172.3177,1008.3794);
                    SetPlayerFacingAngle(playerid, 93.9411);
                    ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
                    SetTimerEx("AnimRoubo", 500, 0, "i", playerid);
                    temporoubo[playerid] = SetTimerEx("RouboPref", 60000, 0, "i", playerid);
                    TemGenteRoubandoSF2 = 1;
                    JaEstaRoubando[playerid] = 1;
                    format(string, sizeof(string), "[ROUBO] %s (ID: %d) estб tentando roubar o cofre da prefeitura de (Downtown - SF)!", PlayerName(playerid), playerid);
                    SendClientMessageToAll(COLOR_DBLUE, string);
                    SendClientMessage(playerid, COLOR_YELLOW, "Espere 1 minuto para roubar. USE: /parar para cancelar!");
                    SetPlayerCriminal(playerid,255,"tentativa de roubo");
                    ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
                    return true;
                }
                else// Pref LS (East Beach)
                {
                    if(TemGenteRoubandoLS2 == 1)
                    {
                        SendClientMessage(playerid, COLOR_GRAD1, "Alguem ja roubou este local recentemente");
                        return true;
                    }
                    SetTimer("RouboPrefLS2", 400000, 0);
                    SetPlayerPos(playerid, 354.9906,172.3177,1008.3794);
                    SetPlayerFacingAngle(playerid, 93.9411);
                    ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
                    SetTimerEx("AnimRoubo", 500, 0, "i", playerid);
                    temporoubo[playerid] = SetTimerEx("RouboPref", 60000, 0, "i", playerid);
                    TemGenteRoubandoLS2 = 1;
                    JaEstaRoubando[playerid] = 1;
                    format(string, sizeof(string), "[ROUBO] %s (ID: %d) estб tentando roubar o cofre da prefeitura de (East Beach - LS)!", PlayerName(playerid), playerid);
                    SendClientMessageToAll(COLOR_DBLUE, string);
                    SendClientMessage(playerid, COLOR_YELLOW, "Espere 1 minuto para roubar. USE: /parar para cancelar!");
                    SetPlayerCriminal(playerid,255,"tentativa de roubo");
                    ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
                    return true;
                }
            }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)