How to apply a command to only 1 interior?
#4

Yes, this works too:


Add this at TOP of Taxi:
pawn Код:
new PlayerIsJailed[MAX_PLAYERS];
Add this at bottom of Taxi code:
pawn Код:
forward PlayerGetsJailedFromLAdmin(playerid);
public PlayerGetsJailedFromLAdmin(playerid)
{
    PlayerIsJailed[playerid]=1;
    return 1;
}

forward PlayerGetsUNJailedFromLAdmin(playerid);
public PlayerGetsUNJailedFromLAdmin(playerid)
{
    PlayerIsJailed[playerid]=0;
    return 1;
}
Add this at your command where you block the taxi:
pawn Код:
if(PlayerIsJailed[playerid]==1)
Add this at OnPlayerConnect in TAXI:
pawn Код:
PlayerIsJailed[playerid]=0;

Add this where the player gets jailed (Ladmin):
pawn Код:
CallRemoteFunction("PlayerGetsJailedFromLAdmin", "d",playerid);
Add this where the player gets UNjailed (Ladmin):
pawn Код:
CallRemoteFunction("PlayerGetsUNJailedFromLAdmin", "d",playerid);

I hope it works, just give it a try!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)