25.11.2009, 00:19
hi i want to 2 teams ( police and fbi ) can open this gate, code is donw
what to edit here that police and fbi can open gate? tnx to all
Код:
if (strcmp(cmdtext, "/o", true)==0) { if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2) { MoveObject(pgate,818.433,-2517.337,1.256, 8.0); SendClientMessage(playerid, COLOR_GREEN, "GATE OPEN."); } else return SendClientMessage(playerid, COLOR_GREEN, "NOT PD OR FBI."); } if (strcmp(cmdtext, "/C", true)==0) { if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2) { MoveObject(pgate,818.433,-2517.337,8.556, 8.0); SendClientMessage(playerid, COLOR_GREEN, "GATE CLOSED."); } else return SendClientMessage(playerid, COLOR_GREEN, "NOT PD OR FBI."); }