Help me with this gate!
#5

pawn Код:
#include <a_samp>

new gate;

public OnGameModeInit( )
{
   gate = CreateObject( 987, 1820.9423828125, -2007.2276611328, 12.554395675659, 0.000000, 0.000000, 0.000000 ); //
   return true;
}

public OnPlayerCommantText( playerid, cmdtext[] )
{
   new cmd[ 256 ];
   cmd = strtok( cmdtext, idx );
   if( strcmp( cmd,"/opensurenosgate",true ) == 0 )
   {
     MoveObject( gate, 1820.8729248047, -2007.3715820313, 16.642910003662 );
     return true;
   }
   if( strcmp( cmd,"/closesurenosgate",true ) == 0 )
   {
     MoveObject( gate, 820.9423828125, -2007.2276611328, 12.554395675659 );
     return true;
   }
   return false;
}
Try using it like a filterscript.
Reply


Messages In This Thread
Help me with this gate! - by Karl115 - 21.06.2010, 14:07
Re: Help me with this gate! - by Razvann - 21.06.2010, 14:54
Re: Help me with this gate! - by Hiddos - 21.06.2010, 16:06
Re: Help me with this gate! - by Karl115 - 21.06.2010, 17:30
Re: Help me with this gate! - by Razvann - 21.06.2010, 18:15

Forum Jump:


Users browsing this thread: 2 Guest(s)