SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 12/02/2011, 04:02 AM   #1
Lós
High-roller
 
Lós's Avatar
 
Join Date: Sep 2010
Location: Casterly Rock
Posts: 4,382
Reputation: 508
Default [Ajuda] Payday fechando samp-server

Pessoal meu peidei tá dando samp-server, alguem sabe oque pode ser?

Code:
public PayDay()
{
  new string[256];
  CheckPayday = 1;
  for(new i=0;i<MAX_PLAYERS;i++)
  {
	if(IsPlayerConnected(i) && PlayerInfo[i][Loged] == 1)
	{
       SendClientMessage(i,GreyColor,"*~>=========Hora do Pagamento=========<~*");
       new Salario = 0;
	   if(PlayerInfo[i][Org] == 0)
	   {
		  format(string,sizeof(string), "Salário: $%d",410+(PlayerInfo[i][Level]*8));
		  SendClientMessage(i,GreyColor,string);
		  GivePlayerMoneyEx(i,300+(PlayerInfo[i][Level]*8));
		  Salario = 410+(PlayerInfo[i][Level]*8);
	   }
	   else if(PlayerInfo[i][Org] == PM)
	   {
		  format(string,sizeof(string), "Salário: $%d",1400+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  SendClientMessage(i,GreyColor,string);
		  GivePlayerMoneyEx(i,1400+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  Salario = 1400+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
	   }
	   else if(PlayerInfo[i][Org] == PF)
	   {
		  format(string,sizeof(string), "Salário: $%d",2600+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  SendClientMessage(i,GreyColor,string);
		  GivePlayerMoneyEx(i,2600+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  Salario = 2600+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
	   }
	   else if(PlayerInfo[i][Org] == GOE)
	   {
		  format(string,sizeof(string), "Salário: $%d",2000+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  SendClientMessage(i,GreyColor,string);
		  GivePlayerMoneyEx(i,2000+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  Salario = 2000+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
	   }
	   else if(PlayerInfo[i][Org] == Exercito)
	   {
		  format(string,sizeof(string), "Salário: $%d",2400+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  SendClientMessage(i,GreyColor,string);
		  GivePlayerMoneyEx(i,2400+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  Salario = 2400+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
	   }
	   else if(PlayerInfo[i][Org] == FAB)
	   {
		  format(string,sizeof(string), "Salário: $%d",2200+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  SendClientMessage(i,GreyColor,string);
		  GivePlayerMoneyEx(i,2200+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  Salario = 2200+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
	   }
       else if(PlayerInfo[i][Org] == FARC)
	   {
		  format(string,sizeof(string), "Salário: $%d",1800+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  SendClientMessage(i,GreyColor,string);
		  GivePlayerMoneyEx(i,1800+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  Salario = 1800+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
	   }
	   else if(PlayerInfo[i][Org] == AlQaeda)
	   {
		  format(string,sizeof(string), "Salário: $%d",1770+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  SendClientMessage(i,GreyColor,string);
		  GivePlayerMoneyEx(i,1770+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  Salario = 1770+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
	   }
	   else if(PlayerInfo[i][Org] == Governo)
	   {
		  format(string,sizeof(string), "Salário: $%d",3000+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  SendClientMessage(i,GreyColor,string);
		  GivePlayerMoneyEx(i,2500+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  Salario = 3000+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
	   }
	   else if(PlayerInfo[i][Org] == Reporter)
	   {
		  format(string,sizeof(string), "Salário: $%d",2000+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  SendClientMessage(i,GreyColor,string);
		  GivePlayerMoneyEx(i,2000+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  Salario = 2000+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
	   }
	   else if(PlayerInfo[i][Org] == Assassino)
	   {
		  format(string,sizeof(string), "Salário: $%d",900+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  SendClientMessage(i,GreyColor,string);
		  GivePlayerMoneyEx(i,1200+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  Salario = 900+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
	   }
	   	   else if(PlayerInfo[i][Org] == Mafia)
	   {
		  format(string,sizeof(string), "Salário: $%d",1800+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  SendClientMessage(i,GreyColor,string);
		  GivePlayerMoneyEx(i,1800+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  Salario = 1800+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
	   }
	   	   else if(PlayerInfo[i][Org] == Yakuza)
	   {
		  format(string,sizeof(string), "Salário: $%d",1800+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  SendClientMessage(i,GreyColor,string);
		  GivePlayerMoneyEx(i,1800+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  Salario = 1800+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
	   }
         else if(PlayerInfo[i][Org] == TorcidaJovemDoGremio || PlayerInfo[i][Org] == RacaRubroNegra || PlayerInfo[i][Org] == ManchaVerde || PlayerInfo[i][Org] == GavioesDaFiel)
	   {
		  format(string,sizeof(string), "Salário: $%d",700+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  SendClientMessage(i,GreyColor,string);
		  GivePlayerMoneyEx(i,1200+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
		  Salario = 1200+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
	   }
	   if(PlayerInfo[i][VipLevel] == 3) format(string,sizeof(string),"Salário VIP: $%d",450*GetPlayerScore(i)),SendClientMessage(i,GreyColor,string),GivePlayerMoneyEx(i,450*GetPlayerScore(i));
	   if(PlayerInfo[i][VipLevel] > 0) format(string,sizeof(string),"Saldo: $%d, Juros: 0,%d",PlayerInfo[i][BankMoney]+PlayerInfo[i][BankMoney]*PlayerInfo[i][VipLevel]*3/100,PlayerInfo[i][VipLevel]*3),SendClientMessage(i,GreyColor,string),PlayerInfo[i][BankMoney] = PlayerInfo[i][BankMoney]+PlayerInfo[i][BankMoney]*PlayerInfo[i][VipLevel]*3/1000;
	   else format(string,sizeof(string),"Saldo: $%d, Juros: 0,1",PlayerInfo[i][BankMoney]+PlayerInfo[i][BankMoney]*1/100),SendClientMessage(i,GreyColor,string),PlayerInfo[i][BankMoney] = PlayerInfo[i][BankMoney]+PlayerInfo[i][BankMoney]*1/1000;
	   format(string,sizeof(string),"Conta de Energia: %d, Imposto: -$%d",StoreInfo[8][Price]*25*GetPlayerScore(i),ImpostoInfo[0][Porcentagem]/100),SendClientMessage(i,GreyColor,string),StoreInfo[8][MoneyInBox]+=StoreInfo[8][Price]*25*GetPlayerScore(i),GivePlayerMoneyEx(i,-StoreInfo[8][Price]*25*GetPlayerScore(i)),GivePlayerMoneyEx(i,-Salario*ImpostoInfo[0][Porcentagem]/100);
	   SendClientMessage(i,GreyColor,"*~>================================<~*");
       
       ImpostoInfo[0][Acumulado] += Salario*ImpostoInfo[0][Porcentagem]/100;
       
       
       PlayerInfo[i][Respect] ++;
       if(PlayerInfo[i][VipLevel] == 3) PlayerInfo[i][Respect] ++;

	   PlayerInfo[i][GameTime] ++;
       
       PlayerInfo[i][JobTime]--;
       if(PlayerInfo[i][NecessaryToUp] <= PlayerInfo[i][Respect])
       {
		  PlayerInfo[i][Level] ++;
		  SetPlayerScore(i,PlayerInfo[i][Level]);
		  PlayerInfo[i][Respect] = 0;
		  PlayerInfo[i][NecessaryToUp] = PlayerInfo[i][NecessaryToUp]+PlayerInfo[i][Level];
		  format(string,sizeof(string),"[BRP]: Você ganhou 1 nível! Parabéns agora você tem nivel %d.",PlayerInfo[i][Level]);
		  SendClientMessage(i,BroadCastColor,string);
       }
       
       	new randomchance = random(100);
       	if(randomchance >= 85 && PlayerInfo[i][Doenca] == 0)
       	{
       	    if(PlayerInfo[i][Vacina] < 1)
       	    {
            	if(randomchance >= 85 && randomchance <= 95)
            	{
						SendClientMessage(i,BroadCastWarningColor,"===> Você está se sentindo mal, é melhor ir se consultar no hospital.");
						PlayerInfo[i][Doenca] = 1;
				}
				else if(randomchance >=96 && randomchance <= 98)
				{
			    		SendClientMessage(i,BroadCastWarningColor,"===> Você está se sentindo mal, é melhor ir se consultar no hospital.");
						PlayerInfo[i][Doenca] = 2;
				}
				else if(randomchance > 98)
				{
			    		SendClientMessage(i,BroadCastWarningColor,"===> Você está se sentindo mal, é melhor ir se consultar no hospital.");
						PlayerInfo[i][Doenca] = 3;
				}
			}
			else PlayerInfo[i][Vacina] --;
		}
		
		if(PlayerInfo[i][Aplicacao] > 0)
		{
		    new randomapl = random(3);
		    new randomapl2 = random(3);
		    
		    new lucro = randomapl - randomapl2;
		    
		    PlayerInfo[i][Aplicacao] += PlayerInfo[i][Aplicacao]*lucro/100;
		}
	}
  }
Lós is offline   Reply With Quote
Old 12/02/2011, 08:09 PM   #2
Lós
High-roller
 
Lós's Avatar
 
Join Date: Sep 2010
Location: Casterly Rock
Posts: 4,382
Reputation: 508
Default Re: [Ajuda] Payday fechando samp-server

Alguem?!
Lós is offline   Reply With Quote
Old 12/02/2011, 08:50 PM   #3
Macintosh
High-roller
 
Macintosh's Avatar
 
Join Date: Aug 2010
Location: Somewhere Far *User Type: Administrator
Posts: 3,630
Reputation: 115
Default Re: [Ajuda] Payday fechando samp-server

Se você pudesse explicar o que exatamento o que o seu "peidei" está fazendo eu poderia tentar lhe ajudar. Mas,o seu "peidei" está dando samp server eu não sei o que é dar samp server .-.
__________________

"É tão estranho
Os bons morrem jovens
Assim parece ser, quando me lembro de você
Que acabou indo embora, cedo demais
"

Os bons morrem jovens (Legião Urbana).

Um dia a gente irá se encontrar numa bem melhor brother

Macintosh is offline   Reply With Quote
Old 12/02/2011, 09:17 PM   #4
Lós
High-roller
 
Lós's Avatar
 
Join Date: Sep 2010
Location: Casterly Rock
Posts: 4,382
Reputation: 508
Default Re: [Ajuda] Payday fechando samp-server

O samp server ele simplesmente fecha a cada PayDay, e tambem quando dá o /gmx ele também fecha, agora descubro que não tem casas nem carros nem empresas a venda no GM, então fu, preciso arrumar tambem meu /darlider, ele só da lider pra org 1 --'

O GM é o CrimCity 0.3b que eu adaptei pra 0.3c

Códigos:

Payday
Code:
public PayDay()
{
  new string[256];
  CheckPayday = 1;
  for(new i=0;i<MAX_PLAYERS;i++)
  {
    if(IsPlayerConnected(i) && PlayerInfo[i][Loged] == 1)
    {
       SendClientMessage(i,GreyColor,"*~>=========Hora do Pagamento=========<~*");
       new Salario = 0;
       if(PlayerInfo[i][Org] == 0)
       {
          format(string,sizeof(string), "Salário: $%d",410+(PlayerInfo[i][Level]*8));
          SendClientMessage(i,GreyColor,string);
          GivePlayerMoneyEx(i,300+(PlayerInfo[i][Level]*8));
          Salario = 410+(PlayerInfo[i][Level]*8);
       }
       else if(PlayerInfo[i][Org] == PM)
       {
          format(string,sizeof(string), "Salário: $%d",1400+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          SendClientMessage(i,GreyColor,string);
          GivePlayerMoneyEx(i,1400+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          Salario = 1400+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
       }
       else if(PlayerInfo[i][Org] == PF)
       {
          format(string,sizeof(string), "Salário: $%d",2600+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          SendClientMessage(i,GreyColor,string);
          GivePlayerMoneyEx(i,2600+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          Salario = 2600+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
       }
       else if(PlayerInfo[i][Org] == GOE)
       {
          format(string,sizeof(string), "Salário: $%d",2000+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          SendClientMessage(i,GreyColor,string);
          GivePlayerMoneyEx(i,2000+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          Salario = 2000+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
       }
       else if(PlayerInfo[i][Org] == Exercito)
       {
          format(string,sizeof(string), "Salário: $%d",2400+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          SendClientMessage(i,GreyColor,string);
          GivePlayerMoneyEx(i,2400+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          Salario = 2400+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
       }
       else if(PlayerInfo[i][Org] == FAB)
       {
          format(string,sizeof(string), "Salário: $%d",2200+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          SendClientMessage(i,GreyColor,string);
          GivePlayerMoneyEx(i,2200+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          Salario = 2200+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
       }
       else if(PlayerInfo[i][Org] == FARC)
       {
          format(string,sizeof(string), "Salário: $%d",1800+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          SendClientMessage(i,GreyColor,string);
          GivePlayerMoneyEx(i,1800+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          Salario = 1800+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
       }
       else if(PlayerInfo[i][Org] == AlQaeda)
       {
          format(string,sizeof(string), "Salário: $%d",1770+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          SendClientMessage(i,GreyColor,string);
          GivePlayerMoneyEx(i,1770+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          Salario = 1770+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
       }
       else if(PlayerInfo[i][Org] == Governo)
       {
          format(string,sizeof(string), "Salário: $%d",3000+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          SendClientMessage(i,GreyColor,string);
          GivePlayerMoneyEx(i,2500+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          Salario = 3000+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
       }
       else if(PlayerInfo[i][Org] == Reporter)
       {
          format(string,sizeof(string), "Salário: $%d",2000+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          SendClientMessage(i,GreyColor,string);
          GivePlayerMoneyEx(i,2000+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          Salario = 2000+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
       }
       else if(PlayerInfo[i][Org] == Assassino)
       {
          format(string,sizeof(string), "Salário: $%d",900+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          SendClientMessage(i,GreyColor,string);
          GivePlayerMoneyEx(i,1200+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          Salario = 900+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
       }
           else if(PlayerInfo[i][Org] == Mafia)
       {
          format(string,sizeof(string), "Salário: $%d",1800+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          SendClientMessage(i,GreyColor,string);
          GivePlayerMoneyEx(i,1800+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          Salario = 1800+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
       }
           else if(PlayerInfo[i][Org] == Yakuza)
       {
          format(string,sizeof(string), "Salário: $%d",1800+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          SendClientMessage(i,GreyColor,string);
          GivePlayerMoneyEx(i,1800+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          Salario = 1800+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
       }
         else if(PlayerInfo[i][Org] == TorcidaJovemDoGremio || PlayerInfo[i][Org] == RacaRubroNegra || PlayerInfo[i][Org] == ManchaVerde || PlayerInfo[i][Org] == GavioesDaFiel)
       {
          format(string,sizeof(string), "Salário: $%d",700+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          SendClientMessage(i,GreyColor,string);
          GivePlayerMoneyEx(i,1200+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]));
          Salario = 1200+(PlayerInfo[i][Level]*9*PlayerInfo[i][Cargo]);
       }
       if(PlayerInfo[i][VipLevel] == 3) format(string,sizeof(string),"Salário VIP: $%d",450*GetPlayerScore(i)),SendClientMessage(i,GreyColor,string),GivePlayerMoneyEx(i,450*GetPlayerScore(i));
       if(PlayerInfo[i][VipLevel] > 0) format(string,sizeof(string),"Saldo: $%d, Juros: 0,%d",PlayerInfo[i][BankMoney]+PlayerInfo[i][BankMoney]*PlayerInfo[i][VipLevel]*3/100,PlayerInfo[i][VipLevel]*3),SendClientMessage(i,GreyColor,string),PlayerInfo[i][BankMoney] = PlayerInfo[i][BankMoney]+PlayerInfo[i][BankMoney]*PlayerInfo[i][VipLevel]*3/1000;
       else format(string,sizeof(string),"Saldo: $%d, Juros: 0,1",PlayerInfo[i][BankMoney]+PlayerInfo[i][BankMoney]*1/100),SendClientMessage(i,GreyColor,string),PlayerInfo[i][BankMoney] = PlayerInfo[i][BankMoney]+PlayerInfo[i][BankMoney]*1/1000;
       format(string,sizeof(string),"Conta de Energia: %d, Imposto: -$%d",StoreInfo[8][Price]*25*GetPlayerScore(i),ImpostoInfo[0][Porcentagem]/100),SendClientMessage(i,GreyColor,string),StoreInfo[8][MoneyInBox]+=StoreInfo[8][Price]*25*GetPlayerScore(i),GivePlayerMoneyEx(i,-StoreInfo[8][Price]*25*GetPlayerScore(i)),GivePlayerMoneyEx(i,-Salario*ImpostoInfo[0][Porcentagem]/100);
       SendClientMessage(i,GreyColor,"*~>================================<~*");
       
       ImpostoInfo[0][Acumulado] += Salario*ImpostoInfo[0][Porcentagem]/100;
       
       
       PlayerInfo[i][Respect] ++;
       if(PlayerInfo[i][VipLevel] == 3) PlayerInfo[i][Respect] ++;

       PlayerInfo[i][GameTime] ++;
       
       PlayerInfo[i][JobTime]--;
       if(PlayerInfo[i][NecessaryToUp] <= PlayerInfo[i][Respect])
       {
          PlayerInfo[i][Level] ++;
          SetPlayerScore(i,PlayerInfo[i][Level]);
          PlayerInfo[i][Respect] = 0;
          PlayerInfo[i][NecessaryToUp] = PlayerInfo[i][NecessaryToUp]+PlayerInfo[i][Level];
          format(string,sizeof(string),"[BRP]: Você ganhou 1 nível! Parabéns agora você tem nivel %d.",PlayerInfo[i][Level]);
          SendClientMessage(i,BroadCastColor,string);
       }
       
        new randomchance = random(100);
        if(randomchance >= 85 && PlayerInfo[i][Doenca] == 0)
        {
            if(PlayerInfo[i][Vacina] < 1)
            {
                if(randomchance >= 85 && randomchance <= 95)
                {
                        SendClientMessage(i,BroadCastWarningColor,"===> Você está se sentindo mal, é melhor ir se consultar no hospital.");
                        PlayerInfo[i][Doenca] = 1;
                }
                else if(randomchance >=96 && randomchance <= 98)
                {
                        SendClientMessage(i,BroadCastWarningColor,"===> Você está se sentindo mal, é melhor ir se consultar no hospital.");
                        PlayerInfo[i][Doenca] = 2;
                }
                else if(randomchance > 98)
                {
                        SendClientMessage(i,BroadCastWarningColor,"===> Você está se sentindo mal, é melhor ir se consultar no hospital.");
                        PlayerInfo[i][Doenca] = 3;
                }
            }
            else PlayerInfo[i][Vacina] --;
        }
        
        if(PlayerInfo[i][Aplicacao] > 0)
        {
            new randomapl = random(3);
            new randomapl2 = random(3);
            
            new lucro = randomapl - randomapl2;
            
            PlayerInfo[i][Aplicacao] += PlayerInfo[i][Aplicacao]*lucro/100;
        }
    }
  }

GMX
Code:
    if(strcmp(cmd, "/gmx", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	  		if (PlayerInfo[playerid][Admin] >= 4)
			{
                GameModeExit();
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "[BRP]: Voce não está autorizado a usar o comando!");
			}
		}
		return 1;
	}

Não sei que code botar no da venda de casas qualquer coisa pede que eu boto

/darlider
Code:
if(strcmp(cmd,"/darlider",true)==0)
    {
  	    new tmp[256];
		tmp = strtok(cmdtext,idx);
		new id = ReturnUser(tmp);

		new tmp2[256];
		tmp2 = strtok(cmdtext,idx);
		new Liderid = strval(tmp2);

   		if(PlayerInfo[playerid][Admin] < 5)  SendClientMessage(playerid,ErrorColor,"[BRP]: Você não é Administrador Scripter.");
 	 	else if(!strlen(tmp)||Liderid > 16 || Liderid < 0 || !strlen(tmp2))	SendClientMessage(playerid,ErrorColor,"[BRP]: /darlider [IDPlayer] [LiderID (0~16)]");
	    else if(!IsPlayerConnected(id))	 SendClientMessage(playerid,ErrorColor,"[BRP]: Jogador Disconectado.");
 	  	else
		{
		 new FilePathInfo[256];

		 if(Liderid == Mendigo)
		 {
		  format(FilePathInfo,sizeof(FilePathInfo),"%sOrg%d.ini",OrgFiles,PlayerInfo[id][Org]);
		  dini_Set(FilePathInfo,"Lider","Ninguém");
		  LoadOrgInfo(PlayerInfo[id][Org]);
		 }
		 else
		 {
		 format(FilePathInfo,sizeof(FilePathInfo),"%sOrg%d.ini",OrgFiles,Liderid);
		 dini_Set(FilePathInfo,"Lider",PlayerInfo[id][Name]);
		 LoadOrgInfo(Liderid);
		 }


		 PlayerInfo[id][Org] = Liderid;
		 PlayerInfo[id][Lider] = Liderid;
		 PlayerInfo[id][Cargo] = 6;
		 RemovePlayerFromVehicle(playerid);

		 if(Liderid == Mendigo) SetPlayerSkin(id,94),PlayerInfo[playerid][Lider] = 0;
		 else if(Liderid == PM) SetPlayerSkin(id,PMSkin[0]),PlayerInfo[playerid][Lider] = 1;
		 else if(Liderid == PF) SetPlayerSkin(id,PFSkin[0]),PlayerInfo[playerid][Lider] = 2;
		 else if(Liderid == GOE) SetPlayerSkin(id,GOESkin[0]),PlayerInfo[playerid][Lider] = 3;
		 else if(Liderid == Exercito) SetPlayerSkin(id,ExercitoSkin[0]),PlayerInfo[playerid][Lider] = 4;
		 else if(Liderid == FAB) SetPlayerSkin(id,FABSkin[0]),PlayerInfo[playerid][Lider] = 5;
		 else if(Liderid == FARC) SetPlayerSkin(id,FARCSkin[0]),PlayerInfo[playerid][Lider] = 6;
		 else if(Liderid == AlQaeda) SetPlayerSkin(id,AlQaedaSkin[0]),PlayerInfo[playerid][Lider] = 7;
		 else if(Liderid == Governo) SetPlayerSkin(id,GovernoSkin[0]),PlayerInfo[playerid][Lider] = 8;
		 else if(Liderid == Assassino) SetPlayerSkin(id,AssassinoSkin[0]),PlayerInfo[playerid][Lider] = 9;
		 else if(Liderid == Reporter) SetPlayerSkin(id,ReporterSkin[0]),PlayerInfo[playerid][Lider] = 10;
		 else if(Liderid == Yakuza) SetPlayerSkin(id,YakuzaSkin[0]),PlayerInfo[playerid][Lider] = 11;
		 else if(Liderid == Mafia) SetPlayerSkin(id,MafiaSkin[0]),PlayerInfo[playerid][Lider] = 12;
		 else if(Liderid == GavioesDaFiel) SetPlayerSkin(id,GavioesSkin[0]),PlayerInfo[playerid][Lider] = 13;
		 else if(Liderid == ManchaVerde) SetPlayerSkin(id,MVSkin[0]),PlayerInfo[playerid][Lider] = 14;
		 else if(Liderid == TorcidaJovemDoGremio) SetPlayerSkin(id,TJGSkin[0]),PlayerInfo[playerid][Lider] = 15;
		 else if(Liderid == RacaRubroNegra) SetPlayerSkin(id,RRNSkin[0]),PlayerInfo[playerid][Lider] = 16;

		 PlayerInfo[id][Skin] = GetPlayerSkin(id);

         new Float:x,Float:y,Float:z;
         GetPlayerPos(id,x,y,z);
         SetPlayerPos(id,x,y,z);

		 SpawnPlayer(id);

		 SendClientMessage(id,BroadCastColor,"[BRP]: Você foi setado como líder de uma organização.");
		 SendClientMessage(playerid,BroadCastColor,"[BRP]: Você setou este player como líder de uma Org.");
		}
    	return 1;
    }

Eu imploro por ajuda de vcs, please!
Lós is offline   Reply With Quote
Old 12/02/2011, 09:41 PM   #5
Power_GamerX
Huge Clucker
 
Join Date: Nov 2010
Posts: 282
Reputation: 0
Default Re: [Ajuda] Payday fechando samp-server

aff's baixa outro GM
__________________

A Pressa é Inimiga da Perfeiçao
Power_GamerX is offline   Reply With Quote
Old 12/02/2011, 09:51 PM   #6
Macintosh
High-roller
 
Macintosh's Avatar
 
Join Date: Aug 2010
Location: Somewhere Far *User Type: Administrator
Posts: 3,630
Reputation: 115
Default Re: [Ajuda] Payday fechando samp-server

Não tenho ideia do que seja o problema.
__________________

"É tão estranho
Os bons morrem jovens
Assim parece ser, quando me lembro de você
Que acabou indo embora, cedo demais
"

Os bons morrem jovens (Legião Urbana).

Um dia a gente irá se encontrar numa bem melhor brother

Macintosh is offline   Reply With Quote
Old 12/02/2011, 09:54 PM   #7
[AF]Junior
Gangsta
 
[AF]Junior's Avatar
 
Join Date: Jun 2010
Posts: 671
Reputation: 7
Default Re: [Ajuda] Payday fechando samp-server

1º passo: Exclui essa merda.
2º passo: Crie outro e seja feliz.
[AF]Junior is offline   Reply With Quote
Old 12/02/2011, 09:59 PM   #8
Macintosh
High-roller
 
Macintosh's Avatar
 
Join Date: Aug 2010
Location: Somewhere Far *User Type: Administrator
Posts: 3,630
Reputation: 115
Default Re: [Ajuda] Payday fechando samp-server

Falar é fácil quero ver fazer.
__________________

"É tão estranho
Os bons morrem jovens
Assim parece ser, quando me lembro de você
Que acabou indo embora, cedo demais
"

Os bons morrem jovens (Legião Urbana).

Um dia a gente irá se encontrar numa bem melhor brother

Macintosh is offline   Reply With Quote
Old 12/02/2011, 11:08 PM   #9
Lós
High-roller
 
Lós's Avatar
 
Join Date: Sep 2010
Location: Casterly Rock
Posts: 4,382
Reputation: 508
Default Re: [Ajuda] Payday fechando samp-server

Tá, conselho [Aceito] Algum GM que vcs possam me indicar? RP/RPG
Lós is offline   Reply With Quote
Old 13/02/2011, 12:00 AM   #10
Macintosh
High-roller
 
Macintosh's Avatar
 
Join Date: Aug 2010
Location: Somewhere Far *User Type: Administrator
Posts: 3,630
Reputation: 115
Default Re: [Ajuda] Payday fechando samp-server

/pawno/new.pwn
Esse é ótimo ^^
__________________

"É tão estranho
Os bons morrem jovens
Assim parece ser, quando me lembro de você
Que acabou indo embora, cedo demais
"

Os bons morrem jovens (Legião Urbana).

Um dia a gente irá se encontrar numa bem melhor brother

Macintosh is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[AJUDA] erro 19 no samp-server Vit_Gontijo Português/Portuguese 2 08/02/2011 03:58 PM
[Ajuda] Sampserver fechando um tempo depois que eu abro @ReeF Português/Portuguese 11 03/02/2011 03:52 PM
[Ajuda] Fechando sozinho iShady Português/Portuguese 13 20/12/2010 11:43 AM
[ajuda]Erros na abertura do samp-server tshadow Português/Portuguese 3 09/07/2010 07:02 PM
[AJUDA] Samp server 0.3 Baddark2131 Português/Portuguese 2 19/04/2010 09:12 AM


All times are GMT. The time now is 07:12 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.