pawn Код:
if(dialogid == 6740){
if(response == 1){
if(IsNumeric(inputtext) && IsPlayerConnected(StrToInt(inputtext))){
new aname[MAX_PLAYER_NAME];
new string2[256];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
new pname[MAX_PLAYER_NAME];
GetPlayerName(StrToInt(inputtext), pname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
format(file2, sizeof(file2), PASTA_CONTAS, pname);
format(string, sizeof(string), "/Clans/clan%d.ini", dini_Int(file, "Clan"));
if(dini_Int(file2, "SClan") == 0){
format(string2, sizeof(string2), "Vocк foi convidado para entrar no clan:\n%s\nPara Aceitar clique em Aceitar, para recusar clique em Recusar", dini_Get(string, "Nome"));
convt[StrToInt(inputtext)] = dini_Int(file, "Clan");
ShowPlayerDialog(StrToInt(inputtext),6738 , DIALOG_STYLE_MSGBOX, "Convite de Clan", string2, "Aceitar", "Recusar");
SendClientMessage(playerid, Verde, "(~) Convite Enviado!");
} else {
SendClientMessage(playerid, Vermelho, "(~) Este player jб tem clan!");
}
} else {
SendClientMessage(playerid, Vermelho, "(~) ID invбlido!");
}
}
}