Quote
CreateStreamObject(980, 2224.073486, -1452.069580, 25.609226, 0.0000, 0.0000, 270.0000, 500); //zatvorena
CreateStreamObject(980, 2224.032227, -1452.085327, 19.580221, 0.0000, 0.0000, 270.0000, 500); //otvorena
CreateStreamObject(980, 2224.032227, -1452.085327, 19.580221, 0.0000, 0.0000, 270.0000, 500); //otvorena
Stavim ovako ispod objekata
blabla = CreateStreamObject(980, 2224.073486, -1452.069580, 25.609226, 0.0000, 0.0000, 270.0000, 500); //zatvorena ograda
pod komandu stavim ovako
Quote
if(strcmp(cmd,"/c1o",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo == 6 || PlayerInfo == 6)
{
MoveStreamObject(blabla, 2224.032227, -1452.085327, 19.580221, 5.0);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Kapija se otvorila.");
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Niste clan !");
return 1;
}
}
return 1;
}
if(strcmp(cmd,"/c1c",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo == 6 || PlayerInfo == 6)
{
MoveStreamObject(blabla, 2224.073486, -1452.069580, 25.609226, 5.0);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Kapija se zatvorila.");
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Niste clan !");
return 1;
}
}
return 1;
}
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo == 6 || PlayerInfo == 6)
{
MoveStreamObject(blabla, 2224.032227, -1452.085327, 19.580221, 5.0);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Kapija se otvorila.");
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Niste clan !");
return 1;
}
}
return 1;
}
if(strcmp(cmd,"/c1c",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo == 6 || PlayerInfo == 6)
{
MoveStreamObject(blabla, 2224.073486, -1452.069580, 25.609226, 5.0);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Kapija se zatvorila.");
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Niste clan !");
return 1;
}
}
return 1;
}
