Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Plantak poslato Februar 12, 2010, 23:48:51 POSLE PODNE

Naslov: moze mi neko rec..
Poruka od: 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.");
}
Naslov: Odg: moze mi neko rec..
Poruka od: MrBaff poslato Februar 13, 2010, 00:09:07 PRE PODNE
    //-------------------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?
Naslov: Odg: moze mi neko rec..
Poruka od: nastoe poslato Februar 13, 2010, 00:26:27 PRE PODNE
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
Naslov: Odg: moze mi neko rec..
Poruka od: Plantak poslato Februar 13, 2010, 11:32:04 PRE PODNE
tnx ljudi
jucer sam bas skuzil da sam za lidere stavil
slozil sam ju al ipak tnx sta ste mi odg ;)