2 Questions: Gate/Garage/Door Faction help
#1

Hi guys me again.. the noob
Please say what question you are answering if one.

QUESTION ONE
so I got my gates set up but i was wondering how to assign them to factions without re-doing the whole script? i know there is one topic on this sit showing how to but it's used a different technique to me and I already have my factions kind of set up and also my gates... please take a look and explain if possible (for example this one is meant to only be for the police.

The Faction is have defined is Police_Officer

Door: (this is tested and works so do not say that the way i do gates it wrong.. im lazy lol)

pawn Код:
//PDGate1
    if(strcmp(cmdtext, "/OpenPDGate1", true) == 0) {
    MoveObject(PDGate1,253.220703125,105.3779296875,1004.3708496094, 1);

    SendClientMessage(playerid, COLOR_YELLOW, "Restricted Area!");

    return 1;
    }

    if(strcmp(cmdtext, "/ClosePDGate1", true) == 0) {
    MoveObject(PDGate1,253.22099304,105.37844849,1002.21875000, 1);


    SendClientMessage(playerid, COLOR_YELLOW, "Good Day Officer!");

    return 1;
    }
QUESTION TWO
How do i make one command for numerous things? for example /opengate for numerous gates but only opening that one?, at the moment i have got /openPDgate1 /openPDgate2 etc..... and will be a pain in the ass for players.
Reply


Messages In This Thread
2 Questions, Please Help - by BurgessGaming - 08.03.2011, 13:24
Re: 2 Questions, Please Help - by antonio112 - 08.03.2011, 17:13
Re: 2 Questions: Gate/Garage/Door Faction help - by BurgessGaming - 09.03.2011, 00:13

Forum Jump:


Users browsing this thread: 1 Guest(s)