Scripting Gates [HELP]
#2

pawn Код:
new Gate; // put this somewhere at the top of your script
public OnFilterScriptInit()
{
    Gate = CreateObject(); // Put the coords of the gate... the closed one...
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
     if(strcmp(cmd, "/dpdopen", true) == 0) (;
     MoveObject(Gate, 648.79998779,-624.79998779,17.10000038, 1);
     SendClientMessage(playerid, Blue, "DPD Gate is opening.");
     return 1;
}
     if(strcmp(cmd, "/dpdclose", true) == 0) (;
     MoveObject(Gate, 648.90002441,-627.40002441,17.20000076. 1);
     SendClientMessage(playerid, Blue, "DPD Gate is closing.");
     return 1;
}
Reply


Messages In This Thread
Scripting Gates [HELP] - by smashed390 - 23.12.2011, 01:18
Re: Scripting Gates [HELP] - by adios1 - 23.12.2011, 01:26
Re: Scripting Gates [HELP] - by jason1212 - 23.12.2011, 01:30
Re: Scripting Gates [HELP] - by smashed390 - 23.12.2011, 01:30
Re: Scripting Gates [HELP] - by adios1 - 23.12.2011, 01:34
Re: Scripting Gates [HELP] - by smashed390 - 23.12.2011, 01:39
Re: Scripting Gates [HELP] - by adios1 - 23.12.2011, 01:45
Re: Scripting Gates [HELP] - by smashed390 - 23.12.2011, 01:48
Re: Scripting Gates [HELP] - by adios1 - 23.12.2011, 01:49
Re: Scripting Gates [HELP] - by smashed390 - 23.12.2011, 01:52

Forum Jump:


Users browsing this thread: 2 Guest(s)