way to check for any interior?
#1

I know u can check for a single interior, but is there a way i can check if a player is in any interior? so i can disable certain commands when a player is in any interior?
Many thanks in advance.
Reply
#2

pawn Код:
new IsPlayerInAnInterior = GetPlayerInterior(playerid);
if(IsPlayerInAnInterior == 0) // if player isn't in an interior
if(IsPlayerInAnInterior == 1) // if player is in a interior
Reply
#3

Quote:
Originally Posted by ViruZZzZ_ChiLLL
pawn Код:
new IsPlayerInAnInterior = GetPlayerInterior(playerid);
if(IsPlayerInAnInterior == 0) // if player isn't in an interior
if(IsPlayerInAnInterior == 1) // if player is in a interior
AHEM

pawn Код:
new IsPlayerInAnInterior = GetPlayerInterior(playerid);
if(IsPlayerInAnInterior == 0) // if player isn't in an interior
if(IsPlayerInAnInterior != 0) // if player is in a interior
Reply
#4

Quote:
Originally Posted by ViruZZzZ_ChiLLL
pawn Код:
new IsPlayerInAnInterior = GetPlayerInterior(playerid);
if(IsPlayerInAnInterior == 0) // if player isn't in an interior
if(IsPlayerInAnInterior == 1) // if player is in a interior
Nice1 m8 works a treat

Edit: I changed to != anyway thanks again
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)