Y seguimos con los problemas D:
#1

Bueno, ya arregle todos los errores del thread anterior, pero ahora me surgue un problema que no tengo ni puta idea de como arreglarlo.

Pasa que cuando me conecto, pongo mi pass y todo y pongo conectar, no spawnea, aparecen las flechicas esas "<<" ">>" y el botoncito "spawn" y no spawnea el personaje

No logro hacer que el pj spawnee jaja

Alguna ayuda? ^^

Les dejo el GM

pawn Код:
//----------------------------------------------------------
//
//  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

#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

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(playerid);



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;
    PasosDeRegistro[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(playerid)
{
   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)
       {

         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)
       {
          if((strcmp("20",tmp,true,strlen(tmp)) == 0) && (strlen(tmp) == strlen("20")))
          {
              PlayerInfo[playerid][pEdad] = 20;
              new string[60];
              format(string, sizeof(string), "Tu edad es: %d.", PlayerInfo[playerid][pEdad]);
              SendClientMessage(playerid, COLOR_WHITE, string);
              PasosDeRegistro[playerid] = 3;
              return 0;
          }
          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(playerid));
      }
      }
       

 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);
        SpawnPlayer(playerid);
    }
    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);
          }
          SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
          SpawnPlayer(playerid);
      }

    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{

   dcmd(spawneame,9,cmdtext);

return 0;
}

dcmd_spawneame(playerid, params[])
{
   #pragma unused params
   if(gPlayerLogged[playerid] == 1) {
   SendClientMessage(playerid,COLOR_GREEN, "Has spawneado");
   SpawnPlayer(playerid); } 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);
   
    AddPlayerClass(1,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(2,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(269,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(270,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(271,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(272,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(47,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(48,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(49,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(50,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(51,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(52,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(53,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(54,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(55,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(56,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(57,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(58,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(68,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(69,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(70,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(71,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(72,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(73,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(75,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(76,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(78,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(79,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(80,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(81,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(82,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(83,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(84,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(85,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(87,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(88,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(89,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(91,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(92,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(93,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(95,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(96,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(97,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(98,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
    AddPlayerClass(99,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-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 1;
    }
    if(GetPlayerWeapon(playerid) == WEAPON_MINIGUN) {
        Kick(playerid);
        return 1;
    }
    if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) {
        Kick(playerid);
        return 1;
    }
   
    /* //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;
        SpawnPlayer(playerid);
    }
    if (dialogid == 2)
    {
        new name[MAX_PLAYER_NAME], file[256];
        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));
            PlayerInfo[playerid][pFaccion] = dini_Int(file, "Faccion");
            PlayerInfo[playerid][pSkin] = dini_Int(file,"Skin");
            PlayerInfo[playerid][pTut] = dini_Int(file,"Tut");
            PlayerInfo[playerid][pReg] = dini_Int(file,"Registrado");
            PlayerInfo[playerid][pSexo] = dini_Int(file,"Sexo");
            PlayerInfo[playerid][pEdad] = dini_Int(file,"Edad");
            SendClientMessage(playerid,COLOR_RED, "Servidor > Has logueado con exito.");
            SpawnPlayer(playerid);
        }
    }
    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++;
    }
}

//----------------------------------------------------------
Reply


Messages In This Thread
Y seguimos con los problemas D: - by H7_Tr0m - 29.10.2010, 19:04
Respuesta: Y seguimos con los problemas D: - by MrDeath537 - 29.10.2010, 21:23
Re: Y seguimos con los problemas D: - by SuperMarioRol - 29.10.2010, 21:28
Re: Respuesta: Y seguimos con los problemas D: - by H7_Tr0m - 30.10.2010, 00:18

Forum Jump:


Users browsing this thread: 1 Guest(s)