Check if a player owns zone
#1

I want to check that if a player owns a land zone.... how can i do that i will provide the codes you need.
Reply
#2

can you please
Quote:
Originally Posted by Alpha000
Посмотреть сообщение
provide the codes
of how player takes the zone
Reply
#3

Oh i see thats also the problem how can player own zones any help with that cmd?
Reply
#4

//edit:
PHP код:
LandInfo[x][landOwned]    - land accountid
PlayerAID
[playerid]     - player accountid
new bool:iszone falsemylandid = -1;
for(new 
xMAX_LANDSx++){
    if(
LandInfo[x][landOwned] == PlayerAID[playerid]){
        if(
IsPlayerInGangZone(playeridLandInfo[x][landZone])){
            
mylandid x;
            
iszone true;
            break;
        }
    }
}
if(
iszone){
    
SendClientMessage(playeridCOLOR_GREY"My Land");
} else {
    
SendClientMessage(playeridCOLOR_GREY"Not my land");

Reply
#5

lemme see if this works i will reply as soon as i test it.
Reply
#6

Deleted. Ill edit my code thanks for your help already +RPed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)