27.06.2015, 22:22
Olб eu tenho um gamemode e vou pegar um sistema de registro de outro gamemode como faзo para mudar? Em prinicipio este й o codigo do gamemode que eu pretendo mudar:
Quero mudar para este
Quote:
} if(dialogid == 2) { if(response == 0) { SendClientMessage(playerid, TEAM_VAGOS_COLOR, "Ok, Caso queira se registrar posteriormente use /registrar [senha]!"); return true; } if(response >= 1) { if(strlen(inputtext) == 0) { PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0); SetPlayerCameraPos(playerid, 1427.597, -1751.993, 86.024); SetPlayerCameraLookAt(playerid, 1431.131, -1747.288, 79.93; SetPlayerPos(playerid, 1409.3607,-1713.2329,30.7422); SetPlayerInterior(playerid, 0); ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD, "Fazendo Seu Registro:", "{FFFFFF}Seja Bem Vindo(a)\n {00EE00}Brasil {FFD700}Mega {00B2EE}Life{FFFFFF}.\n\nStatus da Conta: {FF0000}Nгo Registrada\n\n{FFFFFF}Use: {00FF00}Nome_Sobrenome\n\n{FFFFFF}Exemplo: {ffff00}Guru_Josh{FFFFFF}\n\n\n www.{FFD700}pbrasilgames{FFFFFF}.forumeiros.com\n\ n\n{FFFFFF}Digite Sua Senha Para Registrar !", "Registrar", "Cancelar"); return true; } format(gstring,sizeof(gstring),"/registrar %s",inputtext); OnPlayerCommandText(playerid,gstring); return true; } return true; } |
Quote:
// == Login Login[playerid][0] = TextDrawCreate(197.000000, 80.000000, " Login"); TextDrawBackgroundColor(Login[playerid][0], 255); TextDrawFont(Login[playerid][0], 3); TextDrawLetterSize(Login[playerid][0], 0.540000, 1.69999; TextDrawColor(Login[playerid][0], -1); TextDrawSetOutline(Login[playerid][0], 1); TextDrawSetProportional(Login[playerid][0], 1); TextDrawUseBox(Login[playerid][0], 1); TextDrawBoxColor(Login[playerid][0], 255); TextDrawTextSize(Login[playerid][0], 299.000000, 0.000000); TextDrawSetSelectable(Login[playerid][0], 0); Login[playerid][1] = TextDrawCreate(220.000000, 138.000000, "Nick: ~w~"); TextDrawBackgroundColor(Login[playerid][1], 255); TextDrawFont(Login[playerid][1], 2); TextDrawLetterSize(Login[playerid][1], 0.260000, 1.899999); TextDrawColor(Login[playerid][1], -1); TextDrawSetOutline(Login[playerid][1], 0); TextDrawSetProportional(Login[playerid][1], 1); TextDrawSetShadow(Login[playerid][1], 1); TextDrawSetSelectable(Login[playerid][1], 0); Login[playerid][2] = TextDrawCreate(220.000000, 170.000000, "ID: ~w~00"); TextDrawBackgroundColor(Login[playerid][2], 255); TextDrawFont(Login[playerid][2], 2); TextDrawLetterSize(Login[playerid][2], 0.389999, 1.899999); TextDrawColor(Login[playerid][2], -1); TextDrawSetOutline(Login[playerid][2], 0); TextDrawSetProportional(Login[playerid][2], 1); TextDrawSetShadow(Login[playerid][2], 1); TextDrawSetSelectable(Login[playerid][2], 0); Login[playerid][3] = TextDrawCreate(235.000000, 248.000000, " JOGAR"); TextDrawBackgroundColor(Login[playerid][3], 255); TextDrawFont(Login[playerid][3], 1); TextDrawLetterSize(Login[playerid][3], 0.500000, 1.499999); TextDrawColor(Login[playerid][3], -1); TextDrawSetOutline(Login[playerid][3], 1); TextDrawSetProportional(Login[playerid][3], 1); TextDrawUseBox(Login[playerid][3], 1); TextDrawBoxColor(Login[playerid][3], 102); TextDrawTextSize(Login[playerid][3], 403.000000, 10.000000); TextDrawSetSelectable(Login[playerid][3], true); Login[playerid][4] = TextDrawCreate(235.000000, 292.000000, " FORUM"); TextDrawBackgroundColor(Login[playerid][4], 255); TextDrawFont(Login[playerid][4], 1); TextDrawLetterSize(Login[playerid][4], 0.500000, 1.499999); TextDrawColor(Login[playerid][4], -1); TextDrawSetOutline(Login[playerid][4], 1); TextDrawSetProportional(Login[playerid][4], 1); TextDrawUseBox(Login[playerid][4], 1); TextDrawBoxColor(Login[playerid][4], 102); TextDrawTextSize(Login[playerid][4], 403.000000, 10.000000); TextDrawSetSelectable(Login[playerid][4], true); Login[playerid][5] = TextDrawCreate(235.000000, 337.000000, " CREDITOS"); TextDrawBackgroundColor(Login[playerid][5], 255); TextDrawFont(Login[playerid][5], 1); TextDrawLetterSize(Login[playerid][5], 0.500000, 1.499999); TextDrawColor(Login[playerid][5], -1); TextDrawSetOutline(Login[playerid][5], 1); TextDrawSetProportional(Login[playerid][5], 1); TextDrawUseBox(Login[playerid][5], 1); TextDrawBoxColor(Login[playerid][5], 102); TextDrawTextSize(Login[playerid][5], 403.000000, 10.000000); TextDrawSetSelectable(Login[playerid][5], true); PlayAudioStreamForPlayer(playerid, "http://live.hunterfm.com/live"); SelectTextDraw(playerid, 0xFF0000FF); for(new i = 0; i < sizeof(Fundo); i++) TextDrawShowForPlayer(playerid, Fundo[i]); |