|
C:\Documents and Settings\Romero\Escritorio\samp03bsvr_R2_win32\gam emodes\serverdeprueba.pwn(130) : error 017: undefined symbol "playerid" C:\Documents and Settings\Romero\Escritorio\samp03bsvr_R2_win32\gam emodes\serverdeprueba.pwn(132) : error 017: undefined symbol "playerid" C:\Documents and Settings\Romero\Escritorio\samp03bsvr_R2_win32\gam emodes\serverdeprueba.pwn(134) : error 017: undefined symbol "playerid" C:\Documents and Settings\Romero\Escritorio\samp03bsvr_R2_win32\gam emodes\serverdeprueba.pwn(136) : error 017: undefined symbol "playerid" C:\Documents and Settings\Romero\Escritorio\samp03bsvr_R2_win32\gam emodes\serverdeprueba.pwn(13 : error 017: undefined symbol "playerid"C:\Documents and Settings\Romero\Escritorio\samp03bsvr_R2_win32\gam emodes\serverdeprueba.pwn(140) : error 017: undefined symbol "playerid" C:\Documents and Settings\Romero\Escritorio\samp03bsvr_R2_win32\gam emodes\serverdeprueba.pwn(141) : error 017: undefined symbol "playerid" C:\Documents and Settings\Romero\Escritorio\samp03bsvr_R2_win32\gam emodes\serverdeprueba.pwn(142) : error 017: undefined symbol "playerid" C:\Documents and Settings\Romero\Escritorio\samp03bsvr_R2_win32\gam emodes\serverdeprueba.pwn(143) : error 017: undefined symbol "playerid" C:\Documents and Settings\Romero\Escritorio\samp03bsvr_R2_win32\gam emodes\serverdeprueba.pwn(15 : warning 219: local variable "idx" shadows a variable at a preceding levelC:\Documents and Settings\Romero\Escritorio\samp03bsvr_R2_win32\gam emodes\serverdeprueba.pwn(159) : warning 219: local variable "tmp" shadows a variable at a preceding level C:\Documents and Settings\Romero\Escritorio\samp03bsvr_R2_win32\gam emodes\serverdeprueba.pwn(182) : error 006: must be assigned to an array C:\Documents and Settings\Romero\Escritorio\samp03bsvr_R2_win32\gam emodes\serverdeprueba.pwn(223) : error 035: argument type mismatch (argument 1) C:\Documents and Settings\Romero\Escritorio\samp03bsvr_R2_win32\gam emodes\serverdeprueba.pwn(490) : warning 204: symbol is assigned a value that is never used: "string" C:\Documents and Settings\Romero\Escritorio\samp03bsvr_R2_win32\gam emodes\serverdeprueba.pwn(533) : warning 203: symbol is never used: "FaccionPlayer" C:\Documents and Settings\Romero\Escritorio\samp03bsvr_R2_win32\gam emodes\serverdeprueba.pwn(533) : warning 203: symbol is never used: "Principal" C:\Documents and Settings\Romero\Escritorio\samp03bsvr_R2_win32\gam emodes\serverdeprueba.pwn(533) : warning 203: symbol is never used: "Velocidad" C:\Documents and Settings\Romero\Escritorio\samp03bsvr_R2_win32\gam emodes\serverdeprueba.pwn(533) : warning 203: symbol is never used: "gArmySpawns" C:\Documents and Settings\Romero\Escritorio\samp03bsvr_R2_win32\gam emodes\serverdeprueba.pwn(533) : warning 203: symbol is never used: "gMedicalSpawns" C:\Documents and Settings\Romero\Escritorio\samp03bsvr_R2_win32\gam emodes\serverdeprueba.pwn(533) : warning 203: symbol is never used: "gPoliceSpawns" C:\Documents and Settings\Romero\Escritorio\samp03bsvr_R2_win32\gam emodes\serverdeprueba.pwn(533) : warning 203: symbol is never used: "gRandomSpawns_LasVenturas" C:\Documents and Settings\Romero\Escritorio\samp03bsvr_R2_win32\gam emodes\serverdeprueba.pwn(533) : warning 203: symbol is never used: "gRandomSpawns_LosSantos" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 11 Errors. |
//----------------------------------------------------------
//
// ZOMBIE RP SA-MP BY RODAM
//
//
//----------------------------------------------------------
#include <a_samp>
#include <core>
#include <float>
#include "../include/cositas.inc"
#include "../include/algunosspawns.inc"
#include <dini>
#include <dudb>
#pragma tabsize 0
#pragma unused ret_memcpy
//----------------------------------------------------------
#define ROJO2 0xFF8080FF
#define BLANCO 0xEFEFF7AA
#define VERDE_ADMIN 0x00D300A0
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD3 0xCBCCCEFF
#define COLOR_GRAD4 0xD8D8D8FF
#define COLOR_GRAD5 0xE3E3E3FF
#define COLOR_GRAD6 0xF0F0F0FF
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x9EC73DAA
#define COLOR_GROVE 0x00FF00FF
#define COLOR_RED 0xAA3333AA
#define COLOR_LIGHTRED 0xFF6347AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define COLOR_YELLOW 0xDABB3EAA
#define COLOR_YELLOW2 0xF5DEB3AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_FADE1 0xE6E6E6E6
#define COLOR_FADE2 0xC8C8C8C8
#define COLOR_FADE3 0xAAAAAAAA
#define COLOR_FADE4 0x8C8C8C8C
#define COLOR_FADE5 0x6E6E6E6E
#define COLOR_PURPLE 0xC2A2DAAA
#define COLOR_DBLUE 0x08EC1FF
#define COLOR_OOCD 0x839DBEFF
#define COLOR_ALLDEPT 0xFF8282AA
#define COLOR_NEWS 0x458E1DAA
//#define COLOR_OOC 0xE0FFFFAA
#define CELESTE 0x6F8F0FF
#define COLOR_OOC 0xB1C8FBAA
#define COLOR_NORMAL_PLAYER 0xFF4444FF
new total_vehicles_from_files=0;
new Text:Velocidad[MAX_PLAYERS];
new Text:txtTiempo;
new Text:Principal;
new hora,minuto;
new timestr[32];
new PasosDeRegistro[MAX_PLAYERS];
forward ActualizarHora();
forward Tutorial();
new FaccionPlayer[MAX_PLAYERS];
enum pInfo
{
pAdminLevel,
pCash,
pScore,
pFaccion,
pSkin,
pTut,
pReg,
pSexo,
pEdad,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
new gPlayerLogged[MAX_PLAYERS];
#define SERVER_USER_FILE "users/%s.ini"
//----------------------------------------------------------
main()
{
print("\n---------------------------------------");
print("Zombie RP SAMP by Rodam\n");
print("---------------------------------------\n");
}
//----------------------------------------------------------
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,"~w~Bienvenido a Zombie RP SA-MP",6000,6);
new nombre[MAX_PLAYER_NAME];
GetPlayerName(playerid, nombre, sizeof(nombre));
new string[128];
format(string, sizeof(string), "Bienvenido a Zombie RP SA-MP, %s.", nombre);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "*** %s [%d] ha entrado a Zombie RP SA-MP. ***", nombre, playerid);
SendClientMessageToAll(COLOR_GREY, string);
gPlayerLogged[playerid] = 0;
new file[256];
format(file, sizeof(file), SERVER_USER_FILE, nombre);
if (!dini_Exists(file))
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "No estas registrado", "Bienvenido, no estas registrado, coloca tu contrasena aqui abajo", "Registrar", "Salir");
}
if(fexist(file))
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Estas registrado", "Bienvenido, estas registrado, coloca tu contrasena aqui abajo", "Conectar", "Salir");
}
return 1;
}
public Tutorial()
{
if(PasosDeRegistro[playerid] == 1)
{
GameTextForPlayer(playerid, "~g~Elige tu sexo.~n~~g~Escribe Masculino o Femenino.",10000, 0);
}
else if(PasosDeRegistro[playerid] == 2)
{
GameTextForPlayer(playerid, "~g~Escribe tu edad.",10000, 0);
}
else if(PasosDeRegistro[playerid] == 3)
{
GameTextForPlayer(playerid, "~g~Escoge tu faccion.", 6000,0);
SendClientMessage(playerid, COLOR_YELLOW, "Hay 3 facciones en el servidor.");
SendClientMessage(playerid, COLOR_YELLOW, "Republicanos, Zombies o Rebeldes.");
SendClientMessage(playerid, COLOR_YELLOW, "Escribe la faccion a la cual quieres entrar.");
}
return 1;
}
public OnPlayerText(playerid, text[])
{
if(PlayerInfo[playerid][pReg] == 0)
{
new idx;
new tmp[256];
tmp = strtok(text,idx);
if(PasosDeRegistro[playerid] == 1)
{
new idx;
new tmp[256];
tmp = strtok(text,idx);
if((strcmp("Masculino",tmp,true,strlen(tmp)) == 0) && (strlen(tmp) == strlen("masculino")))
{
PlayerInfo[playerid][pSexo] = 1;
SetPlayerSkin(playerid,26);
SendClientMessage(playerid, COLOR_WHITE, "Has elegido el sexo Masculino.");
PasosDeRegistro[playerid] = 2;
return 0;
}
else if((strcmp("Femenino",tmp,true,strlen(tmp)) == 0) && (strlen(tmp) == strlen("femenino")))
{
PlayerInfo[playerid][pSexo] = 2;
SetPlayerSkin(playerid,13);
SendClientMessage(playerid, COLOR_WHITE, "Has elegido el sexo Femenino.");
PasosDeRegistro[playerid] = 2;
return 0;
}
return 0;
}
else if(PasosDeRegistro[playerid] == 2)
{
new edad;
edad = text;
PlayerInfo[playerid][pEdad] = edad;
new string[128];
format(string, sizeof(string), "Tu edad es : %d",PlayerInfo[playerid][pEdad]);
SendClientMessage(playerid, COLOR_WHITE, string);
PasosDeRegistro[playerid] = 3;
return 0;
}
else if(PasosDeRegistro[playerid] == 3)
{
if((strcmp("Republicanos",tmp,true,strlen(tmp)) == 0) && (strlen(tmp) == strlen("republicanos")))
{
PlayerInfo[playerid][pFaccion] = 1;
if(PlayerInfo[playerid][pSexo] == 1) { PlayerInfo[playerid][pSkin] = 287; SetPlayerSkin(playerid, 287); }
else if(PlayerInfo[playerid][pSexo] == 2) { PlayerInfo[playerid][pSkin] = 191; SetPlayerSkin(playerid,191); }
SendClientMessage(playerid, COLOR_WHITE, "Has elegido la faccion de los Republicanos.");
SetPlayerColor(playerid, COLOR_LIGHTBLUE);
PlayerInfo[playerid][pReg] = 1;
return 0;
}
else if((strcmp("Zombies",tmp,true,strlen(tmp)) == 0) && (strlen(tmp) == strlen("zombies")))
{
PlayerInfo[playerid][pFaccion] = 2;
if(PlayerInfo[playerid][pSexo] == 1) { PlayerInfo[playerid][pSkin] = 239; SetPlayerSkin(playerid,239); }
else if(PlayerInfo[playerid][pSexo] == 2) { PlayerInfo[playerid][pSkin] = 131; SetPlayerSkin(playerid, 131); }
SendClientMessage(playerid, COLOR_WHITE, "Has elegido la faccion de los Zombies.");
SetPlayerColor(playerid, COLOR_RED);
PlayerInfo[playerid][pReg] = 1;
return 0;
}
else if((strcmp("Rebeldes",tmp,true,strlen(tmp)) == 0) && (strlen(tmp) == strlen("rebeldes")))
{
PlayerInfo[playerid][pFaccion] = 3;
if(PlayerInfo[playerid][pSexo] == 1) { PlayerInfo[playerid][pSkin] = 103; SetPlayerSkin(playerid, 103); }
else if(PlayerInfo[playerid][pSexo] == 2) { PlayerInfo[playerid][pSkin] = 195; SetPlayerSkin(playerid, 195); }
SendClientMessage(playerid, COLOR_WHITE, "Has elegido la faccion de los Rebeldes.");
SetPlayerColor(playerid,COLOR_GREY);
PlayerInfo[playerid][pReg] = 1;
return 0;
}
GameTextForPlayer(playerid, "~r~Registro Completado!", 3000,0);
KillTimer("Tutorial");
}
}
return 1;
}
//----------------------------------------------------------
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) return 1;
new randSpawn = 0;
if(PlayerInfo[playerid][pReg] == 0)
{
TogglePlayerControllable(playerid, 0);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerPos(playerid, 268.4540,1883.2980,-30.0938);
SendClientMessage(playerid, COLOR_YELLOW, "Para poder jugar tenes que configurar tu personaje primero.");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_YELLOW, "Cuando acabes de configurar tu personaje, seras llevado a la historia");
PasosDeRegistro[playerid] = 1;
SetTimer("Tutorial", 10000, false);
}
else
{
TogglePlayerControllable(playerid, 1);
SetPlayerPos(playerid,gRandomSpawns_SanFierro[randSpawn][0],gRandomSpawns_SanFierro[randSpawn][1],gRandomSpawns_SanFierro[randSpawn][2]);
SetPlayerInterior(playerid,0);
TogglePlayerClock(playerid,0);
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,200);
if(PlayerInfo[playerid][pFaccion] == 1)
{
GivePlayerWeapon(playerid, WEAPON_M4, 500);
}
else if(PlayerInfo[playerid][pFaccion] == 2)
{
GivePlayerWeapon(playerid, WEAPON_KATANA, 1);
GivePlayerWeapon(playerid, 18, 10);
}
else if(PlayerInfo[playerid][pFaccion] == 3)
{
GivePlayerWeapon(playerid, 22, 200);
GivePlayerWeapon(playerid, 4, 1);
}
}
return 1;
}
//----------------------------------------------------------
public OnPlayerDeath(playerid, killerid, reason)
{
new playercash;
if(killerid == INVALID_PLAYER_ID)
{
ResetPlayerMoney(playerid);
ResetPlayerWeapons(playerid);
}
else
{
playercash = GetPlayerMoney(playerid);
if(playercash > 0)
{
GivePlayerMoney(killerid, playercash);
ResetPlayerMoney(playerid);
}
new armakiller = GetPlayerWeapon(playerid);
new ammokiller = GetPlayerAmmo(playerid);
GivePlayerWeapon(killerid, armakiller, ammokiller);
if(PlayerInfo[killerid][pFaccion] == PlayerInfo[playerid][pFaccion])
{
SendClientMessage(killerid, COLOR_GRAD2, "Has matado a alguien de tu faccioon!");
SendClientMessage(killerid, COLOR_GRAD2, "Se te han sacado $1500 como multa.");
GivePlayerMoney(killerid, -1500);
}
}
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
if(IsPlayerNPC(playerid)) return 1;
PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
SpawnPlayer(playerid);
return 0;
}
//----------------------------------------------------------
public OnGameModeInit()
{
SetGameModeText("DeathCamp SA-MP");
ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
ShowNameTags(1);
SetNameTagDrawDistance(40.0);
EnableStuntBonusForAll(0);
DisableInteriorEnterExits();
SetWeather(2);
txtTiempo = TextDrawCreate(605.0,25.0," Hora: 00:00");
TextDrawUseBox(txtTiempo, 0);
TextDrawFont(txtTiempo, 3);
TextDrawSetShadow(txtTiempo,0);
TextDrawSetOutline(txtTiempo,2);
TextDrawBackgroundColor(txtTiempo,0x000000FF);
TextDrawColor(txtTiempo,0xFFFFFFFF);
TextDrawAlignment(txtTiempo,3);
TextDrawLetterSize(txtTiempo,0.5,1.5);
ActualizarHora();
SetTimer("ActualizarHora",1000 * 60,1);
// SPECIAL
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/trains.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/pilots.txt");
// LAS VENTURAS
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_law.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_airport.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_gen.txt");
// SAN FIERRO
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_law.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_airport.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_gen.txt");
// LOS SANTOS
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_law.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_airport.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_inner.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_outer.txt");
// OTHER AREAS
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/whetstone.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/bone.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/flint.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/tierra.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/red_county.txt");
printf("Total vehicles from files: %d",total_vehicles_from_files);
return 1;
}
//----------------------------------------------------------
public OnPlayerUpdate(playerid)
{
if(!IsPlayerConnected(playerid)) return 0;
if(GetPlayerInterior(playerid) != 0 && GetPlayerWeapon(playerid) != 0) {
SetPlayerArmedWeapon(playerid,0);
return 0;
}
if(GetPlayerWeapon(playerid) == WEAPON_MINIGUN) {
Kick(playerid);
return 0;
}
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) {
Kick(playerid);
return 0;
}
/* //VELOCIMETRO que no funca D: usamos uno ya hecho
new vehicleid,Float:speed_x, Float:speed_y,Float:speed_z,Float:final_speed,speed_string[128], final_speed_int;
vehicleid = GetPlayerVehicleID(playerid);
if(vehicleid != 0)
{
GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z);
final_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y)+(speed_z*speed_z))*136.666667;
final_speed_int = floatround(final_speed,floatround_round);
format(speed_string,sizeof(speed_string),"Velocidad: %i Km/h",final_speed_int);
TextDrawSetString(Velocidad[playerid], speed_string);
}
else
{
TextDrawSetString(Velocidad[playerid], " ");
}*/
// FIN VELOCIMETRO
/* Animaciones
if(GetPlayerAnimationIndex(playerid))
{
new animlib[32];
new animname[32];
new msg[128+1];
GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,32,animname,32);
format(msg, 128, "anim: %s %s", animlib, animname);
SendClientMessage(playerid, 0xFFFFFFFF, msg);
} else {
SendClientMessage(playerid, 0xFFFFFFFF, "No Anim");
}*/
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), SERVER_USER_FILE, name);
if(gPlayerLogged[playerid] == 1)
{
dini_IntSet(file, "Score", PlayerInfo[playerid][pScore]);
dini_IntSet(file, "Money", PlayerInfo[playerid][pCash]);
dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel]);
dini_IntSet(file, "Faccion", PlayerInfo[playerid][pFaccion]);
dini_IntSet(file, "Skin", PlayerInfo[playerid][pSkin]);
dini_IntSet(file, "Tut", PlayerInfo[playerid][pTut]);
dini_IntSet(file, "Registrado", PlayerInfo[playerid][pReg]);
dini_IntSet(file, "Sexo", PlayerInfo[playerid][pSexo]);
dini_IntSet(file, "Edad", PlayerInfo[playerid][pEdad]);
}
gPlayerLogged[playerid] = 0;
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if (dialogid == 1)
{
new name[MAX_PLAYER_NAME], file[256], string[128];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), SERVER_USER_FILE, name);
if(!response) return Kick(playerid);
if (!strlen(inputtext)) return
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Hi your not registered", "Welcome, your not registered mate, input your registration pw below", "Register", "Leave");
dini_Create(file);
dini_IntSet(file, "Password", udb_hash(inputtext));
dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel] = 0);
dini_IntSet(file, "Money",PlayerInfo[playerid][pCash] = 500);
dini_IntSet(file, "Score",PlayerInfo[playerid][pScore] = 0);
dini_IntSet(file, "Faccion",PlayerInfo[playerid][pFaccion] = 0);
dini_IntSet(file, "Skin", PlayerInfo[playerid][pSkin] = 0);
dini_IntSet(file, "Tut", PlayerInfo[playerid][pTut] = 0);
dini_IntSet(file, "Registrado", PlayerInfo[playerid][pReg] = 0);
dini_IntSet(file, "Sexo", PlayerInfo[playerid][pReg] = 0);
dini_IntSet(file, "Edad", PlayerInfo[playerid][pReg] = 0);
format(string, 128, "Servidor > Te has registrado exitosamente con el nombre %s. Tu contrasena es %s.", name, inputtext);
SendClientMessage(playerid, COLOR_YELLOW, string);
gPlayerLogged[playerid] = 1;
}
if (dialogid == 2)
{
new name[MAX_PLAYER_NAME], file[256], string[128];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), SERVER_USER_FILE, name);
if(!response) return Kick(playerid);
if (!strlen(inputtext)) return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Bienvenido, estas registrado.", "Bienvenido, estas registrado. Coloca tu contrasena aqui abajo.", "Conectar", "Salir");
new tmp;
tmp = dini_Int(file, "Password");
if(udb_hash(inputtext) != tmp) {
SendClientMessage(playerid, COLOR_RED, "Contraseсa incorrecta.");
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Bienvenido, estas registrado", "Bienvenido, estas registrado. Coloca tu contrasena aqui abajo.", "Conectar", "Salir");
}
else
{
gPlayerLogged[playerid] = 1;
PlayerInfo[playerid][pAdminLevel] = dini_Int(file, "AdminLevel");
SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
GivePlayerMoney(playerid, dini_Int(file, "Money")-GetPlayerMoney(playerid));
SendClientMessage(playerid,COLOR_RED, "Servidor > Has logueado con exito.");
}
}
return 1;
}
public ActualizarHora()
{
gettime(hora,minuto);
format(timestr,sizeof(timestr),"Hora: %02d:%02d",hora,minuto);
TextDrawSetString(txtTiempo,timestr);
SetWorldTime(hora);
new x=0;
while(x!=MAX_PLAYERS)
{
if(IsPlayerConnected(x) && GetPlayerState(x) != PLAYER_STATE_NONE)
{
SetPlayerTime(x, hora, minuto);
}
x++;
}
}
//----------------------------------------------------------
undefined simbol "..."
local variable "..." shadows a variable at a preceding level
argument type mismatch (argument n)
symbol is assigned a value that is never used: "..."
symbol is never used: "..."

OnPlayerHealthChange(playerid, Float:oldhealth, Float:newhealth)
GateCheck()
|
Si cojes y aсades cosas de RP a un GM que no es de RP, te dara problemas...
|
|
Si cojes y aсades cosas de RP a un GM que no es de RP, te dara problemas...
|
