Quote:
Originally Posted by pds2k12
Are you sure this code is right?, please re-check.
pawn Код:
if(GangZones[4][OwnerTeam] != GetPlayerTeam(playerid))
And
pawn Код:
if(GangZones[9][OwnerTeam] != GetPlayerTeam(playerid))
Or, try these code
pawn Код:
if(GangZones[4][OwnerTeam] == GetPlayerTeam(playerid)) { 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); } } else 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(GangZones[9][OwnerTeam] == GetPlayerTeam(playerid)) { 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); } } else 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!");
I've experienced this before, using return with brackets
|
Uhh it`s not problem in that problem is in that I need to detect in which zone is player...