scripting help whit a gate
#4

hello so it very easy

add the flowing script

Код:
new mygate; //
on public OnGameModeInit() now add your mapping

Код:
mygate = CreateObject(980, 1526.11, 2772.92, 12.58, 0.00, 0.00, -89.96); // the gate
CreateObject(3749, 1525.15, 2772.92, 15.51, 0.00, 0.00, -90.42); // your map
the command

PHP код:
public OnPlayerCommandText(playeridcmdtext[]) 
{
    if(
strcmp(subcmd"o"true) == || strcmp(subcmd"open"true) == 0// /o OR /open to open the GATE
    
{
        
MoveObject(mygate1526.11002772.91996.58005);
        return 
1;
    }
    if(
strcmp(subcmd"c"true) == || strcmp(subcmd"close"true) == 0// /c OR /close to close the GATE
    
{
        
MoveObject(mygate1526.112772.9212.585);
        return 
1;
    }
    return 
0;

Reply


Messages In This Thread
scripting help whit a gate - by Senne - 03.12.2012, 17:54
Re: scripting help whit a gate - by niels44 - 03.12.2012, 17:57
Re: scripting help whit a gate - by Senne - 03.12.2012, 18:11
Re : scripting help whit a gate - by yusei - 03.12.2012, 18:58
Re: scripting help whit a gate - by Senne - 05.12.2012, 12:58
Re: scripting help whit a gate - by Horrible - 05.12.2012, 13:01
Re: scripting help whit a gate - by XProtocol - 05.12.2012, 16:20
Re: scripting help whit a gate - by SmithyComp - 05.12.2012, 17:19

Forum Jump:


Users browsing this thread: 1 Guest(s)