A Little Favor Guys. Please HELP ME!!
#1

Guys Can anyone make a tutorial how to move gates? I already have a gate positioning closed and open.. so i need only the script. how to make it move with a command? like if I type /open it will open the gate.. uhm Im using F_streamer so anyone help me ? Thank you!
Reply
#2

pawn Код:
new gate;
public OnGameModeInit( )
{
    gate = F_CreateObject( .... )
    return 1;
}

public OnPlayerCommandText( playerid, cmdtext[ ] )
{
    if( !strcmp( cmdtext, "/open", true ) )
    {
        F_MoveObject ( gate, coordinates where the gate moves ( example 0.0, 0.0, 0.0 ), speed ( example 2.0 ) );
        return 1;
    }
    if ( !strcmp( cmdtext, "/close", true ) )
   {
        F_MoveObject ( gate, coordinates where the gate moves ( example 0.0, 0.0, 0.0 ), speed ( example 2.0 ) );
        return 1;
   }
    return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)