Kako staviti da se u ovakvoj skripti otvaraju vrata samo clanovima koji izaberu taj tim
if(PlayerToPoint(5.0, i, 1367.9093,-1279.9172,13.5469)&& OpenGate3[i] == false) //ovo je za otvarat vrata
{
OpenGate3[i] = true;
Gate = MoveObject(object id, x, y, z);
}
else if(!PlayerToPoint(5.0, i, 1367.9093,-1279.9172,13.5469) && OpenGate3[i] == true) //ovo je za zatvarat vrata
{
OpenGate3[i] = false;
Gate = MoveObject(object id, x, y, z);
}
if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
f(PlayerToPoint(5.0, i, 1367.9093,-1279.9172,13.5469)&& OpenGate3 == false) //ovo je za otvarat vrata
{
if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)// ovo sam naveo ove ti ide id lidera i id clanova znaci kad kucas onom /makeleader pa id pa opet id organizacije
OpenGate3 = true;
Gate = MoveObject(object id, x, y, z);
}
else if(!PlayerToPoint(5.0, i, 1367.9093,-1279.9172,13.5469) && OpenGate3 == true) //ovo je za zatvarat vrata
{
if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)// ovo sam naveo ove ti ide id lidera i id clanova znaci kad kucas onom /makeleader pa id pa opet id organizacije
OpenGate3 = false;
Gate = MoveObject(object id, x, y, z);
}
Samo da kazem da nije gf mode neg je od 0 i deathmach je