How to make house owner and only owner can get in!
#2

Make a global array to store the players id as houseowner.

Example:
pawn Код:
//on top
new gHouseOwner[ MAX_HOUSES ]; //remember that MAX_HOUSES isn't defined by default, I'm just using to show you an example.

//where you want to make a player the owner.
gHouseOwner[ HOUSE_ID_HERE ] = playerid;
Easy as that.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)