13.11.2012, 20:12
(
Последний раз редактировалось OlhoDeFalcao; 13.11.2012 в 20:55.
)
Ola pessoal estou com alguns problema no Gm ,e no emprego que tem que pegar uma placa de metal,dai vai para a linha de montagem tudo normal mas quando termina de montar ,ai nessa parte o skin congela .Tentei procurar o problema mais nгo consegui solucionar .
PHP код:
public CreatedMats(playerid)
{
if(CreateMats[playerid] == 3)
{
Controllable[playerid] = true;
CarryAnim(playerid);
SendClientMessage(playerid, COLOR_LIME, "Empilhe nas caixa o produto finalizado.");
SetPlayerAttachedObjectEx(playerid, 0, 1279, 5, 0.05, 0.24, 0.2, 104, 10, 75);
RemovePlayerAttachedObjectEx(playerid, 1);
TogglePlayerDynamicCP(playerid, FerumEndCP, true);
CreateMats[playerid] = 4;
return true;
}
return false;
}
PHP код:
new ferumid = (checkpointid - FerumCP[0]);
if(CreateMats[playerid] == 2)
{
CreateMats[playerid] = 3;
new Float:X = FerumCPPos[ferumid][0];
new Float:Y = FerumCPPos[ferumid][1];
new Float:Z = FerumCPPos[ferumid][2];
new Float:A = FerumCPPos[ferumid][3];
SetPlayerPos(playerid, X, Y, Z);
SetPlayerFacingAngle(playerid, A);
ShiftCords(0, X, Y, Z, A, 0.8);
ApplyAnimation(playerid, "OTB", "BETSLP_LOOP", 4.1, 1, 1, 1, 1, 0, 1);
SetPlayerTimer(playerid, "CreatedMats", 5000, false);
SetPlayerAttachedObjectEx(playerid, 1, 18644, 6, 0.07, 0.02, 0.03, 10.0, 0.0, 0.0);
Controllable[playerid] = false;
GetPlayerPos(playerid,PlayerInfo[playerid][pCPos_X],PlayerInfo[playerid][pCPos_Y],PlayerInfo[playerid][pCPos_Z]);
for(new i; i < sizeof(FerumCP);i ++)
{
TogglePlayerDynamicCP(playerid, FerumCP[i], false);
}
}
else if(CreateMats[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "Vocк ainda nгo pegou o metal.");
}
else if(CreateMats[playerid] == 4)
{
SendClientMessage(playerid, COLOR_GREY, "Trazer materiais.");
}
}
else if(checkpointid == FerumEndCP)
{
if(CreateMats[playerid] == 4)
{
ApplyAnimation(playerid, "CARRY", "PUTDWN", 4.1, 0, 1, 1, 0, 0, 1);
SetPlayerTimer(playerid, "PutMaterials", 500, false);
}
}