[AJUDA] GM BPS - /veh bugado
#9

Chave do carro:
Код:
	}
			else if(IsABOPEsCar(newcar))
			{
			    if(GetPlayerOrg(playerid) != 2)
				{
					SendClientMessage(playerid, COR_BP, "Vocк nгo й da BOPE, por isso nгo tem a chave desse veнculo!");
					RemovePlayerFromVehicleEx(playerid);
				}
			}
ID dos carros BOPE:
Код:
public IsABOPEs(playerid)
{
	if(IsPlayerConnected(playerid))
	{
	    new lider = PlayerInfo[playerid][pLider];
	    new member = PlayerInfo[playerid][pMembro];
	    if(member==2 || member==2)
		{
		    return 1;
		}
		else if(lider==2 || lider==2)
		{
		    return 1;
		}
	}
	return 0;
}
public IsABOPEsCar(carid)
{
	if((carid >= 152) && (carid <= 174) || (carid == 406) || (carid =601))
	{
		return 1;
	}
	return 0;
}
/veh
Код:
	}
	if(strcmp(cmd, "/veh", true) == 0)
    {
		if(IsPlayerConnected(playerid))
     	{
        	if (PlayerInfo[playerid][pAdmin] < 1338)
			{
		    	SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo esta autorizado a usar este comando!");
       			return 1;
			}
			if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1340 && PlayerInfo[playerid][pAdmin] != 1341 && PlayerInfo[playerid][pAdmin] != 1342)
    		{
    			SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
    			return 1;
    		}
			if(CreatedCar >= 96)
    		{
    			SendClientMessage(playerid, COLOR_GRAD1, "Jб criaram muitos carros, destrua alguns primeiro /destruirid");
    			return 1;
    		}
  			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
   			{
    			SendClientMessage(playerid, COLOR_GRAD2, "USE: /veh [IDCARRO] [COR1] [COR2]");
    			return 1;
   			}
   			new car;
   			car = strval(tmp);
   			if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, "   Modelo Do Carro Tem Que Ser Entre 411 e 600 !"); return 1; }
   			tmp = strtok(cmdtext, idx);
   			if(!strlen(tmp))
   			{
    			SendClientMessage(playerid, COLOR_GRAD2, "USE: /veh [IDCARRO] [COR1] [COR2]");
    			return 1;
   			}
   			new COLOR1;
   			COLOR1 = strval(tmp);
   			if(COLOR1 < 0 || COLOR1 > 126) { SendClientMessage(playerid, COLOR_GREY, "   Nъmero Da Cor tem que ser entre 0 e 126 !"); return 1; }
   			tmp = strtok(cmdtext, idx);
   			if(!strlen(tmp))
   			{
    			SendClientMessage(playerid, COLOR_GRAD2, "USE: /veh [IDCARRO] [COR1] [COR2]");
    			return 1;
   			}
   			new COLOR2;
   			COLOR2 = strval(tmp);
   			if(COLOR2 < 0 || COLOR2 > 126) { SendClientMessage(playerid, COLOR_GREY, "   Nъmero Da Cor tem que ser entre 0 e 126 !"); return 1; }
   			new Float:X,Float:Y,Float:Z;
   			GetPlayerPos(playerid, X,Y,Z);
   			new carid = CreateVehicle(car, X,Y,Z, 0.0, COLOR1, COLOR2, 60000);
   			CreatedCars[CreatedCar] = carid;
   			CreatedCar ++;
   			format(string, sizeof(string), "   Veiculo %d Criado.", carid);
   			SendClientMessage(playerid, COLOR_GREY, string);
  		}
  		return 1;
 	}
Reply


Messages In This Thread
[AJUDA] GM BPS - /veh bugado - by Rafael_Loss - 30.10.2011, 17:02
Re: [AJUDA] GM BPS - /veh bugado - by whiXґ - 30.10.2011, 17:12
Respuesta: [AJUDA] GM BPS - /veh bugado - by ErickOwnZ - 30.10.2011, 18:17
Re: [AJUDA] GM BPS - /veh bugado - by Rafael_Loss - 30.10.2011, 18:30
Respuesta: [AJUDA] GM BPS - /veh bugado - by ErickOwnZ - 30.10.2011, 18:39
Re: Respuesta: [AJUDA] GM BPS - /veh bugado - by whiXґ - 30.10.2011, 18:43
Re: [AJUDA] GM BPS - /veh bugado - by Rafael_Loss - 30.10.2011, 18:46
Re: [AJUDA] GM BPS - /veh bugado - by whiXґ - 30.10.2011, 18:47
Re: [AJUDA] GM BPS - /veh bugado - by Rafael_Loss - 31.10.2011, 10:35
Re: [AJUDA] GM BPS - /veh bugado - by rjjj - 31.10.2011, 18:00

Forum Jump:


Users browsing this thread: 1 Guest(s)