03.12.2009, 01:29
here is code
//-------------------------------[lgate]-------------------------------------------------------------------------
if (strcmp(cmdtext, "/lcno", true)==0)
{
if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5)
{
MoveObject(lcngate,1301.665,-2056.976,65.734, 8.0);
SendClientMessage(playerid, COLOR_GREEN, "OPEN.");
}
else return SendClientMessage(playerid, COLOR_GREEN, "NOT LCN.");
}
if (strcmp(cmdtext, "/lcnc", true)==0)
{
if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5)
{
MoveObject(lcngate ,1298.355,-2056.840,60.140, 8.0);
SendClientMessage(playerid, COLOR_GREEN, "CLOSE");
}
else return SendClientMessage(playerid, COLOR_GREEN, "NOT LCN.");
}
this is one of the gates, this one is for lcn band and this gate does not exist on server but i get messages OPEN and CLOSE when i type cmd
//-------------------------------[lgate]-------------------------------------------------------------------------
if (strcmp(cmdtext, "/lcno", true)==0)
{
if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5)
{
MoveObject(lcngate,1301.665,-2056.976,65.734, 8.0);
SendClientMessage(playerid, COLOR_GREEN, "OPEN.");
}
else return SendClientMessage(playerid, COLOR_GREEN, "NOT LCN.");
}
if (strcmp(cmdtext, "/lcnc", true)==0)
{
if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5)
{
MoveObject(lcngate ,1298.355,-2056.840,60.140, 8.0);
SendClientMessage(playerid, COLOR_GREEN, "CLOSE");
}
else return SendClientMessage(playerid, COLOR_GREEN, "NOT LCN.");
}
this is one of the gates, this one is for lcn band and this gate does not exist on server but i get messages OPEN and CLOSE when i type cmd