21.11.2015, 22:22
I want to check that if a player owns a land zone.... how can i do that i will provide the codes you need.
LandInfo[x][landOwned] - land accountid
PlayerAID[playerid] - player accountid
new bool:iszone = false, mylandid = -1;
for(new x; x < MAX_LANDS; x++){
if(LandInfo[x][landOwned] == PlayerAID[playerid]){
if(IsPlayerInGangZone(playerid, LandInfo[x][landZone])){
mylandid = x;
iszone = true;
break;
}
}
}
if(iszone){
SendClientMessage(playerid, COLOR_GREY, "My Land");
} else {
SendClientMessage(playerid, COLOR_GREY, "Not my land");
}