Error en OnPlayerEnterDynamicArea :C
#1

El problema es el siguiente:
Al entrar a la Zona de Stunt me sale "Zona ~n~~n~___________Stunt" que es el textdraw, todo bien alli, pero al entrar a otra zona como la de Drift me sale "Zona ~n~~n~___________Stunt" en ves la del Drift, sea la zona q estй solo me sale la primera, la del Stunt, que hago mal :C


PHP код:
public OnPlayerEnterDynamicArea(playeridareaid)
{
    if(
areaid == ZonaStunts1 || Zona1Stunts1)
    {
      
PlayerTextDrawColor(playerid,MiZona[playerid], 65535);
      
PlayerTextDrawSetString(playerid,MiZona[playerid],"Zona ~n~~n~___________Stunt");
      
PlayerTextDrawShow(playeridMiZona[playerid]);
      
ResetPlayerWeapons(playerid);
      
GivePlayerWeapon(playerid,1,1);
      return 
1;
    }
    
    else if(
areaid == ZonaDrift1 || Zona1Drift1 || Zona2Drift1)
    {
      
PlayerTextDrawColor(playerid,MiZona[playerid], 0xFFFF00FF);
      
PlayerTextDrawSetString(playerid,MiZona[playerid],"Zona ~n~~n~___________Drift");
      
PlayerTextDrawShow(playeridMiZona[playerid]);
      
ResetPlayerWeapons(playerid);
      
GivePlayerWeapon(playerid,1,1);
      return 
1;
    }
    
    else if(
areaid == ZonaDesmadre1 || Zona1Desmadre1)
    {
      
PlayerTextDrawColor(playerid,MiZona[playerid], 0xFF0000FF);
      
PlayerTextDrawSetString(playerid,MiZona[playerid],"Zona ~n~~n~___________Mortal");
      
PlayerTextDrawShow(playeridMiZona[playerid]);
      
ResetPlayerWeapons(playerid);
      
GivePlayerWeapon(playerid,38,900);
      
GivePlayerWeapon(playerid,35,100);
      
GivePlayerWeapon(playerid,16,100);
      
GivePlayerWeapon(playerid,24,900);
      
GivePlayerWeapon(playerid,32,900);
      
GivePlayerWeapon(playerid,1,1);
      return 
1;
    }
    return 
1;
}
    
public 
OnPlayerLeaveDynamicArea(playeridareaid)
{
      if(
areaid == ZonaStunts1 || Zona1Stunts1 || ZonaDrift1 || Zona1Drift1 || Zona2Drift1)
      {
        
PlayerTextDrawHide(playeridMiZona[playerid]);
        
GivePlayerWeapon(playerid,22,300);
        
GivePlayerWeapon(playerid,25,300);
        
GivePlayerWeapon(playerid,30,300);
        
GivePlayerWeapon(playerid,32,300);
        
GivePlayerWeapon(playerid,41,500);
        
GivePlayerWeapon(playerid,4,1);
        
GivePlayerWeapon(playerid,15,1);
        
GivePlayerWeapon(playerid,1,1);
        return 
1;
      }
      
      else if(
areaid == ZonaDesmadre1 || Zona1Desmadre1)
      {
        
PlayerTextDrawHide(playeridMiZona[playerid]);
        
ResetPlayerWeapons(playerid);
        
SetPlayerRandomArms(playerid);
        return 
1;
      }
    return 
1;

Reply


Messages In This Thread
Error en OnPlayerEnterDynamicArea :C - by dannypanda05 - 29.01.2014, 01:18
Respuesta: Error en OnPlayerEnterDynamicArea :C - by Onfroi - 29.01.2014, 01:32
Onfroi - by dannypanda05 - 29.01.2014, 01:56
Respuesta: Error en OnPlayerEnterDynamicArea :C - by Swedky - 29.01.2014, 23:35
Re: Error en OnPlayerEnterDynamicArea :C - by admantis - 29.01.2014, 23:41
Respuesta: Re: Error en OnPlayerEnterDynamicArea :C - by dannypanda05 - 31.01.2014, 00:24

Forum Jump:


Users browsing this thread: 4 Guest(s)