23.10.2010, 22:45
Ok...
Here's a modified version of Rafa's script:
Here's a modified version of Rafa's script:
pawn Код:
#include <a_samp>
new Firasgate;
public OnFilterScriptInit()
{
Firasgate = CreateObject(4101, 3006.2673339844, -1934.9904785156, -88.822967529297, 0, 0, 93.9990234375); // change the coords what ever u want ... :)
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/opengate1", cmdtext, true) == 0)
{
if(IsPlayerAdmin(playerid))
{
MoveObject(Firasgate, 3006.2673339844, -1934.9904785156, -88.822967529297, 2.0); // u can change the coords of the object...
SendClientMessage(playerid, 0xFF8000FF, "You has open the gate."); // message to player who open/close gate
}
return 1;
}
if(strcmp("/closegate1", cmdtext, true) == 0)
{
if(IsPlayerAdmin(playerid))
{
MoveObject(Firasgate, 2966.7800292969, -1913.8002929688, 17.379014968872, 5.0); // change the coords and that ( 5.0 ) is the speed of the object...
SendClientMessage(playerid, 0xFF8000FF, "You has close the gate."); // message
}
return 1;
}
return 0;
}