Opening of gate with checking for the level of player.
#7

Try:
pawn Код:
if(IsPlayerInSphere(i, -2127.4292, -80.0525, 35.3081,8))
{
if(PlayerInfo[i][pLevel] >= 5)
{
if (Gates12 == 1)
{
MoveDynamicObject(Gatesid1, -2136.3835, -80.5887, 35.3203,4);
MoveDynamicObject(Gatesid2, -2118.3835, -80.5887, 35.3203,4);
Gates12 = 0;
}
else
{
MoveDynamicObject(Gatesid1, -2131.3835, -80.5887, 35.3203,1);
MoveDynamicObject(Gatesid2, -2123.3835, -80.5887, 35.3203,1);
}
}
}
else
{
Gates12 = 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)