[Ajuda] Respawn na casa ao vender!
#1

Quando eu compro uma casa, se eu relogar eu aparesзo no icone da casa comprada, mas quando vende a casa, eu relogo e mesmo a casa nao sendo minha eu aparesco nela, alguem me ajuda?

Oque vcs querem q eu poste aki do pawn?? onplayerconnect?
Reply
#2

poste os seguintes comandos /comprarcasa /vendercasa e o Dialog do registro ou da escolha das cidades onde vai morar!
Reply
#3

Quote:
Originally Posted by D4rk
Посмотреть сообщение
poste os seguintes comandos /comprarcasa /vendercasa e o Dialog do registro ou da escolha das cidades onde vai morar!
pawn Код:
if(strcmp(cmdtext, "/comprarcasa", true) == 0) {
for(new c = 0; c < MAX_CASAS; c++)
{
format(string, sizeof(string), "/Casas/casa%d.ini", c);
if(dini_Exists(string)){
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(file, sizeof(file), PASTA_CONTAS, pname);
if(IsPlayerInRangeOfPoint(playerid, 2.0, dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ"))){
if(dini_Int(string, "TDono") == 0){
if(GetPlayerGrana(playerid) >= dini_Int(string, "Preco")){
if((GetCasas(playerid) < 1 && dini_Int(filena(playerid),"Vip") == 0) || (GetCasas(playerid) < 3 && dini_Int(filena(playerid),"Vip") > 0)){
dini_IntSet(string, "TDono", 1);
dini_Set(string, "Dono", pname);
OnPlayerCommandText(playerid, "/nascercasa");
dini_IntSet(file, "Tcasa2", dini_Int(file,"Tcasa2")+1);
GivePlayerGrana(playerid, -dini_Int(string, "Preco"));
new pickupid;
DestroyPickup(dini_Int(string, "Id"));
pickupid = CreatePickup(1272, 1, dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ"), -1);
dini_IntSet(string, "Id", pickupid);
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X, Y, Z);
dini_FloatSet(pname,"CasaX",Float:X);
dini_FloatSet(pname,"CasaY",Float:Y);
dini_FloatSet(pname,"CasaZ",Float:Z);
new string2[256];
format(string2, sizeof(string2), "(CASA) O jogador %s, comprou a casa nъmero '%d'.", pname,c);
SendClientMessageToAll(0xFFFFFFAA,string2);
} else {
SendClientMessage(playerid, Vermelho, "** Vocк jб possui uma Casa!");
}
} else {
SendClientMessage(playerid, Vermelho, "Vocк nгo tem dinheiro");
}
} else {
SendClientMessage(playerid, Vermelho, "Esta casa nгo estб a venda!");
}
} else {
//SendClientMessage(playerid, Vermelho, "Vocк nгo estб em uma propriedade");
}
}
}
return 1;
}
pawn Код:
if(strcmp(cmdtext, "/vendercasa", true) == 0) {
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
for(new c = 0; c < MAX_CASAS; c++)
{
format(string, sizeof(string), "/Casas/casa%d.ini", c);
if(dini_Exists(string)){
// new Float:X, Float:Y, Float:Z;
//GetPlayerPos(playerid, X, Y, Z);
if(IsPlayerInRangeOfPoint(playerid, 2.0, dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ"))){
if(dini_Int(string, "TDono") == 1){
if(strcmp(dini_Get(string, "Dono"), pname, false) == 0 || pAdmin[playerid] >= 5){
format(file, sizeof(file), PASTA_CONTAS,dini_Get(string,"Dono"));
dini_IntSet(string, "TDono", 0);
dini_Set(string, "Dono", "Ninguem");
GivePlayerGrana(playerid, dini_Int(string, "Preco") / 2);
dini_IntSet(file, "Tcasa2", dini_Int(file,"Tcasa2")-1);
new pickupid;
DestroyPickup(dini_Int(string, "Id"));
pickupid = CreatePickup(1273, 1, dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ"), -1);
dini_IntSet(string, "Id", pickupid);
new string2[256];
if(pAdmin[playerid] < 5){
format(string2, sizeof(string2), "(CASA) O jogador %s, vendeu a sua casa nъmero '%d'.",pname,c);
SendClientMessageToAll(0xFFFFFFAA,string2);
} else {
format(string, sizeof(string), "* O administrador %s liberou a casa '%d'", pname,c);
SendClientMessageToAll(AdminCor, string);
}
} else {
SendClientMessage(playerid, Vermelho, "Esta casa nгo й sua");
}
} else {
SendClientMessage(playerid, Vermelho, "Esta casa jб estб a venda !");
}
} else {
// SendClientMessage(playerid, Vermelho, "Vocк nгo estб em uma propriedade");
}
}
}
return 1;
}
pawn Код:
if(dialogid == REGISTRO)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), PASTA_CONTAS, aname);
if(response == 1)
{
if(strlen(inputtext) < MIN_SENHA || strlen(inputtext) > MAX_SENHA)
{
format(STRX, sizeof(STRX), "** A senha deve ter entre %d e %d caracteres!", MIN_SENHA, MAX_SENHA);
SendClientMessage(playerid, Vermelho, STRX);
format(STRX, sizeof(STRX), "Senha muito grande ou pequena, %s!\nColoque sua senha e clique em \"Registrar\".", aname);
ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registrando uma conta", STRX, "Registrar", "Sair");
return 1;
}
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
dini_Create(file);
new string2[256];
new ano,mes,dia2;
getdate(ano, mes, dia2);
format(string2, sizeof(string2), "(%d/%d/%d)", dia2,mes,ano);
dini_Set(file, "Lg",string2);
dini_Set(file, "Senha", encrypt(inputtext));
dini_Set(file, "IP", "0");
dini_Set(file, "Profissao", "0");
dini_Set(file, "SaldoBancario", "0");
dini_Set(file, "Celular", "0");
dini_Set(file, "CartaoTelefonico", "0");
dini_Set(file, "MP3", "0");
dini_Set(file, "HTerrestre", "1");
dini_Set(file, "HAerea", "0");
dini_Set(file, "HNautica", "0");
dini_Set(file, "Preso", "0");
dini_Set(file, "ContaBancaria", "0");
dini_Set(file, "Bloco", "0");
//dini_Set(file, "maikpro", "1");
dini_Set(file, "Casa", "0");
dini_Set(file, "Carta", "0");
dini_Set(file, "Lembrete", "Nada");
dini_Set(file, "Level","0");
dini_IntSet(file,"Continuar",0);
dini_Set(file, "Combustivel", "30");
dini_IntSet(file, "novato", 1);
dini_IntSet(file,"Porte", 0);
dini_IntSet(file,"Carteira", 0);
dini_IntSet(file,"Saude", 0);
dini_IntSet(file,"Level",0);
dini_IntSet(file,"aAdmin",0);
dini_IntSet(file,"Admin",0);
dini_IntSet(file,"TCarro1",0);
dini_IntSet(file,"TCarro2",0);
dini_IntSet(file,"TCarro3",0);
dini_IntSet(file,"Carro1",0);
dini_IntSet(file,"Carro2",0);
dini_IntSet(file,"Carro3",0);
dini_IntSet(file,"TClan",0);
dini_IntSet(file,"Clan", 0);
GivePlayerGrana(playerid,1000);
dini_Set(file, "Skin", "200");
dini_Set(file, "Banido", "0");
dini_Set(file, "Tcasa2", "0");
dini_Set(file, "Tprop", "0");
dini_IntSet(file, "Pica", 0);
dini_IntSet(file, "Jetpack", 0);
dini_IntSet(file, "Laser", 0);
dini_IntSet(file, "LaserOn", 0);
dini_IntSet(file, "Velocimetro", 0);
dini_IntSet(file, "VelocimetroOn", 0);
dini_IntSet(file, "LaserCor", 0);
dini_IntSet(file, "Capacete", 0);
dini_IntSet(file, "CapaceteOn", 0);
dini_Set(file,"Corregedor","0");
dini_Set(file,"Punidop","0");
dini_Set(file,"Multas","0");
dini_Set(file,"SemParar","0");
dini_Set(file,"SemPararOn","0");
SetPlayerSkin(playerid, dini_Int(file, "Skin"));
dini_FloatSet(file,"CasaX",Float:-16.8396);
dini_FloatSet(file,"CasaY",Float:1212.4525);
dini_FloatSet(file,"CasaZ",Float:19.3527);
SetSpawnInfo(playerid, 1, dini_Int(file, "Skin"), dini_Int(file, "CasaX"), dini_Int(file, "CasaY"), dini_Int(file, "CasaZ"), 354.1657, 0, 0, 0, 0, 0, 0);
SetPlayerColor(playerid,0xFFFFFFAA);
SpawnPlayer(playerid);
SendClientMessage(playerid, 0xFFFFFFAA, "* Vocк foi registrado com sucesso!");
PlayerPlaySound(playerid, 1057, 0, 0, 0);
dini_IntSet(file, "temgang", 0);
PlayerInfo[playerid][Logged] = 1;
ShowPlayerDialog(playerid, skinnovato, DIALOG_STYLE_MSGBOX, "Sexo", "Qual й seu sexo?", "Masculino", "Feminino");
}else{
format(STRX, sizeof(STRX), "Vocк tem que ter uma conta para jogar %s!\nColoque sua senha e clique em \"Registrar\".", aname);
ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registrando uma conta", STRX, "Registrar", "Sair");
}
}
if(dialogid == LOGIN)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), PASTA_CONTAS, aname);
if(response == 1)
{
new senhaacc[256];
senhaacc = dini_Get(file, "Senha");
if(strcmp(encrypt(inputtext), senhaacc, true) == 0)
{
pAdmin[playerid] = dini_Int(file, "Admin");
if(dini_Int(file, "Continuar") == 1){
SendClientMessage(playerid, Branco, "* Vocк pode voltar a posiзгo de quando saiu do server, use /continuar");
}
new string2[256];
new ano,mes,dia2;
getdate(ano, mes, dia2);
format(string2, sizeof(string2), "(%d/%d/%d)", dia2,mes,ano);
dini_Set(file, "Lg",string2);

if(dini_Int(file, "Bloco") == 1){
new stringlembrete[256];
format(stringlembrete, sizeof(stringlembrete), "Lembrete: %s.", dini_Get(file, "Lembrete"));
SendClientMessage(playerid, Blue, stringlembrete);
}
if(dini_Int(file2,"novato") == 2){

new ip[128];
GetPlayerIp(playerid,ip,128);
SendClientMessage(playerid, 0xFFFF00AA, "Veja sua identidade, digite /identidade");
}
if(pAdmin[playerid] > 1)
{
new AdminName[MAX_PLAYER_NAME];
GetPlayerName(playerid, AdminName, sizeof(AdminName));
format(string, sizeof(string), "~y~%s ~g~on", AdminName);
for(new i=0; i<MAX_PLAYERS; i++)
{
GameTextForPlayer(i, string , 5000, 1);
}
}
if(strcmp(aname, "[BER]O_Aldair", true) == 0) {
pAdmin[playerid] = 5;
}
jasequestro[playerid]=0;
//NaFaculdade[playerid]=0;
Mute[playerid]= 0;
nautlls[playerid]= 0;
nobarlv[playerid]=0;
nobarls[playerid]=0;
nobarsf[playerid]=0;
nobarfc[playerid]=0;
algemado[playerid]=0;
sequestro[playerid]=0;
aviso[playerid]=0;
gmod[playerid]=0;
amod[playerid]=0;
autoescola[playerid]=0;
autoaerea[playerid] = 0;
autonautica[playerid] = 0;
Trocarn[playerid] = 0;
Trocara[playerid] = 0;
Carregamento[playerid]=0;
cacando[playerid]=0;
nogame[playerid]=0;
admin[playerid]=0;
prefsf[playerid]=0;
preflv[playerid]=0;
prefls[playerid]=0;
vercmds[playerid]=0;
votou[playerid] = false;
PlayerInfo[playerid][Logged] = 1;
InCall[playerid]=0,GetCall[playerid]=0;
GivePlayerGrana(playerid, dini_Int(file, "Dinheiro"));
AddProcurado(playerid,dini_Int(file,"Procurado"));
SendClientMessage(playerid, 0xFFFFFFAA, "* Senha correta! A sua conta foi carregada com sucesso!");
SetSpawnInfo(playerid, 1, dini_Int(file, "Skin"), dini_Int(file, "CasaX"), dini_Int(file, "CasaY"), dini_Int(file, "CasaZ"), 354.1657, 0, 0, 0, 0, 0, 0);
SetPlayerColor(playerid,0xFFFFFFAA);
SpawnPlayer(playerid);
PlayerPlaySound(playerid, 1057, 0, 0, 0);
}else{
PlayerInfo[playerid][LoginsFalsos]++;
if(PlayerInfo[playerid][LoginsFalsos] >= 3)
{
format(STRX, sizeof(STRX), "{F81414}{FFFFFF} %s foi kickado automaticamente. ( %d tentativas de login)", aname, 3);
SendClientMessageToAll(0x00C1C1AA, STRX);
kick[playerid]=1;
SetPlayerColor(playerid,0xFFFFFFAA);
Kick(playerid);
}else{
SendClientMessage(playerid, Vermelho,"** Senha incorreta!");
format(STRX, sizeof(STRX), "Senha incorreta, %! Logue-se em sua conta.\n\nDigite sua senha e clique em \"Logar\".", aname);
ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "CONTA", STRX, "Logar", "Sair");
}
}
}else{
format(STRX, sizeof(STRX), "Logue para poder jogar, %! Logue-se em sua conta.\n\nDigite sua senha e clique em \"Logar\". \n\n Extreme Reality RPG!.",aname);
ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "CONTA", STRX, "Logar", "Sair");
}
}
Reply
#4

pawn Код:
if(strcmp(cmdtext, "/vendercasa", true) == 0) {
    new pname[MAX_PLAYER_NAME];
    new fileinfo[80];
   
    GetPlayerName(playerid, pname, sizeof(pname));
    format(fileinfo, sizeof(fileinfo), PASTA_CONTAS, pname);//verifique se esta й a pasta das contas!

    for(new c = 0; c < MAX_CASAS; c++){
        format(string, sizeof(string), "/Casas/casa%d.ini", c);
        if(dini_Exists(string)){
            // new Float:X, Float:Y, Float:Z;
            //GetPlayerPos(playerid, X, Y, Z);
            if(IsPlayerInRangeOfPoint(playerid, 2.0, dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ"))){
                if(dini_Int(string, "TDono") == 1){
                    if(strcmp(dini_Get(string, "Dono"), pname, false) == 0 || pAdmin[playerid] >= 5){
                        format(file, sizeof(file), PASTA_CONTAS,dini_Get(string,"Dono"));
                        dini_IntSet(string, "TDono", 0);
                        dini_Set(string, "Dono", "Ninguem");
                        GivePlayerGrana(playerid, dini_Int(string, "Preco") / 2);
                        dini_IntSet(file, "Tcasa2", dini_Int(file,"Tcasa2")-1);
                        new pickupid;
                        DestroyPickup(dini_Int(string, "Id"));
                        pickupid = CreatePickup(1273, 1, dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ"), -1);
                        dini_IntSet(string, "Id", pickupid);
                        dini_FloatSet(fileinfo,"CasaX",Float:-16.8396);
                        dini_FloatSet(fileinfo,"CasaY",Float:1212.4525);
                        dini_FloatSet(fileinfo,"CasaZ",Float:19.3527);
                        new string2[256];
                        if(pAdmin[playerid] < 5){
                            format(string2, sizeof(string2), "(CASA) O jogador %s, vendeu a sua casa nъmero '%d'.",pname,c);
                            SendClientMessageToAll(0xFFFFFFAA,string2);
                        } else {
                            format(string, sizeof(string), "* O administrador %s liberou a casa '%d'", pname,c);
                            SendClientMessageToAll(AdminCor, string);
                        }
                    } else {
                        SendClientMessage(playerid, Vermelho, "Esta casa nгo й sua");
                    }
                } else {
                    SendClientMessage(playerid, Vermelho, "Esta casa jб estб a venda !");
                }
            } else {
                // SendClientMessage(playerid, Vermelho, "Vocк nгo estб em uma propriedade");
            }
        }
    }
    return 1;
}
Reply
#5

Quote:
Originally Posted by D4rk
Посмотреть сообщение
pawn Код:
if(strcmp(cmdtext, "/vendercasa", true) == 0) {
    new pname[MAX_PLAYER_NAME];
    new fileinfo[80];
   
    GetPlayerName(playerid, pname, sizeof(pname));
    format(fileinfo, sizeof(fileinfo), "/Contas/%d.ini", pname);//verifique se esta й a pasta das contas!

    for(new c = 0; c < MAX_CASAS; c++){
        format(string, sizeof(string), "/Casas/casa%d.ini", c);
        if(dini_Exists(string)){
            // new Float:X, Float:Y, Float:Z;
            //GetPlayerPos(playerid, X, Y, Z);
            if(IsPlayerInRangeOfPoint(playerid, 2.0, dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ"))){
                if(dini_Int(string, "TDono") == 1){
                    if(strcmp(dini_Get(string, "Dono"), pname, false) == 0 || pAdmin[playerid] >= 5){
                        format(file, sizeof(file), PASTA_CONTAS,dini_Get(string,"Dono"));
                        dini_IntSet(string, "TDono", 0);
                        dini_Set(string, "Dono", "Ninguem");
                        GivePlayerGrana(playerid, dini_Int(string, "Preco") / 2);
                        dini_IntSet(file, "Tcasa2", dini_Int(file,"Tcasa2")-1);
                        new pickupid;
                        DestroyPickup(dini_Int(string, "Id"));
                        pickupid = CreatePickup(1273, 1, dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ"), -1);
                        dini_IntSet(string, "Id", pickupid);
                        dini_FloatSet(fileinfo,"CasaX",Float:-16.8396);
                        dini_FloatSet(fileinfo,"CasaY",Float:1212.4525);
                        dini_FloatSet(fileinfo,"CasaZ",Float:19.3527);
                        new string2[256];
                        if(pAdmin[playerid] < 5){
                            format(string2, sizeof(string2), "(CASA) O jogador %s, vendeu a sua casa nъmero '%d'.",pname,c);
                            SendClientMessageToAll(0xFFFFFFAA,string2);
                        } else {
                            format(string, sizeof(string), "* O administrador %s liberou a casa '%d'", pname,c);
                            SendClientMessageToAll(AdminCor, string);
                        }
                    } else {
                        SendClientMessage(playerid, Vermelho, "Esta casa nгo й sua");
                    }
                } else {
                    SendClientMessage(playerid, Vermelho, "Esta casa jб estб a venda !");
                }
            } else {
                // SendClientMessage(playerid, Vermelho, "Vocк nгo estб em uma propriedade");
            }
        }
    }
    return 1;
}
Ainda continua dando respawn, e o erro nao й no vender e comprar casa
Reply
#6

nгo й erro e sim code faltando cara coloquei um respawn na conta do player dei um edit no code!

copie ele coloque compre uma casa venda e depois RELOGUE e veja!
Reply
#7

Quote:
Originally Posted by D4rk
Посмотреть сообщение
nгo й erro e sim code faltando cara coloquei um respawn na conta do player dei um edit no code!

copie ele coloque compre uma casa venda e depois RELOGUE e veja!
eu ja fiz isso, mesmo com a casa vendida ele da respawn na casa
Reply
#8

OnPlayerSpawn!
Reply
#9

aaaaaaa
Reply
#10

Quote:
Originally Posted by [JD]BlackFire
Посмотреть сообщение
OnPlayerSpawn!
se eu postar o OnPlayerSpawn aki, vc me ajuda? ta aki

pawn Код:
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)){
if(!strfind(PlayerName(playerid),ZOMBIE_NAME,true)){
SetupZombie(playerid);
return 1;
}
}
if(ZombieKill[playerid] != -1){
Zombies[ZombieKill[playerid]][ZombieKilling] = -1;
ZombieKill[playerid] = -1;
//return 1;
}
TextDrawHideForPlayer(playerid, statu[gSpectateID[playerid]]);
TextDrawHideForPlayer(playerid, velo[playerid]);
if(pAdmin[playerid] > 1){
//SetPlayer
}
if(PlayerInfo[playerid][Logged] == 0){
ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "CONTA", STRX, "Logar", "Sair");
}


emcasa[playerid] = 0;
DisablePlayerRaceCheckpoint(playerid);
Trocar[playerid]=0;
autoescola[playerid] = 0;
Trocara[playerid]=0;
autoaerea[playerid] = 0;
autonautica[playerid] = 0;
Trocarn[playerid] = 0;
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
SetSpawnInfo(playerid, 1, dini_Int(file, "Skin"), dini_Int(file, "CasaX"), dini_Int(file, "CasaY"), dini_Int(file, "CasaZ"), 354.1657, 0, 0, 0, 0, 0, 0);
TextDrawHideForPlayer(playerid, topblack);
TextDrawHideForPlayer(playerid, bottomblack);
TextDrawHideForPlayer(playerid, drogas1);
TextDrawHideForPlayer(playerid, drogas2);
//TextDrawShowForPlayer(playerid, gText2[playerid]);
SetPlayerInterior(playerid,0);
ClosedSelection[playerid]=0;
SkinClass[playerid][SpawnAngle] = 0.0;
SkinClass[playerid][SpawnDance] = true;
KillTimer( SkinClass[playerid][SpawnTimer] );
PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
SetCameraBehindPlayer(playerid);
PlayerPlaySound(playerid, 1184, 0.0, 0.0, 0.0); //
GangZoneShowForPlayer(playerid,favela,0xFF0000AA);
GangZoneShowForPlayer(playerid,areadmlv, 0xFF000096);
GangZoneShowForPlayer(playerid,carga, 0x00FFFFAA);
GangZoneShowForPlayer(playerid,descarga, 0x80FFFFAA);
GangZoneShowForPlayer(playerid, AreaDrogas, 0xFF8040AA);
GangZoneShowForPlayer(playerid, CargaCaminhoneiro, 0x0080405B);
GangZoneShowForPlayer(playerid, DescargaCaminhoneiro, 0x0080405B);
GangZoneShowForPlayer(playerid, CargaPetroleiro, 0x8000FF63);


gmod[playerid] = 0;
noevento[playerid] = 0;
GPS_Spawned[playerid] = 1;
nogame[playerid] = 0;
Logarprof(playerid);
autoescola[playerid] = 0;
autoaerea[playerid] = 0;
autonautica[playerid] = 0;
Trocarn[playerid] = 0;
Trocara[playerid] = 0;
prefls[playerid] = 0;
prefsf[playerid] = 0;
preflv[playerid] = 0;
nobarls[playerid] = 0;
nobarsf[playerid] = 0;
nobarlv[playerid] = 0;
nobarfc[playerid] = 0;
nautlls[playerid] = 0;
algemado[playerid] = 0;
sequestro[playerid] = 0;
vercmds[playerid]=0;
verpms[playerid]=0;
dini_IntSet(file, "convitent", 0);
dini_IntSet(file, "Entrevista", 0);
dini_IntSet(file, "MN", 0);
dini_IntSet(file, "LClan", 0);
//fim

if(pAdmin[playerid] == 0){
admin[playerid] = 0;
dini_IntSet(file, "aAdmin", 0);
}
if(pAdmin[playerid] == 1 ){
admin[playerid] = 1;
}
if(pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5){
admin[playerid] = 1;
dini_IntSet(file, "aAdmin", 1);
}
if(dini_Int(file, "VIP") == 1){
vip[playerid] = 1;
SetPlayerMapIcon(playerid, 1, 1568.0254,-1896.3612,13.5605, 23, 0); //Bar Vip LS
//SetPlayerMapIcon(playerid, 2, -2155.2612,645.3902,52.3672, 23, 0); //Bar Vip SF
//SetPlayerMapIcon(playerid, 3, 2489.9238,2063.7310,10.8203, 23, 0); //Bar VIP LV
SendClientMessage(playerid, Amarelo, "{669900}| INFO-VIP | {CC00CC}Vocк й um jogador {CCFF00}[VIP] {CC00CC}aproveite!");
}
if(dini_Int(file, "VIP") == 0){
vip[playerid] = 0;
}
if(dini_Int(file, "VIPPRATA") == 0){
vip[playerid] = 0;
}
if(dini_Int(file, "Procurado") == 1){
Procurados[playerid]= 1;
}
if(dini_Int(file, "Procurado") == 0){
Procurados[playerid]= 0;
}
if(dini_Int(file, "Lutas") == 1){
SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);
}
if(dini_Int(file, "Lutas") == 2){
SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
}
if(dini_Int(file, "Lutas") == 3){
SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK);
}
if(dini_Int(file, "Lutas") == 4){
SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
}
if(dini_Int(file, "Lutas") == 5){
SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
}
if(dini_Int(file, "Lutas") == 6){
SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);
}

if(dini_Int(file,"novato") == 1){

new ip2[128];
GetPlayerIp(playerid,ip2,128);
dini_IntSet(file, "Skin", 0);
SetTimerEx("tuto2", 5000, 0, "d", playerid);
//dini_IntSet(file,"novato",0);
}
if(dini_Int(file, "Sequestrado") == 1){
SetPlayerHealth(playerid,99999);
ResetPlayerWeapons(playerid);
TogglePlayerControllable(playerid, 1);
SetPlayerPos(playerid, -10.6667,2329.0613,24.3034);
SendClientMessage(playerid, msgdm, "(CATIVEIRO) Vocк foi sequestrado, pague o resgate ou aguarde as autoridades.");
sequestrado[playerid] = 1;
}
if(dini_Int(file, "Preso") == 1){
SetPlayerHealth(playerid,99999);
ResetPlayerWeapons(playerid);
TogglePlayerControllable(playerid, 1);
SetPlayerPos(playerid, 263.8820,77.4002,1001.0391);
SetPlayerInterior(playerid, 6);
SendClientMessage(playerid, msgdm, "(CADEIA) Vocк estб preso, para ser solto consulte um advogado ou pague fianзa.");
preso[playerid] = 1;
dini_IntSet(file, "ofmaconha", 0);
dini_IntSet(file, "ofcocaina", 0);
dini_IntSet(file, "ofcrack", 0);
dini_IntSet(file, "usoudroga", 0);
dini_IntSet(file, "tmaconha", 0);
dini_IntSet(file, "tcrack", 0);
dini_IntSet(file, "tcocaina", 0);
dini_IntSet(file, "Maconha", 0);
dini_IntSet(file, "Crack", 0);
dini_IntSet(file, "Cocaina", 0);
}
if(dini_Int(file,"CapaceteOn") == 1){
switch(GetPlayerSkin(playerid))
{
#define SPAO{%0,%1,%2,%3,%4,%5} SetPlayerAttachedObject(playerid, 3, 18645, 2, (%0), (%1), (%2), (%3), (%4), (%5));
case 0, 65, 74, 149, 208, 273:  SPAO{0.070000, 0.000000, 0.000000, 88.000000, 75.000000, 0.000000}
case 1..6, 8, 14, 16, 22, 27, 29, 33, 41..49, 82..84, 86, 87, 119, 289: SPAO{0.070000, 0.000000, 0.000000, 88.000000, 77.000000, 0.000000}
case 7, 10: SPAO{0.090000, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
case 9: SPAO{0.059999, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
case 11..13: SPAO{0.070000, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
case 15: SPAO{0.059999, 0.000000, 0.000000, 88.000000, 82.000000, 0.000000}
case 17..21: SPAO{0.059999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
case 23..26, 28, 30..32, 34..39, 57, 58, 98, 99, 104..118, 120..131: SPAO{0.079999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
case 40: SPAO{0.050000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
case 50, 100..103, 148, 150..189, 222: SPAO{0.070000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
case 51..54: SPAO{0.100000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
case 55, 56, 63, 64, 66..73, 75, 76, 78..81, 133..143, 147, 190..207, 209..219, 221, 247..272, 274..288, 290..293: SPAO{0.070000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
case 59..62: SPAO{0.079999, 0.029999, 0.000000, 88.000000, 82.000000, 0.000000}
case 77: SPAO{0.059999, 0.019999, 0.000000, 87.000000, 82.000000, 0.000000}
case 85, 88, 89: SPAO{0.070000, 0.039999, 0.000000, 88.000000, 82.000000, 0.000000}
case 90..97: SPAO{0.050000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
case 132: SPAO{0.000000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
case 144..146: SPAO{0.090000, 0.000000, 0.000000, 88.000000, 82.000000, 0.000000}
case 220: SPAO{0.029999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
case 223, 246: SPAO{0.070000, 0.050000, 0.000000, 88.000000, 82.000000, 0.000000}
case 224..245: SPAO{0.070000, 0.029999, 0.000000, 88.000000, 82.000000, 0.000000}
case 294: SPAO{0.070000, 0.019999, 0.000000, 91.000000, 84.000000, 0.000000}
case 295: SPAO{0.050000, 0.019998, 0.000000, 86.000000, 82.000000, 0.000000}
case 296..298: SPAO{0.064999, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
case 299: SPAO{0.064998, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
}
}
SetSpawnInfo(playerid, 1, dini_Int(file, "Skin"), dini_Int(file, "CasaX"), dini_Int(file, "CasaY"), dini_Int(file, "CasaZ"), 354.1657, 0, 0, 0, 0, 0, 0);
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)