Gate Help
#6

Cool. Open up the gamemode you're working on, CTRL+F then search for OnGameModeInit (Read more about it here.) once you find it add these 2 lines into it

pawn Код:
gate[0] = CreateObject(971, -1060.2998046875, -1338.19921875, 132.5, 0, 0, 347.99743652344);
gate[1] = CreateObject(971, -1046.7998046875, -1334.3994140625, 132.60000610352, 0, 0, 347.99743652344);
Now, when the gamemode starts it will create the gates. Now let's place the commands, CTRL+F then find OnPlayerCommandText (Read more about it here) and add these codes into it

pawn Код:
if(strcmp("/opengate1", cmdtext, true) == 0)
{
    MoveObject(gate[0], -1060.2998046875, -1338.19921875, 126.5, 7.5);
    return 1;
}
if(strcmp("/o1", cmdtext, true) == 0)
{
    MoveObject(gate[1], -1046.7998046875, -1334.3994140625, 126.5, 7.5);
    return 1;
}
Still don't get it? See FULL CODE!
Reply


Messages In This Thread
Gate Help - by coolmark1995 - 24.06.2012, 03:30
Re: Gate Help - by [KHK]Khalid - 24.06.2012, 03:57
Re: Gate Help - by coolmark1995 - 24.06.2012, 05:45
Re: Gate Help - by [KHK]Khalid - 24.06.2012, 05:58
Re: Gate Help - by coolmark1995 - 24.06.2012, 06:00
Re: Gate Help - by [KHK]Khalid - 24.06.2012, 06:15
Re: Gate Help - by coolmark1995 - 24.06.2012, 06:38
Re: Gate Help - by [KHK]Khalid - 24.06.2012, 06:41
Re: Gate Help - by coolmark1995 - 24.06.2012, 06:46
Re: Gate Help - by [KHK]Khalid - 24.06.2012, 06:51

Forum Jump:


Users browsing this thread: 1 Guest(s)