22.06.2010, 20:16
Код:
// Gates for Faction number 2 ! if(PlayerInfo[giveplayerid][pFaction] == 2) if(strcmp(cmd, "/opengate", true) == 0) { GateOpened[playerid] = 1; MoveObject(GATE,1041.09314000,-1462.33178700,12.73088500,2.0); return 1; } if(PlayerInfo[giveplayerid][pFaction] == 2) if(strcmp(cmd, "/closegate", true) == 0) { if(GateOpened[playerid] == 1) { GateOpened[playerid] = 0; MoveObject(GATE,1040.98095700,-1455.91210900,12.80246400,2.0); } else { SendClientMessage(playerid,COLOR_RED,"The gate isnt opened !"); } return 1; }
I mean the gates can be opened only by Faction ID 2 !!??