moze mi neko rec..

Započeo Plantak, Februar 12, 2010, 23:48:51 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

sta sam krivo napravil? nece mi otvorit ogradu
    //-------------------Kapija---------------------------

if(strcmp(cmd,"/Otvori",true)==0)
{
    if(PlayerInfo[playerid][pLeader] == 0||PlayerInfo[playerid][pLeader] == 0)
    {
MoveObject(Kapija,-305.670288,1730.959473,41.906914,7.000);
SendClientMessage(playerid, COLOR_GREEN, "Otvarate vrata Race-a.");
    }
else return SendClientMessage(playerid, COLOR_RED, "Nisi admin.");
}


if(strcmp(cmd,"/Zatvori",true)==0)
{
    if(PlayerInfo[playerid][pLeader] == 1338||PlayerInfo[playerid][pLeader] == 1338)
    {
MoveObject(Kapija,-305.720276,1739.714111,41.906914,7.000 );
SendClientMessage(playerid, COLOR_GREEN, "Zatvarate vrata race-a.");
    }
else return SendClientMessage(playerid, COLOR_GREEN, "Nisi admin.");
}

MrBaff

    //-------------------Kapija---------------------------

if(strcmp(cmd,"/Otvori",true)==0)
{
    if(PlayerInfo[playerid][pAdmin] == 1338)
    {
MoveObject(Kapija,-305.670288,1730.959473,41.906914,7.000);
SendClientMessage(playerid, COLOR_GREEN, "Otvarate vrata Race-a.");
    }
else return SendClientMessage(playerid, COLOR_RED, "Nisi admin.");
}


if(strcmp(cmd,"/Zatvori",true)==0)
{
    if(PlayerInfo[playerid][pAdmin] == 1338)
    {
MoveObject(Kapija,-305.720276,1739.714111,41.906914,7.000 );
SendClientMessage(playerid, COLOR_GREEN, "Zatvarate vrata race-a.");
    }
else return SendClientMessage(playerid, COLOR_GREEN, "Nisi admin.");
}

probaj?

nastoe

Citat: Plantak poslato Februar 12, 2010, 23:48:51 POSLE PODNE
sta sam krivo napravil? nece mi otvorit ogradu
    //-------------------Kapija---------------------------

if(strcmp(cmd,"/Otvori",true)==0)
{
    if(PlayerInfo[playerid][pLeader] == 0||PlayerInfo[playerid][pLeader] == 0)
    {
MoveObject(Kapija,-305.670288,1730.959473,41.906914,7.000);
SendClientMessage(playerid, COLOR_GREEN, "Otvarate vrata Race-a.");
    }
else return SendClientMessage(playerid, COLOR_RED, "Nisi admin.");
}


if(strcmp(cmd,"/Zatvori",true)==0)
{
    if(PlayerInfo[playerid][pLeader] == 1338||PlayerInfo[playerid][pLeader] == 1338)
    {
MoveObject(Kapija,-305.720276,1739.714111,41.906914,7.000 );
SendClientMessage(playerid, COLOR_GREEN, "Zatvarate vrata race-a.");
    }
else return SendClientMessage(playerid, COLOR_GREEN, "Nisi admin.");
}

napravio si krivo sta nisi stavio za admine, nego za leadere znaci samo leaderi mogu otvarati tu ogradu i zatvarati aa baf ti je popravio za admine, da svi admini mogu otvarati

tnx ljudi
jucer sam bas skuzil da sam za lidere stavil
slozil sam ju al ipak tnx sta ste mi odg ;)