02.07.2012, 23:56
Bem Galera eu Acho que esta tendo algo de errado no meu gm mais isso eu acho e de uns 75% de chance de acontecer. pois quando o player entra normal o server da bange e o player seta no meio do san andreas ou no meio do mapa san andreas.e com chance de vim com admin me ajudem por favor
Irei por o Sistema de Registro (PS: e o Pelomenos oque eu acho)
A Define do Login Box
Pastas Com as Dinis
As Boas Vindas dos Players. quamdo o player conecta com tudo ^^
Bem E isso galera espero que voces me ajudem
Irei por o Sistema de Registro (PS: e o Pelomenos oque eu acho)
A Define do Login Box
Код:
//menus #define REGISTRO 9
Код:
//REGISTRO #define PASTA_CONTAS "/Contas/%s.ini" //Diretуrio onde as contas sгo salvas #define PASTA_CASAS "/Casas/%s.ini" //Diretуrio onde as contas sгo salvas #define PASTA_PROP "/Props/%s.ini" //Diretуrio onde as contas sгo salvas #define PASTA_CONCE "/Conce/%s.ini" //Diretуrio onde as contas sгo salvas #define PASTA_CLANS "/Clans/%s.ini" //Diretуrio onde as contas sгo salvas #define PASTA_Int "/Interiores/%s.ini" //Diretуrio onde as contas sгo salvas #define MAX_SENHA 16 //Tamanho mбximo da senha #define MIN_SENHA 4 //Tamanho mнnimo da senha
Код:
public tuto2(playerid){ TextDrawHideForPlayer(playerid, tutorial); SetTimerEx("tuto3", 7000, 0, "d", playerid); } forward World(playerid); public World(playerid){ TextDrawShowForPlayer(playerid, WORLD); SetTimerEx("RPGG", 2000, 0, "d", playerid); PlayerPlaySound(playerid, 1134, 0, 0, 0); } forward RPGG(playerid); public RPGG(playerid){ TextDrawShowForPlayer(playerid, RPG); SetTimerEx("v10", 2000, 0, "d", playerid); PlayerPlaySound(playerid, 1134, 0, 0, 0); } forward v10(playerid); public v10(playerid){ TextDrawShowForPlayer(playerid, V100); PlayerPlaySound(playerid, 1133, 0, 0, 0); SetTimerEx("Login", 2000, 0, "d", playerid); } forward Login(playerid); public Login(playerid){ PlayerPlaySound(playerid, 1076, 0.0, 0.0, 0.0); TextDrawHideForPlayer(playerid, mote); TextDrawHideForPlayer(playerid, NEW); TextDrawHideForPlayer(playerid, WORLD); TextDrawHideForPlayer(playerid, RPG); TextDrawHideForPlayer(playerid, V100); new Pname[MAX_PLAYER_NAME]; new string[256]; SendClientMessage(playerid, 0xFF0000AA,"~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•"); format(string, sizeof(string), "• Seja bem-vindo(a) %s ao servidor ", Pname); SendClientMessage(playerid,COLOR_WHITE, string); SendClientMessage(playerid, 0xD50000AA,"• Para ver os crйditos: /creditos"); SendClientMessage(playerid, Branco,"• Para obter ajuda e informaзгo: /ajuda "); SendClientMessage(playerid, 0xD50000AA,"• Para ler o tutorial: /tutorial "); SendClientMessage(playerid, Branco,"• Para ver a lista de comandos: /comandos "); SendClientMessage(playerid, 0xFF0000AA,"~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•~•"); GameTextForPlayer(playerid,"~b~B~y~r~w~a~b~s~y~i~g~l ~b~R~w~e~g~a~p~l ~w~G~y~a~p~m~w~e ~g~R~w~p~b~g", 5000, 6); new aname[MAX_PLAYER_NAME]; GetPlayerName(playerid, aname, MAX_PLAYER_NAME); format(file, sizeof(file), PASTA_CONTAS, aname); SetPlayerSkin(playerid,dini_Int(file, "Skin")); format(file, sizeof(file), PASTA_CONTAS, aname); if(PlayerInfo[playerid][Logged] == 0){ if(!dini_Exists(file)) { format(STRX, sizeof(STRX), "\nDigite uma senha e clique em \"Registrar\"."); ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "REGISTRO", STRX, "Registrar", "Sair"); SendClientMessage(playerid, 0x43CD80AA, "* Vocк ainda nгo й registrado, registre-se para continuar!"); } if(dini_Exists(file)) { format(STRX, sizeof(STRX), "Bem-vindo(a) novamente, %s! Logue-se em sua conta.\n\nDigite sua senha e clique em \"Logar\".", aname); ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "CONTA", STRX, "Logar", "Sair"); SendClientMessage(playerid, 0x43CD80AA, "* Vocк jб й registrado em nosso server, logue em sua conta para continuar!"); } } } public tuto3(playerid){ TextDrawHideForPlayer(playerid, tutorial5); TextDrawHideForPlayer(playerid, topblack); TextDrawHideForPlayer(playerid, bottomblack); dini_IntSet(file, "novato", 2); }
