Ayuda con Objetos y un Comando
#1

Buenas Mi problema es este Puse puertas en el interior de la Poli de esa que el comando es Abrirpuerta y cerrarpuerta la cuestion es que dicha puerta no aparece como que no Carga y e echo casi de too con ello pero nada me podrian ayudar con eso Otra Consulta el comando Que acomtinuacion pongo

Quote:

if(!strcmp(cmdtext, "/smugglemats", true)) // By Ellis
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You need to login first !");
return 1;
}
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] ==15 || PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{
if(PlayerToPoint(3.0,playerid,248.4994,-33.1366,1.5781))
{
if(GetPlayerMoney(playerid) < 199)
{
SendClientMessage(playerid, COLOR_GREY, " You don't have enough money (200 dollars needed)");
return 1;
}
if(MatsHolding[playerid] != 0)
{
SendClientMessage(playerid, COLOR_GREY, " You are smuggling materials already.");
return 1;
}
SafeGivePlayerMoney(playerid, - 200);
MatsHolding[playerid] = 25;
SendClientMessage(playerid, COLOR_WHITE, "You have picked up materials package. Bring it to the Materials bank. (red marker)");
GameTextForPlayer(playerid, "~w~Materials loaded", 5000, 1);
SetPlayerCheckpoint(playerid,2230.3579,-2286.2107,14.3751,1.0);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not at the Blueberry materials factory ! ")
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not a materials smuggler !");
return 1;
}
}
return 1;
}

if(strcmp(cmd,"/Creararma",true)==0) // By Ellis
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You need to login first !");
return 1;
}
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] ==15 || PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{
SendClientMessage(playerid, COLOR_GREY, " You are not a gun maker. ");
return 1;
}
new x_weapon[256];
x_weapon = strtok(cmdtext, idx);
if(!strlen(x_weapon))
{
SendClientMessage(playerid, COLOR_GREEN, "________________________________________________" );
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Creararma [weapon name]");
SendClientMessage(playerid, COLOR_GREY, "Available names: knife(25) bat(25) sdpistol(100) eagle(200)");
SendClientMessage(playerid, COLOR_GREY, "Available names: mp5(200) shotgun(200) ak47(600) m4(600) rifle(600)");
SendClientMessage(playerid, COLOR_GREEN, "________________________________________________" );
return 1;
}
if(strcmp(x_weapon,"knife",true) == 0) { if(PlayerInfo[playerid][pMats] > 24) { CreatingGun[playerid] = 4; CreatingGunPrice[playerid] = 25; CreatingGunAmmo[playerid] = 1; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!"); return 1; } }
else if(strcmp(x_weapon,"bat",true) == 0) { if(PlayerInfo[playerid][pMats] > 24) { CreatingGun[playerid] = 5; CreatingGunPrice[playerid] = 25; CreatingGunAmmo[playerid] = 1; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!"); return 1; } }
else if(strcmp(x_weapon,"sdpistol",true) == 0) { if(PlayerInfo[playerid][pMats] > 99) { CreatingGun[playerid] = 23; CreatingGunPrice[playerid] = 100; CreatingGunAmmo[playerid] = 50; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!"); return 1; } }
else if(strcmp(x_weapon,"flowers",true) == 0) { if(PlayerInfo[playerid][pMats] > 24) { CreatingGun[playerid] = 14; CreatingGunPrice[playerid] = 25; CreatingGunAmmo[playerid] = 1; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!"); return 1; } }
else if(strcmp(x_weapon,"eagle",true) == 0) { if(PlayerInfo[playerid][pMats] > 199) { CreatingGun[playerid] = 24; CreatingGunPrice[playerid] = 150; CreatingGunAmmo[playerid] = 50; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!"); return 1; } }
else if(strcmp(x_weapon,"mp5",true) == 0) { if(PlayerInfo[playerid][pMats] > 199) { CreatingGun[playerid] = 29; CreatingGunPrice[playerid] = 200; CreatingGunAmmo[playerid] = 200; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!"); return 1; } }
else if(strcmp(x_weapon,"shotgun",true) == 0) { if(PlayerInfo[playerid][pMats] > 199) { CreatingGun[playerid] = 25; CreatingGunPrice[playerid] = 200; CreatingGunAmmo[playerid] = 50; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!"); return 1; } }
else if(strcmp(x_weapon,"ak47",true) == 0) { if(PlayerInfo[playerid][pMats] > 599) { CreatingGun[playerid] = 30; CreatingGunPrice[playerid] = 600; CreatingGunAmmo[playerid] = 250; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!"); return 1; } }
else if(strcmp(x_weapon,"m4",true) == 0) { if(PlayerInfo[playerid][pMats] > 599) { CreatingGun[playerid] = 31; CreatingGunPrice[playerid] = 600; CreatingGunAmmo[playerid] = 250; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!"); return 1; } }
else if(strcmp(x_weapon,"rifle",true) == 0) { if(PlayerInfo[playerid][pMats] > 599) { CreatingGun[playerid] = 33; CreatingGunPrice[playerid] = 600; CreatingGunAmmo[playerid] = 50; } else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!"); return 1; } }
else { SendClientMessage(playerid,COLOR_GREY," Invalid Weapon name!"); return 1; }
SetPlayerCheckpoint(playerid, 2152.5308,-2270.8145,13.3090, 1.0);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
IsPuttingMaterials[playerid] = 1;
SendClientMessage(playerid, COLOR_WHITE, "Put material package at the factory !");
return 1;
}
return 1;
}

if(strcmp(cmd,"/ComprarMateriales",true)==0) // By Ellis
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You need to login first !");
return 1;
}
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] ==15 || PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{
SendClientMessage(playerid, COLOR_GREY, " You are not a gun maker. ");
return 1;
}
if(!PlayerToPoint(2.0, playerid, 2230.3579,-2286.2107,14.3751))
{
SendClientMessage(playerid, COLOR_GREY, " You are not at the materials bank !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ComprarMateriales [ammount]");
return 1;
}
new mammount;
mammount = strval(tmp);
if(mammount > matssys[MatsAmmount])
{
SendClientMessage(playerid, COLOR_GREY, " They don't have enough materials ! ");
return 1;
}
if(GetPlayerMoney(playerid) < mammount * 15 - 1)
{
SendClientMessage(playerid, COLOR_GREY, " You don't have enough money ! ");
return 1;
}
matssys[MatsAmmount] -= mammount;
PlayerInfo[playerid][pMats] += mammount;
SafeGivePlayerMoney(playerid, - mammount * 15);
format(string, sizeof(string), " You have bought %d materials for %d$ !", mammount, mammount * 15);
SendClientMessage(playerid, COLOR_GREY, string);
SaveMatsSystem();
return 1;
}
return 1;
}

Como observan puse que las Facciones 5 8 15 16 puedan hacer ese trabajo pero lo que sucede es que cuando estan en el punto dice You are not a gun maker eso y tambien intente muchas cosas y siempre sucede lo mismo por Favor Ayuda y Gracias de Antemano
Reply
#2

Ayuda Por Favor
Reply
#3

Tira errores/warns?

podria ser un fs malo o algo en otra parte del gm
Reply
#4

No Brother no tira ningun Error lo que pasa es cuando voy al Lugar para hacer el arma me dice tu no en el lugar para Hacer armas
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)