Alguem sabe o pq minha skin buga ao dar spawn e o nick fica preto??
eu dou spawn com a skin certa, em menos de 1 segundos troca para a skin do CJ
eu já olhei as public e não encontrei nada, procurei por SetPlayerColor e nao achei nada da cor preta, eu acho que pode ser alguma include, mas o problema é que não está acontecendo para todo mundo e pelo que parece, aconteceu quando eu fui morto depois de estar "morto" que peguei uma skin de cj
Bom estou desenvolvendo um sistema de plantação e colheita para a profissão de Agricultor/Fazendeiro. Bom quando utilizo o comando /plantacao iniciar um percurso com 4 CPs para plantar, até ai tudo bem. Só não estou conseguindo que depois de 1 minutos apareça os Objetos no local aonde estava os CPs de plantar.
Se alguém poder mim da essa ajuda agradeço muito.
Código:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256], idx;
cmd = strtok(cmdtext, idx);
if (strcmp("/plantacao", cmdtext, true, 4) == 0)
{
SendClientMessage(playerid, -1,"{1e90ff}| INFO | {FFFFFF}Você iniciou o trabalho, vá até o primeiro ponto para plantar!");
SendClientMessage(playerid, -1,"{1e90ff}| INFO | {FFFFFF}Lembre-se de levar um Combine(Colheitadeira), você precisará dele para colher!");
return 1;
}
return 0;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(TrigoPlantar[playerid] == 0)
{
TrigoPlantar[playerid] = 1;
SetPlayerCheckpoint(playerid, -100.9928,-32.9734,3.1094, 4);
ApplyAnimation(playerid,"BOMBER","BOM_Plant_Loop",4.0,0,0,0,0,0);
SendClientMessage(playerid,-1,"{1e90ff}| INFO | {FFFFFF}Siga para o próximo checkpoint!");
return 1;
}
if(TrigoPlantar[playerid] == 1)
{
TrigoPlantar[playerid] = 2;
SetPlayerCheckpoint(playerid,-122.9662,60.2341,3.1172,4);//5
ApplyAnimation(playerid,"BOMBER","BOM_Plant_Loop",4.0,0,0,0,0,0);
SendClientMessage(playerid,-1,"{1e90ff}| INFO | {FFFFFF}Siga para o próximo checkpoint!");
return 1;
}
if(TrigoPlantar[playerid] == 2)
{
TrigoPlantar[playerid] = 3;
SetPlayerCheckpoint(playerid,-125.3102,54.6598,3.1172,4);
ApplyAnimation(playerid,"BOMBER","BOM_Plant_Loop",4.0,0,0,0,0,0);
SendClientMessage(playerid,-1,"{1e90ff}| INFO | {FFFFFF}Siga para o próximo checkpoint!");
return 1;
}
if(TrigoPlantar[playerid] == 3)
{
TrigoPlantar[playerid] = 4;
SetPlayerCheckpoint(playerid,-127.3887,49.7169,3.1172,4);
ApplyAnimation(playerid,"BOMBER","BOM_Plant_Loop",4.0,0,0,0,0,0);
SendClientMessage(playerid,-1,"{1e90ff}| INFO | {FFFFFF}Siga para o próximo checkpoint!");
return 1;
}
if(TrigoPlantar[playerid] == 4)//11
{
TrigoPlantar[playerid] = 0;
SetPlayerCheckpoint(playerid,-129.4673,44.7740,3.1172,4);
ApplyAnimation(playerid,"BOMBER","BOM_Plant_Loop",4.0,0,0,0,0,0);
SendClientMessage(playerid, -1,"{1e90ff}| INFO | {FFFFFF}Você plantou em todos os locais. Aguarde 1 minuto para colher!");
SendClientMessage(playerid, -1,"{1e90ff}| INFO | {FFFFFF}Localização apagada com sucesso!");
DisablePlayerCheckpoint(playerid);
SetTimerEx("TrigoPlantacao", 100, false, "i", playerid);
}
return 1;
}
forward TrigoPlantacao(playerid);
public TrigoPlantacao(playerid)
{
if(IsPlayerConnected(playerid))
{
if(TrigoPlantar[playerid] == 1)
{
PegaPlanta[playerid] = 0;
Planta1[playerid] = CreateObject(872, -122.9662, 60.2341, 3.1172, 0, 0, 0);
SendClientMessage(playerid, -1, "{1e90ff}| INFO | {FFFFFF}Sua plantação está pronta para ser colhida!");
SendClientMessage(playerid, -1, "{1e90ff}| INFO | {FFFFFF}Você precisa de um Combine(Colheitadeira) para colher o trigo!");
SendClientMessage(playerid, -1, "{1e90ff}| INFO | {FFFFFF}Você possui um prazo de 3 minutos para colher o trigo!");
}
else if(TrigoPlantar[playerid] == 2)
{
PegaPlanta[playerid] -= 1;
Planta2[playerid] = CreateObject(872, -125.3102, 54.6598, 3.1172, 0, 0, 0);
}
else if(TrigoPlantar[playerid] == 3)
{
PegaPlanta[playerid] -= 1;
Planta3[playerid] = CreateObject(872, -127.3887, 49.7169, 3.1172, 0, 0, 0);
}
else if(TrigoPlantar[playerid] == 4)
{
PegaPlanta[playerid] -= 1;
Planta4[playerid] = CreateObject(872, -129.4673, 44.7740, 3.1172, 0, 0, 0);
SendClientMessage(playerid, -1, "{1e90ff}| INFO | {FFFFFF}Você terminou de colher todo o trigo!");
//TempoPlantar[playerid] = GetTickCount();
}
colheita[playerid] = SetTimerEx("ColheTrigo", 1000, 1, "i", playerid);
}
return 1;
}
Tem algum jeito facil usando DOF2, para quando o jogador criar a conta precisar confirmar com um código enviado pra ele por email? Se alguém puder me ajudar, agradeço.( só uso DOF2 )
FIXES_PRINTF (GM):
12:17:52
12:17:52 ********************************************************************************
12:17:52 * Could not open "DANGEROUS_SERVER_ROOT/server.cfg". Make sure your server is *
12:17:52 * configured to allow server root access. Either via: *
12:17:52 * *
12:17:52 * https://github.com/Misiur/YSI/raw/master/links.rar *
12:17:52 * *
12:17:52 * Or (Windows - CMD): *
12:17:52 * *
12:17:52 * cd scriptfiles *
12:17:52 * mklink /J DANGEROUS_SERVER_ROOT .. *
12:17:52 * *
12:17:52 * Or (Windows - PowerShell): *
12:17:52 * *
12:17:52 * cd scriptfiles *
12:17:52 * cmd /c mklink /J DANGEROUS_SERVER_ROOT .. *
12:17:52 * *
12:17:52 * Or (Linux): *
12:17:52 * *
12:17:52 * cd scriptfiles *
12:17:52 * ln -s .. DANGEROUS_SERVER_ROOT *
12:17:52 * *
12:17:52 * If you're not able to, or just don't want to make these changes you can *
12:17:52 * suppress the warning by defining this at the top of your mode: *
12:17:52 * *
12:17:52 * #define FIXES_ServerVarMsg 0 *
12:17:52 * *
12:17:52 * Or (preferably) disable the relevant fixes with: *
12:17:52 * *
12:17:52 * #define FIX_GetServerVarAsString 0 *
12:17:52 * #define FIX_GetServerVarAsFloat 0 *
12:17:52 * #define FIX_GetServerVarAsInt 0 *
12:17:52 * #define FIX_GetServerVarAsBool 0 *
12:17:52 * *
12:17:52 ********************************************************************************
Eu não entendo muito de ingles, li mas não entendi muito e não entendi o que eu tenho que fazer, eu fui nesse link, baixei e veio um executavel que me deixo mais confuso ainda :\
Olá a todos, estou com um problema na minha gamemode, botei um sistema de portão nela e necessitou do DOF2, antes não usava, e então busquei a DOF2 e inseri de forma tudo certa, só que no momento toda vez que compilo existe uma série de floods de warnings desse:
"warning 219: local variable "file" shadows a variable at a preceding level"
E percebi que agora esses portões começaram a sumir, IDs dele continua, o objeto do portão sumiu totalmente, queria alguma ajuda se vocês soubessem.
Boa tarde, boa noite ou bom dia
Alguma alma de bom coração teria o arquivo PHPdo include nMail?
Tentei criar um arquivo adaptado com o codeigniter, mas tá dando errado
Agradeço desde já