Saltar al contenido

LucasCarvallo

Usuario
  • Contenido

    85
  • Ingreso

  • Última visita

Todo lo publicado por LucasCarvallo

  1. Hola, intento compilar pawno y me sale "Unable to execute compiler". Ya actualize el .Netframework y configure el .exe en compatibilidad windows 95 y sigue sin funcionar. Alguna otra solucion? Gracias
  2. Si
  3. ...
  4. Los guardo en un archivo de texto en scriptfiles
  5. Hola gente, tengo un problema, estoy haciendo un comando para banear a una persona Offline. El comando esta todo bien, pero a la hora de comprobar si el jugador esta conectado no lo hace Funcion del comando: Banear a un jugador poniendo el nombre, se comprueba si existe, se lo banea, y si esta conectado se le manda un mensaje, de lo contrario no se manda ningun mensaje (el jugador ya esta baneado). Pero lo que pasa es que manda el mensaje igualmente, este conectado o no. Ejemplo: Baneo a un usuario desconectado y me llega a mi el dialogo de que el usuario fue baneado (cosa de que deberia llegarle al otro usuario si esta conectado, en este caso esta desconectado, ese dialogo no deberia haber salido)
  6. dcmd_ingresar(playerid,params[]) { if (pInfo[playerid][Logueado] == 1) return SendClientMessage(playerid,COLOR_ROJO,"ERROR: Ya estas logueado!"); if (!udb_Exists(NombreJugador2(playerid))) return SendClientMessage(playerid,COLOR_ROJO,"ERROR: Esta cuenta no existe! Usa /registrar."); if (strlen(params)==0) return SendClientMessage(playerid,COLOR_ROJO,"USA: /ingresar [contraseña]'"); if (udb_CheckLogin(NombreJugador2(playerid),params)) { new arvhivoingresar[256], tmp3[100], string[128]; format(arvhivoingresar,sizeof(arvhivoingresar),"/TheSunZone/Usuarios/%s.sav",udb_encode(NombreJugador2(playerid)) ); GetPlayerIp(playerid,tmp3,100); dini_Set(arvhivoingresar,"ip",tmp3); CargarJugador(playerid); PlayerPlaySound(playerid,1057,0.0,0.0,0.0); if(pInfo[playerid][Nivel] > 0) { format(string,sizeof(string),"Has ingresado exitosamente. Nivel de Administrador: %d", pInfo[playerid][Nivel] ); return SendClientMessage(playerid,COLOR_VERDE,string); } else return SendClientMessage(playerid,COLOR_VERDE,"Has ingresado exitosamente"); } else { SendClientMessage(playerid,COLOR_ROJO,"ERROR: Contraseña incorrecta!"); } return 1; }
  7. Veran, estuve creando un sistema de registro e ingreso, ya lo he terminado y no da ningun error en pawn, cuando pongo /registrar me registra todo bien en la carpeta, pero cuando intento iniciar sesion me dice contraseña incorrecta. Alguna idea?
  8. que raro... ya no sucede mas, pero en caso de que sucedaprobare con bool, de todas formas gracias Se puede cerrar tema
  9. Pero ya la reinicie igual mira public OnPlayerConnect(playerid) { EnEvento[playerid] = 0; //========================================================================== Pero debajo de la linea esa hay mas variables establecidas a 0, esto estorba?
  10. Lo tengo asi public OnPlayerConnect(playerid) { EnEvento[playerid] = 0; //==========================================================================
  11. Bien fenix, te felicito
  12. Que me dices?
  13. ocmd:salir(playerid, params[]) { if(EnEvento[playerid] == 1) { EnEvento[playerid] = 0; SpawnPlayer(playerid); SetPlayerArmour(playerid, 0); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); SendClientMessage(playerid,blue,"Has salido del evento exitosamente"); } else { SendClientMessage(playerid,red,"ERROR: No estas en evento!"); } return 1; }
  14. ocmd:entrar(playerid,params[]) { new nrandom = random(2); //========================================================================== if(EventoActivo == 1) { if(EnEvento[playerid] == 0) { if(nrandom == 0) { EnEvento[playerid] = 1; ResetPlayerWeapons(playerid); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); SetPlayerTeam(playerid,TEAM_Equipo1); SetPlayerPos(playerid, EventXE1, EventYE1, EventZE1); SetPlayerInterior(playerid, InteriorEvento); SetPlayerVirtualWorld(playerid, MundoEvento); SetPlayerSkin(playerid, SkinEquipo1); GivePlayerWeapon(playerid, Arma1Equipo1, Municion1Equipo1); GivePlayerWeapon(playerid, Arma2Equipo1, Municion2Equipo1); GivePlayerWeapon(playerid, Arma3Equipo1, Municion3Equipo1); GivePlayerWeapon(playerid, Arma4Equipo1, Municion4Equipo1); GivePlayerWeapon(playerid, Arma5Equipo1, Municion5Equipo1); SetPlayerColor(playerid, ColorEquipo1); return 1; } else if(nrandom == 1) { EnEvento[playerid] = 1; ResetPlayerWeapons(playerid); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); SetPlayerTeam(playerid,TEAM_Equipo2); SetPlayerPos(playerid, EventXE2, EventYE2, EventZE2); SetPlayerInterior(playerid, InteriorEvento); SetPlayerVirtualWorld(playerid, MundoEvento); SetPlayerSkin(playerid, SkinEquipo2); GivePlayerWeapon(playerid, Arma1Equipo2, Municion1Equipo2); GivePlayerWeapon(playerid, Arma2Equipo2, Municion2Equipo2); GivePlayerWeapon(playerid, Arma3Equipo2, Municion3Equipo2); GivePlayerWeapon(playerid, Arma4Equipo2, Municion4Equipo2); GivePlayerWeapon(playerid, Arma5Equipo2, Municion5Equipo2); SetPlayerColor(playerid, ColorEquipo2); return 1; } } else { SendClientMessage(playerid,red,"ERROR: Ya estas en el evento!"); } } else { SendClientMessage(playerid,red,"ERROR: No hay ningun evento activo!"); } return 1; }
  15. EnEvento[playerid] = 1; y la reinicie asi EnEvento[playerid] = 0;
  16. ya esta, pero sigue diciendo lo mismo
  17. Veran, hace unos dias estabamos probando mi sistema de eventos con un amigo, y cuando el pone /entrar entra al evento, pero cuando yo pongo /entrar dice que ya estoy en el evento. Alguno sabe que puede ser o como se soluciona?
  18. Muchas gracias neuz me salvaste de nuevo :) Ya se puede cerrar tema
  19. Aveces tenes que poner mas de una vez el comando porque no entra
  20. En realidad ahora me entra solo al equipo 1, el equipo 2 es como que no existe O.o Te dejo el code: ocmd:entrar(playerid,params[]) { new nrandom = random(2); //========================================================================== if(EventoActivo == 1) { if(EnEvento == 0) { if(nrandom == 1) { EnEvento = 1; ResetPlayerWeapons(playerid); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); SetPlayerTeam(playerid,TEAM_Equipo1); SetPlayerPos(playerid, EventXE1, EventYE1, EventZE1); SetPlayerInterior(playerid, InteriorEvento); SetPlayerVirtualWorld(playerid, MundoEvento); SetPlayerSkin(playerid, SkinEquipo1); GivePlayerWeapon(playerid, Arma1Equipo1, Municion1Equipo1); GivePlayerWeapon(playerid, Arma2Equipo1, Municion2Equipo1); GivePlayerWeapon(playerid, Arma3Equipo1, Municion3Equipo1); GivePlayerWeapon(playerid, Arma4Equipo1, Municion4Equipo1); GivePlayerWeapon(playerid, Arma5Equipo1, Municion5Equipo1); SetPlayerColor(playerid, ColorEquipo1); return 1; } else if(nrandom == 2) { EnEvento = 1; ResetPlayerWeapons(playerid); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); SetPlayerTeam(playerid,TEAM_Equipo2); SetPlayerPos(playerid, EventXE2, EventYE2, EventZE2); SetPlayerInterior(playerid, InteriorEvento); SetPlayerVirtualWorld(playerid, MundoEvento); SetPlayerSkin(playerid, SkinEquipo2); GivePlayerWeapon(playerid, Arma1Equipo2, Municion1Equipo2); GivePlayerWeapon(playerid, Arma2Equipo2, Municion2Equipo2); GivePlayerWeapon(playerid, Arma3Equipo2, Municion3Equipo2); GivePlayerWeapon(playerid, Arma4Equipo2, Municion4Equipo2); GivePlayerWeapon(playerid, Arma5Equipo2, Municion5Equipo2); SetPlayerColor(playerid, ColorEquipo2); return 1; } } else { SendClientMessage(playerid,red,"ERROR: Ya estas en el evento!"); } } else { SendClientMessage(playerid,red,"ERROR: No hay ningun evento activo!"); } return 1; }
  21. Espero respuesta...
  22. Hay un bug, cuando pongo /entrar no entra al evento...
  23. Pero eso es de spawns...
  24. No entiendo .________.
  25. Ya se... Como hago para que los equipos sean aleatorios? (Los equipos ya los tengo creados)
×
×
  • Crear nuevo...