22.01.2010, 22:04
pawn Code:
new portao;
public OnGameModeInit()
{
portao = CreateObject(970, 1459.099365, -1504.791870, 13.258116, 0.0000, 0.0000, 258.7500);
return 1;
}
public OnPlayerCommandText(playerid,cmdtext[])
{
if(strcmp(cmdtext,"/opengate",true)==0)
{
new Float:X, Float:Y, Float:Z;
GetObjectPos(portao,X,Y,Z);
MoveObject(portao,X+5,Y,Z,2.0);
return 1;
}
return 0;
}