20.10.2013, 09:16
Hello everybody.Today I want to present my server on SAMP forum but still have some bugs which is little complicated to me.I don`t see any problem there.Maybe you will see mistake.I made today new job delivering ammo to old ammofactory but when I deliver it it`s says I don`t own Drug house not factory (drug house is different zone)...So here is the code:
Please help me fast.
pawn Код:
if(GangZones[4][OwnerTeam] != GetPlayerTeam(playerid)) return SendClientMessage(playerid,0xFFFFFFF,""embed_red"[Drug - House] "embed_white"Comps in drug house are not filled becouse you don`t own drug house.Own it and then comps will be filled!");
{
if(RandomJobCP[0][JobID])
{
DrugStats += 20;
format(slova,sizeof(slova),"[Drug - House] "embed_white"Amount of comps in drug house is %d !",DrugStats);
SendClientMessage(playerid,0xFFD900FF,slova);
}
}
if(GangZones[9][OwnerTeam] != GetPlayerTeam(playerid)) return SendClientMessage(playerid,0xFFFFFFF,""embed_red"[Ammunation - Factory] "embed_white"Comps in old ammunation factory are not filled becouse you don`t own ammunation factory.Own it and then comps will be filled!");
{
if(RandomJobCP[1][JobID])
{
WeaponStats += 20;
format(slova,sizeof(slova),"[Ammunation - Factory] "embed_white"Amount of comps in ammunation factory is %d !",DrugStats);
SendClientMessage(playerid,0xFFD900FF,slova);
}
}