16.08.2010, 15:20
Yes, this works too:
Add this at TOP of Taxi:
Add this at bottom of Taxi code:
Add this at your command where you block the taxi:
Add this at OnPlayerConnect in TAXI:
Add this where the player gets jailed (Ladmin):
Add this where the player gets UNjailed (Ladmin):
I hope it works, just give it a try!
Add this at TOP of Taxi:
pawn Код:
new PlayerIsJailed[MAX_PLAYERS];
pawn Код:
forward PlayerGetsJailedFromLAdmin(playerid);
public PlayerGetsJailedFromLAdmin(playerid)
{
PlayerIsJailed[playerid]=1;
return 1;
}
forward PlayerGetsUNJailedFromLAdmin(playerid);
public PlayerGetsUNJailedFromLAdmin(playerid)
{
PlayerIsJailed[playerid]=0;
return 1;
}
pawn Код:
if(PlayerIsJailed[playerid]==1)
pawn Код:
PlayerIsJailed[playerid]=0;
Add this where the player gets jailed (Ladmin):
pawn Код:
CallRemoteFunction("PlayerGetsJailedFromLAdmin", "d",playerid);
pawn Код:
CallRemoteFunction("PlayerGetsUNJailedFromLAdmin", "d",playerid);
I hope it works, just give it a try!