05.12.2010, 17:41
Well I did what you said but i still get 4 erroes, please correct and post as reply.
pawn Code:
//Los Santos Military Transportation Electric Gates
#include <a_samp>
new Gate;
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
aGate = CreateObject(976,2720.53076172,-2409.44506836,12.46093750,0.00000000,0.00000000,90 .00000000);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/gate", cmdtext, true, 10) == 0)
{
MoveObject (Gate,2720.53076172,-2401.33911133,12.46093750,0.00000000,0.00000000,90 .00000000);
}
return 1;
}
if (strcmp("/closegate", cmdtext, true, 10) == 0)
{
MoveObject (Gate,2720.53076172,-2409.44506836,12.46093750,0.00000000,0.00000000,90 .00000000);
}
return 1;
}
return 1;
}