A Little Favor Guys. Please HELP ME!! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: A Little Favor Guys. Please HELP ME!! (
/showthread.php?tid=260040)
A Little Favor Guys. Please HELP ME!! -
adios1 - 07.06.2011
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!
Re: A Little Favor Guys. Please HELP ME!! -
Basicz - 07.06.2011
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;
}