11.09.2010, 02:05
pega esse de um gm que tenho aqui
Код:
if(dialogid == 2)// Dialogo de Registro { if(response == 0) { //GetPlayerName(playerid,plname,sizeof(plname)); //format(string,sizeof(string),"%s Seja Bem Vindo ao\nLaw and Crime RPG Digite sua Senha para Registrar!",plname); //ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Registrar", string, "Registrar", "Sair"); SendClientMessage(playerid, COLOR_GRAD2, "Vocк pode registrar pelo o /registrar"); return 1; } if(response >= 1) { if(strlen(inputtext) == 0) { GetPlayerName(playerid,plname,sizeof(plname)); format(string,sizeof(string),"%s Seja Bem Vindo ao\nLaw and Crime RPG Digite sua Senha para Registrar!",plname); ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Registrar", string, "Registrar", "Sair"); return 1; } if(strval(inputtext) > 0) { format(string,sizeof(string),"/registrar %d",strval(inputtext)); OnPlayerCommandText(playerid,string); return 1; } format(string,sizeof(string),"/registrar %s",inputtext); OnPlayerCommandText(playerid,string); return 1; } return 1; } if(dialogid == 3)// Dialogo da Escolha de Sexo { if(response == 0) { if(PlayerInfo[playerid][pTut] >= 1) { SendClientMessage(playerid, COLOR_YELLOW2, "Ok, vocк e Mulher."); PlayerInfo[playerid][pSex] = 2; return 1; } OnPlayerText(playerid,"mulher"); return 1; } if(response == 1) { if(PlayerInfo[playerid][pTut] >= 1) { SendClientMessage(playerid, COLOR_YELLOW2, "Ok, vocк e Homem."); PlayerInfo[playerid][pSex] = 1; return 1; } OnPlayerText(playerid,"homem"); return 1; } if(response > 1) { format(string,sizeof(string),"~b~ Seja Bem Vindo~n~~w~Agora voce tem que preencher~n~Algumas informacoes necessarias~n~Para completar seu Cadastro.~n~E depois acompanhara,~n~O Tutorial Esplicando como~n~Ser um bom Jogador."); TextDrawSetString(TutuText[playerid], string); TextDrawHideForPlayer(playerid, TutuBox[playerid]); TextDrawHideForPlayer(playerid, TutuText[playerid]); TextDrawShowForPlayer(playerid, TutuBox[playerid]); TextDrawShowForPlayer(playerid, TutuText[playerid]); ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX, "Law and Crime RPG", "Escolha Seu Sexo Por Favor.", "Masculino", "Femino"); return 1; } return 1; } if(dialogid == 4)// Dialogo da Escolha de Idade { if(response == 0) { OnPlayerText(playerid,"28/02/1996"); return 1; } if(response == 1) { OnPlayerText(playerid,"Law and Crime RPG"); return 1; } return 1; } if(dialogid == 5)// Dialogo da Escolha da Cidade { if(response == 0) { OnPlayerText(playerid,"Law and Crime RPG"); return 1; } if(response == 1) { if(listitem == 0) { OnPlayerText(playerid,"ls"); return 1; } if(listitem == 1) { OnPlayerText(playerid,"lv"); return 1; } if(listitem == 2) { SendClientMessage(playerid, COLOR_GRAD1, "Cidade Bloqueada no Momento!"); ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Law and Crime RPG", "Los Santos\nLas Venturas\nSan Fierro", "Confirmar", "Cancelar"); //OnPlayerText(playerid,"sf"); return 1; } } return 1; }