07.01.2009, 22:57
Hi i need help with this code.. im rlly new and i cannot figure out whats wrong:
Im trying to make it so when you open the gate it opens to a certain team What do we type in and where to make it declare you want this gate to open to this team only.
here is the code:
All help appreciated
Im trying to make it so when you open the gate it opens to a certain team What do we type in and where to make it declare you want this gate to open to this team only.
here is the code:
Code:
if(strcmp(cmdtext, "/opengate", true) == 0)
{
if(TEAM != FBI) return SendClientMessage(playerid, COLOR_WHITE, "You are not FBI to open this gate."); // message to player if you are not fbi.
MoveObject(gate1, x+3, y, z, speed of moving); // x, y, z coordinates should be used same as in createobject | speed of moving should be 2.
MoveObject(gate2, x+3, y, z, speed of moving); // x, y, z coordinates should be used same as in createobject | speed of moving should be 2.
SendClientMessage(playerid, COLOR_YELLOW, "LVPD gates are opening..."); // message to you that the gate is opening.
return 1;
}

